TrackingNtupleWithSCL.h 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823
  1. //////////////////////////////////////////////////////////
  2. // This class has been automatically generated on
  3. // Wed May 2 13:15:10 2018 by ROOT version 6.12/06
  4. // from TTree tree/tree
  5. // found on file: trackingNtuple_1.root
  6. //////////////////////////////////////////////////////////
  7. #ifndef TrackingNtuple_h
  8. #define TrackingNtuple_h
  9. #include <TROOT.h>
  10. #include <TChain.h>
  11. #include <TFile.h>
  12. // Header file for the classes stored in the TTree if any.
  13. #include <vector>
  14. using std::vector;
  15. class TrackingNtuple {
  16. public :
  17. TTree *fChain; //!pointer to the analyzed TTree or TChain
  18. Int_t fCurrent; //!current Tree number in a TChain
  19. // Fixed size dimensions of array or collections stored in the TTree if any.
  20. // Declaration of leaf types
  21. ULong64_t event;
  22. UInt_t lumi;
  23. UInt_t run;
  24. vector<float> *trk_px;
  25. vector<float> *trk_py;
  26. vector<float> *trk_pz;
  27. vector<float> *trk_pt;
  28. vector<float> *trk_inner_px;
  29. vector<float> *trk_inner_py;
  30. vector<float> *trk_inner_pz;
  31. vector<float> *trk_inner_pt;
  32. vector<float> *trk_outer_px;
  33. vector<float> *trk_outer_py;
  34. vector<float> *trk_outer_pz;
  35. vector<float> *trk_outer_pt;
  36. vector<float> *trk_eta;
  37. vector<float> *trk_lambda;
  38. vector<float> *trk_cotTheta;
  39. vector<float> *trk_phi;
  40. vector<float> *trk_dxy;
  41. vector<float> *trk_dz;
  42. vector<float> *trk_ptErr;
  43. vector<float> *trk_etaErr;
  44. vector<float> *trk_lambdaErr;
  45. vector<float> *trk_phiErr;
  46. vector<float> *trk_dxyErr;
  47. vector<float> *trk_dzErr;
  48. vector<float> *trk_refpoint_x;
  49. vector<float> *trk_refpoint_y;
  50. vector<float> *trk_refpoint_z;
  51. vector<float> *trk_nChi2;
  52. vector<int> *trk_q;
  53. vector<unsigned int> *trk_nValid;
  54. vector<unsigned int> *trk_nInvalid;
  55. vector<unsigned int> *trk_nPixel;
  56. vector<unsigned int> *trk_nStrip;
  57. vector<unsigned int> *trk_nPixelLay;
  58. vector<unsigned int> *trk_nStripLay;
  59. vector<unsigned int> *trk_n3DLay;
  60. vector<unsigned int> *trk_nOuterLost;
  61. vector<unsigned int> *trk_nInnerLost;
  62. vector<unsigned int> *trk_algo;
  63. vector<unsigned int> *trk_originalAlgo;
  64. vector<ULong64_t> *trk_algoMask;
  65. vector<unsigned short> *trk_stopReason;
  66. vector<short> *trk_isHP;
  67. vector<int> *trk_seedIdx;
  68. vector<float> *trk_vtxx;
  69. vector<float> *trk_vtxy;
  70. vector<float> *trk_vtxz;
  71. vector<vector<float> > *trk_shareFrac;
  72. vector<vector<int> > *trk_simTrkIdx;
  73. vector<int> *trk_genIdx;
  74. vector<float> *trk_genDR;
  75. vector<int> *sim_event;
  76. vector<int> *sim_bunchCrossing;
  77. vector<int> *sim_pdgId;
  78. vector<vector<int> > *sim_genPdgIds;
  79. vector<int> *sim_isFromBHadron;
  80. vector<float> *sim_px;
  81. vector<float> *sim_py;
  82. vector<float> *sim_pz;
  83. vector<float> *sim_pt;
  84. vector<float> *sim_eta;
  85. vector<float> *sim_phi;
  86. vector<float> *sim_pca_pt;
  87. vector<float> *sim_pca_eta;
  88. vector<float> *sim_pca_lambda;
  89. vector<float> *sim_pca_cotTheta;
  90. vector<float> *sim_pca_phi;
  91. vector<float> *sim_pca_dxy;
  92. vector<float> *sim_pca_dz;
  93. vector<int> *sim_q;
  94. vector<unsigned int> *sim_nValid;
  95. vector<unsigned int> *sim_nPixel;
  96. vector<unsigned int> *sim_nStrip;
  97. vector<unsigned int> *sim_nLay;
  98. vector<unsigned int> *sim_nPixelLay;
  99. vector<unsigned int> *sim_n3DLay;
  100. vector<vector<int> > *sim_trkIdx;
  101. vector<vector<float> > *sim_shareFrac;
  102. vector<vector<int> > *sim_seedIdx;
  103. vector<int> *sim_parentVtxIdx;
  104. vector<vector<int> > *sim_decayVtxIdx;
  105. Float_t bsp_x;
  106. Float_t bsp_y;
  107. Float_t bsp_z;
  108. Float_t bsp_sigmax;
  109. Float_t bsp_sigmay;
  110. Float_t bsp_sigmaz;
  111. vector<short> *see_fitok;
  112. vector<float> *see_px;
  113. vector<float> *see_py;
  114. vector<float> *see_pz;
  115. vector<float> *see_pt;
  116. vector<float> *see_eta;
  117. vector<float> *see_phi;
  118. vector<float> *see_dxy;
  119. vector<float> *see_dz;
  120. vector<float> *see_ptErr;
  121. vector<float> *see_etaErr;
  122. vector<float> *see_phiErr;
  123. vector<float> *see_dxyErr;
  124. vector<float> *see_dzErr;
  125. vector<float> *see_chi2;
  126. vector<float> *see_statePt;
  127. vector<float> *see_stateTrajX;
  128. vector<float> *see_stateTrajY;
  129. vector<float> *see_stateTrajPx;
  130. vector<float> *see_stateTrajPy;
  131. vector<float> *see_stateTrajPz;
  132. vector<int> *see_q;
  133. vector<unsigned int> *see_nValid;
  134. vector<unsigned int> *see_nPixel;
  135. vector<unsigned int> *see_nGlued;
  136. vector<unsigned int> *see_nStrip;
  137. vector<unsigned int> *see_nPhase2OT;
  138. vector<unsigned int> *see_algo;
  139. vector<unsigned short> *see_stopReason;
  140. vector<int> *see_trkIdx;
  141. vector<vector<float> > *see_shareFrac;
  142. vector<vector<int> > *see_simTrkIdx;
  143. vector<unsigned int> *see_offset;
  144. vector<float> *see_Et;
  145. vector<float> *see_hoe;
  146. vector<vector<int> > *see_isBarrel;
  147. vector<vector<int> > *see_layerOrDiskNr;
  148. vector<vector<int> > *see_isValidPos;
  149. vector<vector<float> > *see_dRZPos;
  150. vector<vector<float> > *see_dPhiPos;
  151. vector<vector<int> > *see_isValidNeg;
  152. vector<vector<float> > *see_dRZNeg;
  153. vector<vector<float> > *see_dPhiNeg;
  154. vector<short> *see_isECALDriven;
  155. vector<int> *see_sclIdx;
  156. vector<float> *vtx_x;
  157. vector<float> *vtx_y;
  158. vector<float> *vtx_z;
  159. vector<float> *vtx_xErr;
  160. vector<float> *vtx_yErr;
  161. vector<float> *vtx_zErr;
  162. vector<float> *vtx_ndof;
  163. vector<float> *vtx_chi2;
  164. vector<short> *vtx_fake;
  165. vector<short> *vtx_valid;
  166. vector<vector<int> > *vtx_trkIdx;
  167. vector<float> *gen_px;
  168. vector<float> *gen_py;
  169. vector<float> *gen_pz;
  170. vector<float> *gen_charge;
  171. vector<int> *gen_pdgId;
  172. vector<float> *gen_vx;
  173. vector<float> *gen_vy;
  174. vector<float> *gen_vz;
  175. vector<int> *gen_status;
  176. vector<int> *gen_mother;
  177. vector<bool> *gen_isTauDecayProduct;
  178. vector<bool> *gen_isDirectHadronDecayProduct;
  179. vector<bool> *gen_isPrompt;
  180. vector<int> *simvtx_event;
  181. vector<int> *simvtx_bunchCrossing;
  182. vector<unsigned int> *simvtx_processType;
  183. vector<float> *simvtx_x;
  184. vector<float> *simvtx_y;
  185. vector<float> *simvtx_z;
  186. vector<vector<int> > *simvtx_sourceSimIdx;
  187. vector<vector<int> > *simvtx_daughterSimIdx;
  188. vector<int> *simpv_idx;
  189. vector<float> *scl_e;
  190. vector<float> *scl_px;
  191. vector<float> *scl_py;
  192. vector<float> *scl_pz;
  193. vector<float> *scl_x;
  194. vector<float> *scl_y;
  195. vector<float> *scl_z;
  196. vector<float> *scl_hoe;
  197. // List of branches
  198. TBranch *b_event; //!
  199. TBranch *b_lumi; //!
  200. TBranch *b_run; //!
  201. TBranch *b_trk_px; //!
  202. TBranch *b_trk_py; //!
  203. TBranch *b_trk_pz; //!
  204. TBranch *b_trk_pt; //!
  205. TBranch *b_trk_inner_px; //!
  206. TBranch *b_trk_inner_py; //!
  207. TBranch *b_trk_inner_pz; //!
  208. TBranch *b_trk_inner_pt; //!
  209. TBranch *b_trk_outer_px; //!
  210. TBranch *b_trk_outer_py; //!
  211. TBranch *b_trk_outer_pz; //!
  212. TBranch *b_trk_outer_pt; //!
  213. TBranch *b_trk_eta; //!
  214. TBranch *b_trk_lambda; //!
  215. TBranch *b_trk_cotTheta; //!
  216. TBranch *b_trk_phi; //!
  217. TBranch *b_trk_dxy; //!
  218. TBranch *b_trk_dz; //!
  219. TBranch *b_trk_ptErr; //!
  220. TBranch *b_trk_etaErr; //!
  221. TBranch *b_trk_lambdaErr; //!
  222. TBranch *b_trk_phiErr; //!
  223. TBranch *b_trk_dxyErr; //!
  224. TBranch *b_trk_dzErr; //!
  225. TBranch *b_trk_refpoint_x; //!
  226. TBranch *b_trk_refpoint_y; //!
  227. TBranch *b_trk_refpoint_z; //!
  228. TBranch *b_trk_nChi2; //!
  229. TBranch *b_trk_q; //!
  230. TBranch *b_trk_nValid; //!
  231. TBranch *b_trk_nInvalid; //!
  232. TBranch *b_trk_nPixel; //!
  233. TBranch *b_trk_nStrip; //!
  234. TBranch *b_trk_nPixelLay; //!
  235. TBranch *b_trk_nStripLay; //!
  236. TBranch *b_trk_n3DLay; //!
  237. TBranch *b_trk_nOuterLost; //!
  238. TBranch *b_trk_nInnerLost; //!
  239. TBranch *b_trk_algo; //!
  240. TBranch *b_trk_originalAlgo; //!
  241. TBranch *b_trk_algoMask; //!
  242. TBranch *b_trk_stopReason; //!
  243. TBranch *b_trk_isHP; //!
  244. TBranch *b_trk_seedIdx; //!
  245. TBranch *b_trk_vtxx; //!
  246. TBranch *b_trk_vtxy; //!
  247. TBranch *b_trk_vtxz; //!
  248. TBranch *b_trk_shareFrac; //!
  249. TBranch *b_trk_simTrkIdx; //!
  250. TBranch *b_trk_genIdx; //!
  251. TBranch *b_trk_genDR; //!
  252. TBranch *b_sim_event; //!
  253. TBranch *b_sim_bunchCrossing; //!
  254. TBranch *b_sim_pdgId; //!
  255. TBranch *b_sim_genPdgIds; //!
  256. TBranch *b_sim_isFromBHadron; //!
  257. TBranch *b_sim_px; //!
  258. TBranch *b_sim_py; //!
  259. TBranch *b_sim_pz; //!
  260. TBranch *b_sim_pt; //!
  261. TBranch *b_sim_eta; //!
  262. TBranch *b_sim_phi; //!
  263. TBranch *b_sim_pca_pt; //!
  264. TBranch *b_sim_pca_eta; //!
  265. TBranch *b_sim_pca_lambda; //!
  266. TBranch *b_sim_pca_cotTheta; //!
  267. TBranch *b_sim_pca_phi; //!
  268. TBranch *b_sim_pca_dxy; //!
  269. TBranch *b_sim_pca_dz; //!
  270. TBranch *b_sim_q; //!
  271. TBranch *b_sim_nValid; //!
  272. TBranch *b_sim_nPixel; //!
  273. TBranch *b_sim_nStrip; //!
  274. TBranch *b_sim_nLay; //!
  275. TBranch *b_sim_nPixelLay; //!
  276. TBranch *b_sim_n3DLay; //!
  277. TBranch *b_sim_trkIdx; //!
  278. TBranch *b_sim_shareFrac; //!
  279. TBranch *b_sim_seedIdx; //!
  280. TBranch *b_sim_parentVtxIdx; //!
  281. TBranch *b_sim_decayVtxIdx; //!
  282. TBranch *b_bsp_x; //!
  283. TBranch *b_bsp_y; //!
  284. TBranch *b_bsp_z; //!
  285. TBranch *b_bsp_sigmax; //!
  286. TBranch *b_bsp_sigmay; //!
  287. TBranch *b_bsp_sigmaz; //!
  288. TBranch *b_see_fitok; //!
  289. TBranch *b_see_px; //!
  290. TBranch *b_see_py; //!
  291. TBranch *b_see_pz; //!
  292. TBranch *b_see_pt; //!
  293. TBranch *b_see_eta; //!
  294. TBranch *b_see_phi; //!
  295. TBranch *b_see_dxy; //!
  296. TBranch *b_see_dz; //!
  297. TBranch *b_see_ptErr; //!
  298. TBranch *b_see_etaErr; //!
  299. TBranch *b_see_phiErr; //!
  300. TBranch *b_see_dxyErr; //!
  301. TBranch *b_see_dzErr; //!
  302. TBranch *b_see_chi2; //!
  303. TBranch *b_see_statePt; //!
  304. TBranch *b_see_stateTrajX; //!
  305. TBranch *b_see_stateTrajY; //!
  306. TBranch *b_see_stateTrajPx; //!
  307. TBranch *b_see_stateTrajPy; //!
  308. TBranch *b_see_stateTrajPz; //!
  309. TBranch *b_see_q; //!
  310. TBranch *b_see_nValid; //!
  311. TBranch *b_see_nPixel; //!
  312. TBranch *b_see_nGlued; //!
  313. TBranch *b_see_nStrip; //!
  314. TBranch *b_see_nPhase2OT; //!
  315. TBranch *b_see_algo; //!
  316. TBranch *b_see_stopReason; //!
  317. TBranch *b_see_trkIdx; //!
  318. TBranch *b_see_shareFrac; //!
  319. TBranch *b_see_simTrkIdx; //!
  320. TBranch *b_see_offset; //!
  321. TBranch *b_see_Et; //!
  322. TBranch *b_see_hoe; //!
  323. TBranch *b_see_isBarrel; //!
  324. TBranch *b_see_layerOrDiskNr; //!
  325. TBranch *b_see_isValidPos; //!
  326. TBranch *b_see_dRZPos; //!
  327. TBranch *b_see_dPhiPos; //!
  328. TBranch *b_see_isValidNeg; //!
  329. TBranch *b_see_dRZNeg; //!
  330. TBranch *b_see_dPhiNeg; //!
  331. TBranch *b_see_isECALDriven; //!
  332. TBranch *b_see_sclIdx; //!
  333. TBranch *b_vtx_x; //!
  334. TBranch *b_vtx_y; //!
  335. TBranch *b_vtx_z; //!
  336. TBranch *b_vtx_xErr; //!
  337. TBranch *b_vtx_yErr; //!
  338. TBranch *b_vtx_zErr; //!
  339. TBranch *b_vtx_ndof; //!
  340. TBranch *b_vtx_chi2; //!
  341. TBranch *b_vtx_fake; //!
  342. TBranch *b_vtx_valid; //!
  343. TBranch *b_vtx_trkIdx; //!
  344. TBranch *b_gen_px; //!
  345. TBranch *b_gen_py; //!
  346. TBranch *b_gen_pz; //!
  347. TBranch *b_gen_charge; //!
  348. TBranch *b_gen_pdgId; //!
  349. TBranch *b_gen_vx; //!
  350. TBranch *b_gen_vy; //!
  351. TBranch *b_gen_vz; //!
  352. TBranch *b_gen_status; //!
  353. TBranch *b_gen_mother; //!
  354. TBranch *b_gen_isTauDecayProduct; //!
  355. TBranch *b_gen_isDirectHadronDecayProduct; //!
  356. TBranch *b_gen_isPrompt; //!
  357. TBranch *b_simvtx_event; //!
  358. TBranch *b_simvtx_bunchCrossing; //!
  359. TBranch *b_simvtx_processType; //!
  360. TBranch *b_simvtx_x; //!
  361. TBranch *b_simvtx_y; //!
  362. TBranch *b_simvtx_z; //!
  363. TBranch *b_simvtx_sourceSimIdx; //!
  364. TBranch *b_simvtx_daughterSimIdx; //!
  365. TBranch *b_simpv_idx; //!
  366. TBranch *b_scl_e; //!
  367. TBranch *b_scl_px; //!
  368. TBranch *b_scl_py; //!
  369. TBranch *b_scl_pz; //!
  370. TBranch *b_scl_x; //!
  371. TBranch *b_scl_y; //!
  372. TBranch *b_scl_z; //!
  373. TBranch *b_scl_hoe; //!
  374. TrackingNtuple(TTree *tree=0);
  375. virtual ~TrackingNtuple();
  376. virtual Int_t Cut(Long64_t entry);
  377. virtual Int_t GetEntry(Long64_t entry);
  378. virtual Long64_t LoadTree(Long64_t entry);
  379. virtual void Init(TTree *tree);
  380. virtual Bool_t Notify();
  381. virtual void Show(Long64_t entry = -1);
  382. };
  383. TrackingNtuple::TrackingNtuple(TTree *tree) : fChain(0)
  384. {
  385. // if parameter tree is not specified (or zero), connect the file
  386. // used to generate this class and read the Tree.
  387. if (tree == 0) {
  388. TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("trackingNtuple_1.root");
  389. if (!f || !f->IsOpen()) {
  390. f = new TFile("trackingNtuple_1.root");
  391. }
  392. TDirectory * dir = (TDirectory*)f->Get("trackingNtuple_1.root:/trackingNtuple");
  393. dir->GetObject("tree",tree);
  394. }
  395. Init(tree);
  396. }
  397. TrackingNtuple::~TrackingNtuple()
  398. {
  399. if (!fChain) return;
  400. delete fChain->GetCurrentFile();
  401. }
  402. Int_t TrackingNtuple::GetEntry(Long64_t entry)
  403. {
  404. // Read contents of entry.
  405. if (!fChain) return 0;
  406. return fChain->GetEntry(entry);
  407. }
  408. Long64_t TrackingNtuple::LoadTree(Long64_t entry)
  409. {
  410. // Set the environment to read one entry
  411. if (!fChain) return -5;
  412. Long64_t centry = fChain->LoadTree(entry);
  413. if (centry < 0) return centry;
  414. if (fChain->GetTreeNumber() != fCurrent) {
  415. fCurrent = fChain->GetTreeNumber();
  416. Notify();
  417. }
  418. return centry;
  419. }
  420. void TrackingNtuple::Init(TTree *tree)
  421. {
  422. // The Init() function is called when the selector needs to initialize
  423. // a new tree or chain. Typically here the branch addresses and branch
  424. // pointers of the tree will be set.
  425. // It is normally not necessary to make changes to the generated
  426. // code, but the routine can be extended by the user if needed.
  427. // Init() will be called many times when running on PROOF
  428. // (once per file to be processed).
  429. // Set object pointer
  430. trk_px = 0;
  431. trk_py = 0;
  432. trk_pz = 0;
  433. trk_pt = 0;
  434. trk_inner_px = 0;
  435. trk_inner_py = 0;
  436. trk_inner_pz = 0;
  437. trk_inner_pt = 0;
  438. trk_outer_px = 0;
  439. trk_outer_py = 0;
  440. trk_outer_pz = 0;
  441. trk_outer_pt = 0;
  442. trk_eta = 0;
  443. trk_lambda = 0;
  444. trk_cotTheta = 0;
  445. trk_phi = 0;
  446. trk_dxy = 0;
  447. trk_dz = 0;
  448. trk_ptErr = 0;
  449. trk_etaErr = 0;
  450. trk_lambdaErr = 0;
  451. trk_phiErr = 0;
  452. trk_dxyErr = 0;
  453. trk_dzErr = 0;
  454. trk_refpoint_x = 0;
  455. trk_refpoint_y = 0;
  456. trk_refpoint_z = 0;
  457. trk_nChi2 = 0;
  458. trk_q = 0;
  459. trk_nValid = 0;
  460. trk_nInvalid = 0;
  461. trk_nPixel = 0;
  462. trk_nStrip = 0;
  463. trk_nPixelLay = 0;
  464. trk_nStripLay = 0;
  465. trk_n3DLay = 0;
  466. trk_nOuterLost = 0;
  467. trk_nInnerLost = 0;
  468. trk_algo = 0;
  469. trk_originalAlgo = 0;
  470. trk_algoMask = 0;
  471. trk_stopReason = 0;
  472. trk_isHP = 0;
  473. trk_seedIdx = 0;
  474. trk_vtxx = 0;
  475. trk_vtxy = 0;
  476. trk_vtxz = 0;
  477. trk_shareFrac = 0;
  478. trk_simTrkIdx = 0;
  479. trk_genIdx = 0;
  480. trk_genDR = 0;
  481. sim_event = 0;
  482. sim_bunchCrossing = 0;
  483. sim_pdgId = 0;
  484. sim_genPdgIds = 0;
  485. sim_isFromBHadron = 0;
  486. sim_px = 0;
  487. sim_py = 0;
  488. sim_pz = 0;
  489. sim_pt = 0;
  490. sim_eta = 0;
  491. sim_phi = 0;
  492. sim_pca_pt = 0;
  493. sim_pca_eta = 0;
  494. sim_pca_lambda = 0;
  495. sim_pca_cotTheta = 0;
  496. sim_pca_phi = 0;
  497. sim_pca_dxy = 0;
  498. sim_pca_dz = 0;
  499. sim_q = 0;
  500. sim_nValid = 0;
  501. sim_nPixel = 0;
  502. sim_nStrip = 0;
  503. sim_nLay = 0;
  504. sim_nPixelLay = 0;
  505. sim_n3DLay = 0;
  506. sim_trkIdx = 0;
  507. sim_shareFrac = 0;
  508. sim_seedIdx = 0;
  509. sim_parentVtxIdx = 0;
  510. sim_decayVtxIdx = 0;
  511. see_fitok = 0;
  512. see_px = 0;
  513. see_py = 0;
  514. see_pz = 0;
  515. see_pt = 0;
  516. see_eta = 0;
  517. see_phi = 0;
  518. see_dxy = 0;
  519. see_dz = 0;
  520. see_ptErr = 0;
  521. see_etaErr = 0;
  522. see_phiErr = 0;
  523. see_dxyErr = 0;
  524. see_dzErr = 0;
  525. see_chi2 = 0;
  526. see_statePt = 0;
  527. see_stateTrajX = 0;
  528. see_stateTrajY = 0;
  529. see_stateTrajPx = 0;
  530. see_stateTrajPy = 0;
  531. see_stateTrajPz = 0;
  532. see_q = 0;
  533. see_nValid = 0;
  534. see_nPixel = 0;
  535. see_nGlued = 0;
  536. see_nStrip = 0;
  537. see_nPhase2OT = 0;
  538. see_algo = 0;
  539. see_stopReason = 0;
  540. see_trkIdx = 0;
  541. see_shareFrac = 0;
  542. see_simTrkIdx = 0;
  543. see_offset = 0;
  544. see_Et = 0;
  545. see_hoe = 0;
  546. see_isBarrel = 0;
  547. see_layerOrDiskNr = 0;
  548. see_isValidPos = 0;
  549. see_dRZPos = 0;
  550. see_dPhiPos = 0;
  551. see_isValidNeg = 0;
  552. see_dRZNeg = 0;
  553. see_dPhiNeg = 0;
  554. see_isECALDriven = 0;
  555. see_sclIdx = 0;
  556. vtx_x = 0;
  557. vtx_y = 0;
  558. vtx_z = 0;
  559. vtx_xErr = 0;
  560. vtx_yErr = 0;
  561. vtx_zErr = 0;
  562. vtx_ndof = 0;
  563. vtx_chi2 = 0;
  564. vtx_fake = 0;
  565. vtx_valid = 0;
  566. vtx_trkIdx = 0;
  567. gen_px = 0;
  568. gen_py = 0;
  569. gen_pz = 0;
  570. gen_charge = 0;
  571. gen_pdgId = 0;
  572. gen_vx = 0;
  573. gen_vy = 0;
  574. gen_vz = 0;
  575. gen_status = 0;
  576. gen_mother = 0;
  577. gen_isTauDecayProduct = 0;
  578. gen_isDirectHadronDecayProduct = 0;
  579. gen_isPrompt = 0;
  580. simvtx_event = 0;
  581. simvtx_bunchCrossing = 0;
  582. simvtx_processType = 0;
  583. simvtx_x = 0;
  584. simvtx_y = 0;
  585. simvtx_z = 0;
  586. simvtx_sourceSimIdx = 0;
  587. simvtx_daughterSimIdx = 0;
  588. simpv_idx = 0;
  589. scl_e = 0;
  590. scl_px = 0;
  591. scl_py = 0;
  592. scl_pz = 0;
  593. scl_x = 0;
  594. scl_y = 0;
  595. scl_z = 0;
  596. scl_hoe = 0;
  597. // Set branch addresses and branch pointers
  598. if (!tree) return;
  599. fChain = tree;
  600. fCurrent = -1;
  601. fChain->SetMakeClass(1);
  602. fChain->SetBranchAddress("event", &event, &b_event);
  603. fChain->SetBranchAddress("lumi", &lumi, &b_lumi);
  604. fChain->SetBranchAddress("run", &run, &b_run);
  605. fChain->SetBranchAddress("trk_px", &trk_px, &b_trk_px);
  606. fChain->SetBranchAddress("trk_py", &trk_py, &b_trk_py);
  607. fChain->SetBranchAddress("trk_pz", &trk_pz, &b_trk_pz);
  608. fChain->SetBranchAddress("trk_pt", &trk_pt, &b_trk_pt);
  609. fChain->SetBranchAddress("trk_inner_px", &trk_inner_px, &b_trk_inner_px);
  610. fChain->SetBranchAddress("trk_inner_py", &trk_inner_py, &b_trk_inner_py);
  611. fChain->SetBranchAddress("trk_inner_pz", &trk_inner_pz, &b_trk_inner_pz);
  612. fChain->SetBranchAddress("trk_inner_pt", &trk_inner_pt, &b_trk_inner_pt);
  613. fChain->SetBranchAddress("trk_outer_px", &trk_outer_px, &b_trk_outer_px);
  614. fChain->SetBranchAddress("trk_outer_py", &trk_outer_py, &b_trk_outer_py);
  615. fChain->SetBranchAddress("trk_outer_pz", &trk_outer_pz, &b_trk_outer_pz);
  616. fChain->SetBranchAddress("trk_outer_pt", &trk_outer_pt, &b_trk_outer_pt);
  617. fChain->SetBranchAddress("trk_eta", &trk_eta, &b_trk_eta);
  618. fChain->SetBranchAddress("trk_lambda", &trk_lambda, &b_trk_lambda);
  619. fChain->SetBranchAddress("trk_cotTheta", &trk_cotTheta, &b_trk_cotTheta);
  620. fChain->SetBranchAddress("trk_phi", &trk_phi, &b_trk_phi);
  621. fChain->SetBranchAddress("trk_dxy", &trk_dxy, &b_trk_dxy);
  622. fChain->SetBranchAddress("trk_dz", &trk_dz, &b_trk_dz);
  623. fChain->SetBranchAddress("trk_ptErr", &trk_ptErr, &b_trk_ptErr);
  624. fChain->SetBranchAddress("trk_etaErr", &trk_etaErr, &b_trk_etaErr);
  625. fChain->SetBranchAddress("trk_lambdaErr", &trk_lambdaErr, &b_trk_lambdaErr);
  626. fChain->SetBranchAddress("trk_phiErr", &trk_phiErr, &b_trk_phiErr);
  627. fChain->SetBranchAddress("trk_dxyErr", &trk_dxyErr, &b_trk_dxyErr);
  628. fChain->SetBranchAddress("trk_dzErr", &trk_dzErr, &b_trk_dzErr);
  629. fChain->SetBranchAddress("trk_refpoint_x", &trk_refpoint_x, &b_trk_refpoint_x);
  630. fChain->SetBranchAddress("trk_refpoint_y", &trk_refpoint_y, &b_trk_refpoint_y);
  631. fChain->SetBranchAddress("trk_refpoint_z", &trk_refpoint_z, &b_trk_refpoint_z);
  632. fChain->SetBranchAddress("trk_nChi2", &trk_nChi2, &b_trk_nChi2);
  633. fChain->SetBranchAddress("trk_q", &trk_q, &b_trk_q);
  634. fChain->SetBranchAddress("trk_nValid", &trk_nValid, &b_trk_nValid);
  635. fChain->SetBranchAddress("trk_nInvalid", &trk_nInvalid, &b_trk_nInvalid);
  636. fChain->SetBranchAddress("trk_nPixel", &trk_nPixel, &b_trk_nPixel);
  637. fChain->SetBranchAddress("trk_nStrip", &trk_nStrip, &b_trk_nStrip);
  638. fChain->SetBranchAddress("trk_nPixelLay", &trk_nPixelLay, &b_trk_nPixelLay);
  639. fChain->SetBranchAddress("trk_nStripLay", &trk_nStripLay, &b_trk_nStripLay);
  640. fChain->SetBranchAddress("trk_n3DLay", &trk_n3DLay, &b_trk_n3DLay);
  641. fChain->SetBranchAddress("trk_nOuterLost", &trk_nOuterLost, &b_trk_nOuterLost);
  642. fChain->SetBranchAddress("trk_nInnerLost", &trk_nInnerLost, &b_trk_nInnerLost);
  643. fChain->SetBranchAddress("trk_algo", &trk_algo, &b_trk_algo);
  644. fChain->SetBranchAddress("trk_originalAlgo", &trk_originalAlgo, &b_trk_originalAlgo);
  645. fChain->SetBranchAddress("trk_algoMask", &trk_algoMask, &b_trk_algoMask);
  646. fChain->SetBranchAddress("trk_stopReason", &trk_stopReason, &b_trk_stopReason);
  647. fChain->SetBranchAddress("trk_isHP", &trk_isHP, &b_trk_isHP);
  648. fChain->SetBranchAddress("trk_seedIdx", &trk_seedIdx, &b_trk_seedIdx);
  649. fChain->SetBranchAddress("trk_vtxx", &trk_vtxx, &b_trk_vtxx);
  650. fChain->SetBranchAddress("trk_vtxy", &trk_vtxy, &b_trk_vtxy);
  651. fChain->SetBranchAddress("trk_vtxz", &trk_vtxz, &b_trk_vtxz);
  652. fChain->SetBranchAddress("trk_shareFrac", &trk_shareFrac, &b_trk_shareFrac);
  653. fChain->SetBranchAddress("trk_simTrkIdx", &trk_simTrkIdx, &b_trk_simTrkIdx);
  654. fChain->SetBranchAddress("trk_genIdx", &trk_genIdx, &b_trk_genIdx);
  655. fChain->SetBranchAddress("trk_genDR", &trk_genDR, &b_trk_genDR);
  656. fChain->SetBranchAddress("sim_event", &sim_event, &b_sim_event);
  657. fChain->SetBranchAddress("sim_bunchCrossing", &sim_bunchCrossing, &b_sim_bunchCrossing);
  658. fChain->SetBranchAddress("sim_pdgId", &sim_pdgId, &b_sim_pdgId);
  659. fChain->SetBranchAddress("sim_genPdgIds", &sim_genPdgIds, &b_sim_genPdgIds);
  660. fChain->SetBranchAddress("sim_isFromBHadron", &sim_isFromBHadron, &b_sim_isFromBHadron);
  661. fChain->SetBranchAddress("sim_px", &sim_px, &b_sim_px);
  662. fChain->SetBranchAddress("sim_py", &sim_py, &b_sim_py);
  663. fChain->SetBranchAddress("sim_pz", &sim_pz, &b_sim_pz);
  664. fChain->SetBranchAddress("sim_pt", &sim_pt, &b_sim_pt);
  665. fChain->SetBranchAddress("sim_eta", &sim_eta, &b_sim_eta);
  666. fChain->SetBranchAddress("sim_phi", &sim_phi, &b_sim_phi);
  667. fChain->SetBranchAddress("sim_pca_pt", &sim_pca_pt, &b_sim_pca_pt);
  668. fChain->SetBranchAddress("sim_pca_eta", &sim_pca_eta, &b_sim_pca_eta);
  669. fChain->SetBranchAddress("sim_pca_lambda", &sim_pca_lambda, &b_sim_pca_lambda);
  670. fChain->SetBranchAddress("sim_pca_cotTheta", &sim_pca_cotTheta, &b_sim_pca_cotTheta);
  671. fChain->SetBranchAddress("sim_pca_phi", &sim_pca_phi, &b_sim_pca_phi);
  672. fChain->SetBranchAddress("sim_pca_dxy", &sim_pca_dxy, &b_sim_pca_dxy);
  673. fChain->SetBranchAddress("sim_pca_dz", &sim_pca_dz, &b_sim_pca_dz);
  674. fChain->SetBranchAddress("sim_q", &sim_q, &b_sim_q);
  675. fChain->SetBranchAddress("sim_nValid", &sim_nValid, &b_sim_nValid);
  676. fChain->SetBranchAddress("sim_nPixel", &sim_nPixel, &b_sim_nPixel);
  677. fChain->SetBranchAddress("sim_nStrip", &sim_nStrip, &b_sim_nStrip);
  678. fChain->SetBranchAddress("sim_nLay", &sim_nLay, &b_sim_nLay);
  679. fChain->SetBranchAddress("sim_nPixelLay", &sim_nPixelLay, &b_sim_nPixelLay);
  680. fChain->SetBranchAddress("sim_n3DLay", &sim_n3DLay, &b_sim_n3DLay);
  681. fChain->SetBranchAddress("sim_trkIdx", &sim_trkIdx, &b_sim_trkIdx);
  682. fChain->SetBranchAddress("sim_shareFrac", &sim_shareFrac, &b_sim_shareFrac);
  683. fChain->SetBranchAddress("sim_seedIdx", &sim_seedIdx, &b_sim_seedIdx);
  684. fChain->SetBranchAddress("sim_parentVtxIdx", &sim_parentVtxIdx, &b_sim_parentVtxIdx);
  685. fChain->SetBranchAddress("sim_decayVtxIdx", &sim_decayVtxIdx, &b_sim_decayVtxIdx);
  686. fChain->SetBranchAddress("bsp_x", &bsp_x, &b_bsp_x);
  687. fChain->SetBranchAddress("bsp_y", &bsp_y, &b_bsp_y);
  688. fChain->SetBranchAddress("bsp_z", &bsp_z, &b_bsp_z);
  689. fChain->SetBranchAddress("bsp_sigmax", &bsp_sigmax, &b_bsp_sigmax);
  690. fChain->SetBranchAddress("bsp_sigmay", &bsp_sigmay, &b_bsp_sigmay);
  691. fChain->SetBranchAddress("bsp_sigmaz", &bsp_sigmaz, &b_bsp_sigmaz);
  692. fChain->SetBranchAddress("see_fitok", &see_fitok, &b_see_fitok);
  693. fChain->SetBranchAddress("see_px", &see_px, &b_see_px);
  694. fChain->SetBranchAddress("see_py", &see_py, &b_see_py);
  695. fChain->SetBranchAddress("see_pz", &see_pz, &b_see_pz);
  696. fChain->SetBranchAddress("see_pt", &see_pt, &b_see_pt);
  697. fChain->SetBranchAddress("see_eta", &see_eta, &b_see_eta);
  698. fChain->SetBranchAddress("see_phi", &see_phi, &b_see_phi);
  699. fChain->SetBranchAddress("see_dxy", &see_dxy, &b_see_dxy);
  700. fChain->SetBranchAddress("see_dz", &see_dz, &b_see_dz);
  701. fChain->SetBranchAddress("see_ptErr", &see_ptErr, &b_see_ptErr);
  702. fChain->SetBranchAddress("see_etaErr", &see_etaErr, &b_see_etaErr);
  703. fChain->SetBranchAddress("see_phiErr", &see_phiErr, &b_see_phiErr);
  704. fChain->SetBranchAddress("see_dxyErr", &see_dxyErr, &b_see_dxyErr);
  705. fChain->SetBranchAddress("see_dzErr", &see_dzErr, &b_see_dzErr);
  706. fChain->SetBranchAddress("see_chi2", &see_chi2, &b_see_chi2);
  707. fChain->SetBranchAddress("see_statePt", &see_statePt, &b_see_statePt);
  708. fChain->SetBranchAddress("see_stateTrajX", &see_stateTrajX, &b_see_stateTrajX);
  709. fChain->SetBranchAddress("see_stateTrajY", &see_stateTrajY, &b_see_stateTrajY);
  710. fChain->SetBranchAddress("see_stateTrajPx", &see_stateTrajPx, &b_see_stateTrajPx);
  711. fChain->SetBranchAddress("see_stateTrajPy", &see_stateTrajPy, &b_see_stateTrajPy);
  712. fChain->SetBranchAddress("see_stateTrajPz", &see_stateTrajPz, &b_see_stateTrajPz);
  713. fChain->SetBranchAddress("see_q", &see_q, &b_see_q);
  714. fChain->SetBranchAddress("see_nValid", &see_nValid, &b_see_nValid);
  715. fChain->SetBranchAddress("see_nPixel", &see_nPixel, &b_see_nPixel);
  716. fChain->SetBranchAddress("see_nGlued", &see_nGlued, &b_see_nGlued);
  717. fChain->SetBranchAddress("see_nStrip", &see_nStrip, &b_see_nStrip);
  718. fChain->SetBranchAddress("see_nPhase2OT", &see_nPhase2OT, &b_see_nPhase2OT);
  719. fChain->SetBranchAddress("see_algo", &see_algo, &b_see_algo);
  720. fChain->SetBranchAddress("see_stopReason", &see_stopReason, &b_see_stopReason);
  721. fChain->SetBranchAddress("see_trkIdx", &see_trkIdx, &b_see_trkIdx);
  722. fChain->SetBranchAddress("see_shareFrac", &see_shareFrac, &b_see_shareFrac);
  723. fChain->SetBranchAddress("see_simTrkIdx", &see_simTrkIdx, &b_see_simTrkIdx);
  724. fChain->SetBranchAddress("see_offset", &see_offset, &b_see_offset);
  725. fChain->SetBranchAddress("see_Et", &see_Et, &b_see_Et);
  726. fChain->SetBranchAddress("see_hoe", &see_hoe, &b_see_hoe);
  727. fChain->SetBranchAddress("see_isBarrel", &see_isBarrel, &b_see_isBarrel);
  728. fChain->SetBranchAddress("see_layerOrDiskNr", &see_layerOrDiskNr, &b_see_layerOrDiskNr);
  729. fChain->SetBranchAddress("see_isValidPos", &see_isValidPos, &b_see_isValidPos);
  730. fChain->SetBranchAddress("see_dRZPos", &see_dRZPos, &b_see_dRZPos);
  731. fChain->SetBranchAddress("see_dPhiPos", &see_dPhiPos, &b_see_dPhiPos);
  732. fChain->SetBranchAddress("see_isValidNeg", &see_isValidNeg, &b_see_isValidNeg);
  733. fChain->SetBranchAddress("see_dRZNeg", &see_dRZNeg, &b_see_dRZNeg);
  734. fChain->SetBranchAddress("see_dPhiNeg", &see_dPhiNeg, &b_see_dPhiNeg);
  735. fChain->SetBranchAddress("see_isECALDriven", &see_isECALDriven, &b_see_isECALDriven);
  736. fChain->SetBranchAddress("see_sclIdx", &see_sclIdx, &b_see_sclIdx);
  737. fChain->SetBranchAddress("vtx_x", &vtx_x, &b_vtx_x);
  738. fChain->SetBranchAddress("vtx_y", &vtx_y, &b_vtx_y);
  739. fChain->SetBranchAddress("vtx_z", &vtx_z, &b_vtx_z);
  740. fChain->SetBranchAddress("vtx_xErr", &vtx_xErr, &b_vtx_xErr);
  741. fChain->SetBranchAddress("vtx_yErr", &vtx_yErr, &b_vtx_yErr);
  742. fChain->SetBranchAddress("vtx_zErr", &vtx_zErr, &b_vtx_zErr);
  743. fChain->SetBranchAddress("vtx_ndof", &vtx_ndof, &b_vtx_ndof);
  744. fChain->SetBranchAddress("vtx_chi2", &vtx_chi2, &b_vtx_chi2);
  745. fChain->SetBranchAddress("vtx_fake", &vtx_fake, &b_vtx_fake);
  746. fChain->SetBranchAddress("vtx_valid", &vtx_valid, &b_vtx_valid);
  747. fChain->SetBranchAddress("vtx_trkIdx", &vtx_trkIdx, &b_vtx_trkIdx);
  748. fChain->SetBranchAddress("gen_px", &gen_px, &b_gen_px);
  749. fChain->SetBranchAddress("gen_py", &gen_py, &b_gen_py);
  750. fChain->SetBranchAddress("gen_pz", &gen_pz, &b_gen_pz);
  751. fChain->SetBranchAddress("gen_charge", &gen_charge, &b_gen_charge);
  752. fChain->SetBranchAddress("gen_pdgId", &gen_pdgId, &b_gen_pdgId);
  753. fChain->SetBranchAddress("gen_vx", &gen_vx, &b_gen_vx);
  754. fChain->SetBranchAddress("gen_vy", &gen_vy, &b_gen_vy);
  755. fChain->SetBranchAddress("gen_vz", &gen_vz, &b_gen_vz);
  756. fChain->SetBranchAddress("gen_status", &gen_status, &b_gen_status);
  757. fChain->SetBranchAddress("gen_mother", &gen_mother, &b_gen_mother);
  758. fChain->SetBranchAddress("gen_isTauDecayProduct", &gen_isTauDecayProduct, &b_gen_isTauDecayProduct);
  759. fChain->SetBranchAddress("gen_isDirectHadronDecayProduct", &gen_isDirectHadronDecayProduct, &b_gen_isDirectHadronDecayProduct);
  760. fChain->SetBranchAddress("gen_isPrompt", &gen_isPrompt, &b_gen_isPrompt);
  761. fChain->SetBranchAddress("simvtx_event", &simvtx_event, &b_simvtx_event);
  762. fChain->SetBranchAddress("simvtx_bunchCrossing", &simvtx_bunchCrossing, &b_simvtx_bunchCrossing);
  763. fChain->SetBranchAddress("simvtx_processType", &simvtx_processType, &b_simvtx_processType);
  764. fChain->SetBranchAddress("simvtx_x", &simvtx_x, &b_simvtx_x);
  765. fChain->SetBranchAddress("simvtx_y", &simvtx_y, &b_simvtx_y);
  766. fChain->SetBranchAddress("simvtx_z", &simvtx_z, &b_simvtx_z);
  767. fChain->SetBranchAddress("simvtx_sourceSimIdx", &simvtx_sourceSimIdx, &b_simvtx_sourceSimIdx);
  768. fChain->SetBranchAddress("simvtx_daughterSimIdx", &simvtx_daughterSimIdx, &b_simvtx_daughterSimIdx);
  769. fChain->SetBranchAddress("simpv_idx", &simpv_idx, &b_simpv_idx);
  770. fChain->SetBranchAddress("scl_e", &scl_e, &b_scl_e);
  771. fChain->SetBranchAddress("scl_px", &scl_px, &b_scl_px);
  772. fChain->SetBranchAddress("scl_py", &scl_py, &b_scl_py);
  773. fChain->SetBranchAddress("scl_pz", &scl_pz, &b_scl_pz);
  774. fChain->SetBranchAddress("scl_x", &scl_x, &b_scl_x);
  775. fChain->SetBranchAddress("scl_y", &scl_y, &b_scl_y);
  776. fChain->SetBranchAddress("scl_z", &scl_z, &b_scl_z);
  777. fChain->SetBranchAddress("scl_hoe", &scl_hoe, &b_scl_hoe);
  778. Notify();
  779. }
  780. Bool_t TrackingNtuple::Notify()
  781. {
  782. // The Notify() function is called when a new file is opened. This
  783. // can be either for a new TTree in a TChain or when when a new TTree
  784. // is started when using PROOF. It is normally not necessary to make changes
  785. // to the generated code, but the routine can be extended by the
  786. // user if needed. The return value is currently not used.
  787. return kTRUE;
  788. }
  789. void TrackingNtuple::Show(Long64_t entry)
  790. {
  791. // Print contents of entry.
  792. // If entry is not specified, print current entry
  793. if (!fChain) return;
  794. fChain->Show(entry);
  795. }
  796. Int_t TrackingNtuple::Cut(Long64_t entry)
  797. {
  798. // This function may be called from Loop.
  799. // returns 1 if entry is accepted.
  800. // returns -1 otherwise.
  801. return 1;
  802. }
  803. #endif // #ifdef tree_cxx