TrackingNtupleMod.h 31 KB

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