TrackingNtuple.h 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196
  1. //////////////////////////////////////////////////////////
  2. // This class has been automatically generated on
  3. // Mon Jul 10 21:53:04 2017 by ROOT version 6.10/00
  4. // from TTree tree/tree
  5. // found on file: trackingNtuple.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. class TrackingNtuple {
  15. public :
  16. TTree *fChain; //!pointer to the analyzed TTree or TChain
  17. Int_t fCurrent; //!current Tree number in a TChain
  18. // Fixed size dimensions of array or collections stored in the TTree if any.
  19. // Declaration of leaf types
  20. ULong64_t event;
  21. UInt_t lumi;
  22. UInt_t run;
  23. vector<float> *trk_px;
  24. vector<float> *trk_py;
  25. vector<float> *trk_pz;
  26. vector<float> *trk_pt;
  27. vector<float> *trk_inner_px;
  28. vector<float> *trk_inner_py;
  29. vector<float> *trk_inner_pz;
  30. vector<float> *trk_inner_pt;
  31. vector<float> *trk_outer_px;
  32. vector<float> *trk_outer_py;
  33. vector<float> *trk_outer_pz;
  34. vector<float> *trk_outer_pt;
  35. vector<float> *trk_eta;
  36. vector<float> *trk_lambda;
  37. vector<float> *trk_cotTheta;
  38. vector<float> *trk_phi;
  39. vector<float> *trk_dxy;
  40. vector<float> *trk_dz;
  41. vector<float> *trk_ptErr;
  42. vector<float> *trk_etaErr;
  43. vector<float> *trk_lambdaErr;
  44. vector<float> *trk_phiErr;
  45. vector<float> *trk_dxyErr;
  46. vector<float> *trk_dzErr;
  47. vector<float> *trk_refpoint_x;
  48. vector<float> *trk_refpoint_y;
  49. vector<float> *trk_refpoint_z;
  50. vector<float> *trk_nChi2;
  51. vector<int> *trk_q;
  52. vector<unsigned int> *trk_nValid;
  53. vector<unsigned int> *trk_nInvalid;
  54. vector<unsigned int> *trk_nPixel;
  55. vector<unsigned int> *trk_nStrip;
  56. vector<unsigned int> *trk_nPixelLay;
  57. vector<unsigned int> *trk_nStripLay;
  58. vector<unsigned int> *trk_n3DLay;
  59. vector<unsigned int> *trk_nOuterLost;
  60. vector<unsigned int> *trk_nInnerLost;
  61. vector<unsigned int> *trk_algo;
  62. vector<unsigned int> *trk_originalAlgo;
  63. vector<ULong64_t> *trk_algoMask;
  64. vector<unsigned int> *trk_stopReason;
  65. vector<short> *trk_isHP;
  66. vector<int> *trk_seedIdx;
  67. vector<float> *trk_vtxx;
  68. vector<float> *trk_vtxy;
  69. vector<float> *trk_vtxz;
  70. vector<vector<float> > *trk_shareFrac;
  71. vector<vector<int> > *trk_simTrkIdx;
  72. vector<vector<int> > *trk_hitIdx;
  73. vector<vector<int> > *trk_hitType;
  74. vector<int> *trk_genIdx;
  75. vector<float> *trk_genDR;
  76. vector<int> *sim_event;
  77. vector<int> *sim_bunchCrossing;
  78. vector<int> *sim_pdgId;
  79. vector<float> *sim_px;
  80. vector<float> *sim_py;
  81. vector<float> *sim_pz;
  82. vector<float> *sim_pt;
  83. vector<float> *sim_eta;
  84. vector<float> *sim_phi;
  85. vector<float> *sim_pca_pt;
  86. vector<float> *sim_pca_eta;
  87. vector<float> *sim_pca_lambda;
  88. vector<float> *sim_pca_cotTheta;
  89. vector<float> *sim_pca_phi;
  90. vector<float> *sim_pca_dxy;
  91. vector<float> *sim_pca_dz;
  92. vector<int> *sim_q;
  93. vector<unsigned int> *sim_nValid;
  94. vector<unsigned int> *sim_nPixel;
  95. vector<unsigned int> *sim_nStrip;
  96. vector<unsigned int> *sim_nLay;
  97. vector<unsigned int> *sim_nPixelLay;
  98. vector<unsigned int> *sim_n3DLay;
  99. vector<vector<int> > *sim_trkIdx;
  100. vector<vector<float> > *sim_shareFrac;
  101. vector<int> *sim_parentVtxIdx;
  102. vector<vector<int> > *sim_decayVtxIdx;
  103. vector<vector<int> > *sim_simHitIdx;
  104. vector<short> *pix_isBarrel;
  105. vector<unsigned short> *pix_det;
  106. vector<unsigned short> *pix_lay;
  107. vector<unsigned short> *pix_ladder_blade;
  108. vector<unsigned int> *pix_detId;
  109. vector<vector<int> > *pix_trkIdx;
  110. vector<vector<int> > *pix_seeIdx;
  111. vector<vector<int> > *pix_simHitIdx;
  112. vector<vector<float> > *pix_chargeFraction;
  113. vector<unsigned short> *pix_simType;
  114. vector<float> *pix_x;
  115. vector<float> *pix_y;
  116. vector<float> *pix_z;
  117. vector<float> *pix_xx;
  118. vector<float> *pix_xy;
  119. vector<float> *pix_yy;
  120. vector<float> *pix_yz;
  121. vector<float> *pix_zz;
  122. vector<float> *pix_zx;
  123. vector<float> *pix_radL;
  124. vector<float> *pix_bbxi;
  125. vector<short> *str_isBarrel;
  126. vector<short> *str_isStereo;
  127. vector<unsigned short> *str_det;
  128. vector<unsigned short> *str_lay;
  129. vector<unsigned int> *str_detId;
  130. vector<vector<int> > *str_trkIdx;
  131. vector<vector<int> > *str_seeIdx;
  132. vector<vector<int> > *str_simHitIdx;
  133. vector<vector<float> > *str_chargeFraction;
  134. vector<unsigned short> *str_simType;
  135. vector<float> *str_x;
  136. vector<float> *str_y;
  137. vector<float> *str_z;
  138. vector<float> *str_xx;
  139. vector<float> *str_xy;
  140. vector<float> *str_yy;
  141. vector<float> *str_yz;
  142. vector<float> *str_zz;
  143. vector<float> *str_zx;
  144. vector<float> *str_radL;
  145. vector<float> *str_bbxi;
  146. vector<short> *glu_isBarrel;
  147. vector<unsigned int> *glu_det;
  148. vector<unsigned int> *glu_lay;
  149. vector<unsigned int> *glu_detId;
  150. vector<int> *glu_monoIdx;
  151. vector<int> *glu_stereoIdx;
  152. vector<vector<int> > *glu_seeIdx;
  153. vector<float> *glu_x;
  154. vector<float> *glu_y;
  155. vector<float> *glu_z;
  156. vector<float> *glu_xx;
  157. vector<float> *glu_xy;
  158. vector<float> *glu_yy;
  159. vector<float> *glu_yz;
  160. vector<float> *glu_zz;
  161. vector<float> *glu_zx;
  162. vector<float> *glu_radL;
  163. vector<float> *glu_bbxi;
  164. vector<short> *inv_isBarrel;
  165. vector<unsigned short> *inv_det;
  166. vector<unsigned short> *inv_lay;
  167. vector<unsigned int> *inv_detId;
  168. vector<unsigned short> *inv_type;
  169. vector<unsigned short> *simhit_det;
  170. vector<unsigned short> *simhit_lay;
  171. vector<unsigned int> *simhit_detId;
  172. vector<float> *simhit_x;
  173. vector<float> *simhit_y;
  174. vector<float> *simhit_z;
  175. vector<int> *simhit_particle;
  176. vector<short> *simhit_process;
  177. vector<float> *simhit_eloss;
  178. vector<float> *simhit_tof;
  179. vector<int> *simhit_simTrkIdx;
  180. vector<vector<int> > *simhit_hitIdx;
  181. vector<vector<int> > *simhit_hitType;
  182. Float_t bsp_x;
  183. Float_t bsp_y;
  184. Float_t bsp_z;
  185. Float_t bsp_sigmax;
  186. Float_t bsp_sigmay;
  187. Float_t bsp_sigmaz;
  188. vector<short> *see_fitok;
  189. vector<float> *see_px;
  190. vector<float> *see_py;
  191. vector<float> *see_pz;
  192. vector<float> *see_pt;
  193. vector<float> *see_eta;
  194. vector<float> *see_phi;
  195. vector<float> *see_dxy;
  196. vector<float> *see_dz;
  197. vector<float> *see_ptErr;
  198. vector<float> *see_etaErr;
  199. vector<float> *see_phiErr;
  200. vector<float> *see_dxyErr;
  201. vector<float> *see_dzErr;
  202. vector<float> *see_chi2;
  203. vector<int> *see_q;
  204. vector<unsigned int> *see_nValid;
  205. vector<unsigned int> *see_nPixel;
  206. vector<unsigned int> *see_nGlued;
  207. vector<unsigned int> *see_nStrip;
  208. vector<unsigned int> *see_algo;
  209. vector<unsigned int> *see_algoOriginal;
  210. vector<int> *see_trkIdx;
  211. vector<vector<float> > *see_shareFrac;
  212. vector<vector<int> > *see_simTrkIdx;
  213. vector<vector<int> > *see_hitIdx;
  214. vector<vector<int> > *see_hitType;
  215. vector<unsigned int> *see_offset;
  216. vector<unsigned char> *see_hitsMask;
  217. vector<int> *see_subDet2;
  218. vector<float> *see_dRz2;
  219. vector<float> *see_dPhi2;
  220. vector<float> *see_dRz2Pos;
  221. vector<float> *see_dPhi2Pos;
  222. vector<int> *see_subDet1;
  223. vector<float> *see_dRz1;
  224. vector<float> *see_dPhi1;
  225. vector<float> *see_dRz1Pos;
  226. vector<float> *see_dPhi1Pos;
  227. vector<float> *see_hoe1;
  228. vector<float> *see_hoe2;
  229. vector<float> *see_superClusterEnergy;
  230. vector<float> *see_superClusterEta;
  231. vector<float> *see_superClusterPhi;
  232. vector<float> *see_superClusterEt;
  233. vector<int> *see_superClusterIdx;
  234. vector<unsigned int> *see_ecalDriven;
  235. vector<unsigned int> *see_trkDriven;
  236. vector<float> *vtx_x;
  237. vector<float> *vtx_y;
  238. vector<float> *vtx_z;
  239. vector<float> *vtx_xErr;
  240. vector<float> *vtx_yErr;
  241. vector<float> *vtx_zErr;
  242. vector<float> *vtx_ndof;
  243. vector<float> *vtx_chi2;
  244. vector<short> *vtx_fake;
  245. vector<short> *vtx_valid;
  246. vector<vector<int> > *vtx_trkIdx;
  247. vector<float> *gen_px;
  248. vector<float> *gen_py;
  249. vector<float> *gen_pz;
  250. vector<float> *gen_charge;
  251. vector<int> *gen_pdgId;
  252. vector<float> *gen_vx;
  253. vector<float> *gen_vy;
  254. vector<float> *gen_vz;
  255. vector<int> *gen_status;
  256. vector<int> *gen_mother;
  257. vector<bool> *gen_isTauDecayProduct;
  258. vector<bool> *gen_isDirectHadronDecayProduct;
  259. vector<bool> *gen_isPrompt;
  260. vector<int> *simvtx_event;
  261. vector<int> *simvtx_bunchCrossing;
  262. vector<unsigned int> *simvtx_processType;
  263. vector<float> *simvtx_x;
  264. vector<float> *simvtx_y;
  265. vector<float> *simvtx_z;
  266. vector<vector<int> > *simvtx_sourceSimIdx;
  267. vector<vector<int> > *simvtx_daughterSimIdx;
  268. vector<int> *simpv_idx;
  269. vector<float> *scl_e;
  270. vector<float> *scl_px;
  271. vector<float> *scl_py;
  272. vector<float> *scl_pz;
  273. vector<float> *scl_x;
  274. vector<float> *scl_y;
  275. vector<float> *scl_z;
  276. vector<vector<int> > *scl_charge;
  277. vector<vector<int> > *scl_lay1;
  278. vector<vector<int> > *scl_lay2;
  279. vector<vector<int> > *scl_ladder_blade1;
  280. vector<vector<int> > *scl_ladder_blade2;
  281. vector<vector<int> > *scl_subDet1;
  282. vector<vector<int> > *scl_subDet2;
  283. vector<vector<float> > *scl_dRz1;
  284. vector<vector<float> > *scl_dPhi1;
  285. vector<vector<float> > *scl_dRz2;
  286. vector<vector<float> > *scl_dPhi2;
  287. vector<vector<int> > *scl_seedType;
  288. vector<vector<int> > *scl_seedHitIdx1;
  289. vector<vector<int> > *scl_seedHitIdx2;
  290. // List of branches
  291. TBranch *b_event; //!
  292. TBranch *b_lumi; //!
  293. TBranch *b_run; //!
  294. TBranch *b_trk_px; //!
  295. TBranch *b_trk_py; //!
  296. TBranch *b_trk_pz; //!
  297. TBranch *b_trk_pt; //!
  298. TBranch *b_trk_inner_px; //!
  299. TBranch *b_trk_inner_py; //!
  300. TBranch *b_trk_inner_pz; //!
  301. TBranch *b_trk_inner_pt; //!
  302. TBranch *b_trk_outer_px; //!
  303. TBranch *b_trk_outer_py; //!
  304. TBranch *b_trk_outer_pz; //!
  305. TBranch *b_trk_outer_pt; //!
  306. TBranch *b_trk_eta; //!
  307. TBranch *b_trk_lambda; //!
  308. TBranch *b_trk_cotTheta; //!
  309. TBranch *b_trk_phi; //!
  310. TBranch *b_trk_dxy; //!
  311. TBranch *b_trk_dz; //!
  312. TBranch *b_trk_ptErr; //!
  313. TBranch *b_trk_etaErr; //!
  314. TBranch *b_trk_lambdaErr; //!
  315. TBranch *b_trk_phiErr; //!
  316. TBranch *b_trk_dxyErr; //!
  317. TBranch *b_trk_dzErr; //!
  318. TBranch *b_trk_refpoint_x; //!
  319. TBranch *b_trk_refpoint_y; //!
  320. TBranch *b_trk_refpoint_z; //!
  321. TBranch *b_trk_nChi2; //!
  322. TBranch *b_trk_q; //!
  323. TBranch *b_trk_nValid; //!
  324. TBranch *b_trk_nInvalid; //!
  325. TBranch *b_trk_nPixel; //!
  326. TBranch *b_trk_nStrip; //!
  327. TBranch *b_trk_nPixelLay; //!
  328. TBranch *b_trk_nStripLay; //!
  329. TBranch *b_trk_n3DLay; //!
  330. TBranch *b_trk_nOuterLost; //!
  331. TBranch *b_trk_nInnerLost; //!
  332. TBranch *b_trk_algo; //!
  333. TBranch *b_trk_originalAlgo; //!
  334. TBranch *b_trk_algoMask; //!
  335. TBranch *b_trk_stopReason; //!
  336. TBranch *b_trk_isHP; //!
  337. TBranch *b_trk_seedIdx; //!
  338. TBranch *b_trk_vtxx; //!
  339. TBranch *b_trk_vtxy; //!
  340. TBranch *b_trk_vtxz; //!
  341. TBranch *b_trk_shareFrac; //!
  342. TBranch *b_trk_simTrkIdx; //!
  343. TBranch *b_trk_hitIdx; //!
  344. TBranch *b_trk_hitType; //!
  345. TBranch *b_trk_genIdx; //!
  346. TBranch *b_trk_genDR; //!
  347. TBranch *b_sim_event; //!
  348. TBranch *b_sim_bunchCrossing; //!
  349. TBranch *b_sim_pdgId; //!
  350. TBranch *b_sim_px; //!
  351. TBranch *b_sim_py; //!
  352. TBranch *b_sim_pz; //!
  353. TBranch *b_sim_pt; //!
  354. TBranch *b_sim_eta; //!
  355. TBranch *b_sim_phi; //!
  356. TBranch *b_sim_pca_pt; //!
  357. TBranch *b_sim_pca_eta; //!
  358. TBranch *b_sim_pca_lambda; //!
  359. TBranch *b_sim_pca_cotTheta; //!
  360. TBranch *b_sim_pca_phi; //!
  361. TBranch *b_sim_pca_dxy; //!
  362. TBranch *b_sim_pca_dz; //!
  363. TBranch *b_sim_q; //!
  364. TBranch *b_sim_nValid; //!
  365. TBranch *b_sim_nPixel; //!
  366. TBranch *b_sim_nStrip; //!
  367. TBranch *b_sim_nLay; //!
  368. TBranch *b_sim_nPixelLay; //!
  369. TBranch *b_sim_n3DLay; //!
  370. TBranch *b_sim_trkIdx; //!
  371. TBranch *b_sim_shareFrac; //!
  372. TBranch *b_sim_parentVtxIdx; //!
  373. TBranch *b_sim_decayVtxIdx; //!
  374. TBranch *b_sim_simHitIdx; //!
  375. TBranch *b_pix_isBarrel; //!
  376. TBranch *b_pix_det; //!
  377. TBranch *b_pix_lay; //!
  378. TBranch *b_pix_ladder_blade; //!
  379. TBranch *b_pix_detId; //!
  380. TBranch *b_pix_trkIdx; //!
  381. TBranch *b_pix_seeIdx; //!
  382. TBranch *b_pix_simHitIdx; //!
  383. TBranch *b_pix_chargeFraction; //!
  384. TBranch *b_pix_simType; //!
  385. TBranch *b_pix_x; //!
  386. TBranch *b_pix_y; //!
  387. TBranch *b_pix_z; //!
  388. TBranch *b_pix_xx; //!
  389. TBranch *b_pix_xy; //!
  390. TBranch *b_pix_yy; //!
  391. TBranch *b_pix_yz; //!
  392. TBranch *b_pix_zz; //!
  393. TBranch *b_pix_zx; //!
  394. TBranch *b_pix_radL; //!
  395. TBranch *b_pix_bbxi; //!
  396. TBranch *b_str_isBarrel; //!
  397. TBranch *b_str_isStereo; //!
  398. TBranch *b_str_det; //!
  399. TBranch *b_str_lay; //!
  400. TBranch *b_str_detId; //!
  401. TBranch *b_str_trkIdx; //!
  402. TBranch *b_str_seeIdx; //!
  403. TBranch *b_str_simHitIdx; //!
  404. TBranch *b_str_chargeFraction; //!
  405. TBranch *b_str_simType; //!
  406. TBranch *b_str_x; //!
  407. TBranch *b_str_y; //!
  408. TBranch *b_str_z; //!
  409. TBranch *b_str_xx; //!
  410. TBranch *b_str_xy; //!
  411. TBranch *b_str_yy; //!
  412. TBranch *b_str_yz; //!
  413. TBranch *b_str_zz; //!
  414. TBranch *b_str_zx; //!
  415. TBranch *b_str_radL; //!
  416. TBranch *b_str_bbxi; //!
  417. TBranch *b_glu_isBarrel; //!
  418. TBranch *b_glu_det; //!
  419. TBranch *b_glu_lay; //!
  420. TBranch *b_glu_detId; //!
  421. TBranch *b_glu_monoIdx; //!
  422. TBranch *b_glu_stereoIdx; //!
  423. TBranch *b_glu_seeIdx; //!
  424. TBranch *b_glu_x; //!
  425. TBranch *b_glu_y; //!
  426. TBranch *b_glu_z; //!
  427. TBranch *b_glu_xx; //!
  428. TBranch *b_glu_xy; //!
  429. TBranch *b_glu_yy; //!
  430. TBranch *b_glu_yz; //!
  431. TBranch *b_glu_zz; //!
  432. TBranch *b_glu_zx; //!
  433. TBranch *b_glu_radL; //!
  434. TBranch *b_glu_bbxi; //!
  435. TBranch *b_inv_isBarrel; //!
  436. TBranch *b_inv_det; //!
  437. TBranch *b_inv_lay; //!
  438. TBranch *b_inv_detId; //!
  439. TBranch *b_inv_type; //!
  440. TBranch *b_simhit_det; //!
  441. TBranch *b_simhit_lay; //!
  442. TBranch *b_simhit_detId; //!
  443. TBranch *b_simhit_x; //!
  444. TBranch *b_simhit_y; //!
  445. TBranch *b_simhit_z; //!
  446. TBranch *b_simhit_particle; //!
  447. TBranch *b_simhit_process; //!
  448. TBranch *b_simhit_eloss; //!
  449. TBranch *b_simhit_tof; //!
  450. TBranch *b_simhit_simTrkIdx; //!
  451. TBranch *b_simhit_hitIdx; //!
  452. TBranch *b_simhit_hitType; //!
  453. TBranch *b_bsp_x; //!
  454. TBranch *b_bsp_y; //!
  455. TBranch *b_bsp_z; //!
  456. TBranch *b_bsp_sigmax; //!
  457. TBranch *b_bsp_sigmay; //!
  458. TBranch *b_bsp_sigmaz; //!
  459. TBranch *b_see_fitok; //!
  460. TBranch *b_see_px; //!
  461. TBranch *b_see_py; //!
  462. TBranch *b_see_pz; //!
  463. TBranch *b_see_pt; //!
  464. TBranch *b_see_eta; //!
  465. TBranch *b_see_phi; //!
  466. TBranch *b_see_dxy; //!
  467. TBranch *b_see_dz; //!
  468. TBranch *b_see_ptErr; //!
  469. TBranch *b_see_etaErr; //!
  470. TBranch *b_see_phiErr; //!
  471. TBranch *b_see_dxyErr; //!
  472. TBranch *b_see_dzErr; //!
  473. TBranch *b_see_chi2; //!
  474. TBranch *b_see_q; //!
  475. TBranch *b_see_nValid; //!
  476. TBranch *b_see_nPixel; //!
  477. TBranch *b_see_nGlued; //!
  478. TBranch *b_see_nStrip; //!
  479. TBranch *b_see_algo; //!
  480. TBranch *b_see_algoOriginal; //!
  481. TBranch *b_see_trkIdx; //!
  482. TBranch *b_see_shareFrac; //!
  483. TBranch *b_see_simTrkIdx; //!
  484. TBranch *b_see_hitIdx; //!
  485. TBranch *b_see_hitType; //!
  486. TBranch *b_see_offset; //!
  487. TBranch *b_see_hitsMask; //!
  488. TBranch *b_see_subDet2; //!
  489. TBranch *b_see_dRz2; //!
  490. TBranch *b_see_dPhi2; //!
  491. TBranch *b_see_dRz2Pos; //!
  492. TBranch *b_see_dPhi2Pos; //!
  493. TBranch *b_see_subDet1; //!
  494. TBranch *b_see_dRz1; //!
  495. TBranch *b_see_dPhi1; //!
  496. TBranch *b_see_dRz1Pos; //!
  497. TBranch *b_see_dPhi1Pos; //!
  498. TBranch *b_see_hoe1; //!
  499. TBranch *b_see_hoe2; //!
  500. TBranch *b_see_superClusterEnergy; //!
  501. TBranch *b_see_superClusterEta; //!
  502. TBranch *b_see_superClusterPhi; //!
  503. TBranch *b_see_superClusterEt; //!
  504. TBranch *b_see_superClusterIdx; //!
  505. TBranch *b_see_ecalDriven; //!
  506. TBranch *b_see_trkDriven; //!
  507. TBranch *b_vtx_x; //!
  508. TBranch *b_vtx_y; //!
  509. TBranch *b_vtx_z; //!
  510. TBranch *b_vtx_xErr; //!
  511. TBranch *b_vtx_yErr; //!
  512. TBranch *b_vtx_zErr; //!
  513. TBranch *b_vtx_ndof; //!
  514. TBranch *b_vtx_chi2; //!
  515. TBranch *b_vtx_fake; //!
  516. TBranch *b_vtx_valid; //!
  517. TBranch *b_vtx_trkIdx; //!
  518. TBranch *b_gen_px; //!
  519. TBranch *b_gen_py; //!
  520. TBranch *b_gen_pz; //!
  521. TBranch *b_gen_charge; //!
  522. TBranch *b_gen_pdgId; //!
  523. TBranch *b_gen_vx; //!
  524. TBranch *b_gen_vy; //!
  525. TBranch *b_gen_vz; //!
  526. TBranch *b_gen_status; //!
  527. TBranch *b_gen_mother; //!
  528. TBranch *b_gen_isTauDecayProduct; //!
  529. TBranch *b_gen_isDirectHadronDecayProduct; //!
  530. TBranch *b_gen_isPrompt; //!
  531. TBranch *b_simvtx_event; //!
  532. TBranch *b_simvtx_bunchCrossing; //!
  533. TBranch *b_simvtx_processType; //!
  534. TBranch *b_simvtx_x; //!
  535. TBranch *b_simvtx_y; //!
  536. TBranch *b_simvtx_z; //!
  537. TBranch *b_simvtx_sourceSimIdx; //!
  538. TBranch *b_simvtx_daughterSimIdx; //!
  539. TBranch *b_simpv_idx; //!
  540. TBranch *b_scl_e; //!
  541. TBranch *b_scl_px; //!
  542. TBranch *b_scl_py; //!
  543. TBranch *b_scl_pz; //!
  544. TBranch *b_scl_x; //!
  545. TBranch *b_scl_y; //!
  546. TBranch *b_scl_z; //!
  547. TBranch *b_scl_charge; //!
  548. TBranch *b_scl_lay1; //!
  549. TBranch *b_scl_lay2; //!
  550. TBranch *b_scl_ladder_blade1; //!
  551. TBranch *b_scl_ladder_blade2; //!
  552. TBranch *b_scl_subDet1; //!
  553. TBranch *b_scl_subDet2; //!
  554. TBranch *b_scl_dRz1; //!
  555. TBranch *b_scl_dPhi1; //!
  556. TBranch *b_scl_dRz2; //!
  557. TBranch *b_scl_dPhi2; //!
  558. TBranch *b_scl_seedType; //!
  559. TBranch *b_scl_seedHitIdx1; //!
  560. TBranch *b_scl_seedHitIdx2; //!
  561. TrackingNtuple(TTree *tree=0);
  562. virtual ~TrackingNtuple();
  563. virtual Int_t Cut(Long64_t entry);
  564. virtual Int_t GetEntry(Long64_t entry);
  565. virtual Long64_t LoadTree(Long64_t entry);
  566. virtual void Init(TTree *tree);
  567. virtual Bool_t Notify();
  568. virtual void Show(Long64_t entry = -1);
  569. };
  570. TrackingNtuple::TrackingNtuple(TTree *tree) : fChain(0)
  571. {
  572. // if parameter tree is not specified (or zero), connect the file
  573. // used to generate this class and read the Tree.
  574. if (tree == 0) {
  575. TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("trackingNtuple.root");
  576. if (!f || !f->IsOpen()) {
  577. f = new TFile("trackingNtuple.root");
  578. }
  579. TDirectory * dir = (TDirectory*)f->Get("trackingNtuple.root:/trackingNtuple");
  580. dir->GetObject("tree",tree);
  581. }
  582. Init(tree);
  583. }
  584. TrackingNtuple::~TrackingNtuple()
  585. {
  586. if (!fChain) return;
  587. delete fChain->GetCurrentFile();
  588. }
  589. Int_t TrackingNtuple::GetEntry(Long64_t entry)
  590. {
  591. // Read contents of entry.
  592. if (!fChain) return 0;
  593. return fChain->GetEntry(entry);
  594. }
  595. Long64_t TrackingNtuple::LoadTree(Long64_t entry)
  596. {
  597. // Set the environment to read one entry
  598. if (!fChain) return -5;
  599. Long64_t centry = fChain->LoadTree(entry);
  600. if (centry < 0) return centry;
  601. if (fChain->GetTreeNumber() != fCurrent) {
  602. fCurrent = fChain->GetTreeNumber();
  603. Notify();
  604. }
  605. return centry;
  606. }
  607. void TrackingNtuple::Init(TTree *tree)
  608. {
  609. // The Init() function is called when the selector needs to initialize
  610. // a new tree or chain. Typically here the branch addresses and branch
  611. // pointers of the tree will be set.
  612. // It is normally not necessary to make changes to the generated
  613. // code, but the routine can be extended by the user if needed.
  614. // Init() will be called many times when running on PROOF
  615. // (once per file to be processed).
  616. // Set object pointer
  617. trk_px = 0;
  618. trk_py = 0;
  619. trk_pz = 0;
  620. trk_pt = 0;
  621. trk_inner_px = 0;
  622. trk_inner_py = 0;
  623. trk_inner_pz = 0;
  624. trk_inner_pt = 0;
  625. trk_outer_px = 0;
  626. trk_outer_py = 0;
  627. trk_outer_pz = 0;
  628. trk_outer_pt = 0;
  629. trk_eta = 0;
  630. trk_lambda = 0;
  631. trk_cotTheta = 0;
  632. trk_phi = 0;
  633. trk_dxy = 0;
  634. trk_dz = 0;
  635. trk_ptErr = 0;
  636. trk_etaErr = 0;
  637. trk_lambdaErr = 0;
  638. trk_phiErr = 0;
  639. trk_dxyErr = 0;
  640. trk_dzErr = 0;
  641. trk_refpoint_x = 0;
  642. trk_refpoint_y = 0;
  643. trk_refpoint_z = 0;
  644. trk_nChi2 = 0;
  645. trk_q = 0;
  646. trk_nValid = 0;
  647. trk_nInvalid = 0;
  648. trk_nPixel = 0;
  649. trk_nStrip = 0;
  650. trk_nPixelLay = 0;
  651. trk_nStripLay = 0;
  652. trk_n3DLay = 0;
  653. trk_nOuterLost = 0;
  654. trk_nInnerLost = 0;
  655. trk_algo = 0;
  656. trk_originalAlgo = 0;
  657. trk_algoMask = 0;
  658. trk_stopReason = 0;
  659. trk_isHP = 0;
  660. trk_seedIdx = 0;
  661. trk_vtxx = 0;
  662. trk_vtxy = 0;
  663. trk_vtxz = 0;
  664. trk_shareFrac = 0;
  665. trk_simTrkIdx = 0;
  666. trk_hitIdx = 0;
  667. trk_hitType = 0;
  668. trk_genIdx = 0;
  669. trk_genDR = 0;
  670. sim_event = 0;
  671. sim_bunchCrossing = 0;
  672. sim_pdgId = 0;
  673. sim_px = 0;
  674. sim_py = 0;
  675. sim_pz = 0;
  676. sim_pt = 0;
  677. sim_eta = 0;
  678. sim_phi = 0;
  679. sim_pca_pt = 0;
  680. sim_pca_eta = 0;
  681. sim_pca_lambda = 0;
  682. sim_pca_cotTheta = 0;
  683. sim_pca_phi = 0;
  684. sim_pca_dxy = 0;
  685. sim_pca_dz = 0;
  686. sim_q = 0;
  687. sim_nValid = 0;
  688. sim_nPixel = 0;
  689. sim_nStrip = 0;
  690. sim_nLay = 0;
  691. sim_nPixelLay = 0;
  692. sim_n3DLay = 0;
  693. sim_trkIdx = 0;
  694. sim_shareFrac = 0;
  695. sim_parentVtxIdx = 0;
  696. sim_decayVtxIdx = 0;
  697. sim_simHitIdx = 0;
  698. pix_isBarrel = 0;
  699. pix_det = 0;
  700. pix_lay = 0;
  701. pix_ladder_blade = 0;
  702. pix_detId = 0;
  703. pix_trkIdx = 0;
  704. pix_seeIdx = 0;
  705. pix_simHitIdx = 0;
  706. pix_chargeFraction = 0;
  707. pix_simType = 0;
  708. pix_x = 0;
  709. pix_y = 0;
  710. pix_z = 0;
  711. pix_xx = 0;
  712. pix_xy = 0;
  713. pix_yy = 0;
  714. pix_yz = 0;
  715. pix_zz = 0;
  716. pix_zx = 0;
  717. pix_radL = 0;
  718. pix_bbxi = 0;
  719. str_isBarrel = 0;
  720. str_isStereo = 0;
  721. str_det = 0;
  722. str_lay = 0;
  723. str_detId = 0;
  724. str_trkIdx = 0;
  725. str_seeIdx = 0;
  726. str_simHitIdx = 0;
  727. str_chargeFraction = 0;
  728. str_simType = 0;
  729. str_x = 0;
  730. str_y = 0;
  731. str_z = 0;
  732. str_xx = 0;
  733. str_xy = 0;
  734. str_yy = 0;
  735. str_yz = 0;
  736. str_zz = 0;
  737. str_zx = 0;
  738. str_radL = 0;
  739. str_bbxi = 0;
  740. glu_isBarrel = 0;
  741. glu_det = 0;
  742. glu_lay = 0;
  743. glu_detId = 0;
  744. glu_monoIdx = 0;
  745. glu_stereoIdx = 0;
  746. glu_seeIdx = 0;
  747. glu_x = 0;
  748. glu_y = 0;
  749. glu_z = 0;
  750. glu_xx = 0;
  751. glu_xy = 0;
  752. glu_yy = 0;
  753. glu_yz = 0;
  754. glu_zz = 0;
  755. glu_zx = 0;
  756. glu_radL = 0;
  757. glu_bbxi = 0;
  758. inv_isBarrel = 0;
  759. inv_det = 0;
  760. inv_lay = 0;
  761. inv_detId = 0;
  762. inv_type = 0;
  763. simhit_det = 0;
  764. simhit_lay = 0;
  765. simhit_detId = 0;
  766. simhit_x = 0;
  767. simhit_y = 0;
  768. simhit_z = 0;
  769. simhit_particle = 0;
  770. simhit_process = 0;
  771. simhit_eloss = 0;
  772. simhit_tof = 0;
  773. simhit_simTrkIdx = 0;
  774. simhit_hitIdx = 0;
  775. simhit_hitType = 0;
  776. see_fitok = 0;
  777. see_px = 0;
  778. see_py = 0;
  779. see_pz = 0;
  780. see_pt = 0;
  781. see_eta = 0;
  782. see_phi = 0;
  783. see_dxy = 0;
  784. see_dz = 0;
  785. see_ptErr = 0;
  786. see_etaErr = 0;
  787. see_phiErr = 0;
  788. see_dxyErr = 0;
  789. see_dzErr = 0;
  790. see_chi2 = 0;
  791. see_q = 0;
  792. see_nValid = 0;
  793. see_nPixel = 0;
  794. see_nGlued = 0;
  795. see_nStrip = 0;
  796. see_algo = 0;
  797. see_algoOriginal = 0;
  798. see_trkIdx = 0;
  799. see_shareFrac = 0;
  800. see_simTrkIdx = 0;
  801. see_hitIdx = 0;
  802. see_hitType = 0;
  803. see_offset = 0;
  804. see_hitsMask = 0;
  805. see_subDet2 = 0;
  806. see_dRz2 = 0;
  807. see_dPhi2 = 0;
  808. see_dRz2Pos = 0;
  809. see_dPhi2Pos = 0;
  810. see_subDet1 = 0;
  811. see_dRz1 = 0;
  812. see_dPhi1 = 0;
  813. see_dRz1Pos = 0;
  814. see_dPhi1Pos = 0;
  815. see_hoe1 = 0;
  816. see_hoe2 = 0;
  817. see_superClusterEnergy = 0;
  818. see_superClusterEta = 0;
  819. see_superClusterPhi = 0;
  820. see_superClusterEt = 0;
  821. see_superClusterIdx = 0;
  822. see_ecalDriven = 0;
  823. see_trkDriven = 0;
  824. vtx_x = 0;
  825. vtx_y = 0;
  826. vtx_z = 0;
  827. vtx_xErr = 0;
  828. vtx_yErr = 0;
  829. vtx_zErr = 0;
  830. vtx_ndof = 0;
  831. vtx_chi2 = 0;
  832. vtx_fake = 0;
  833. vtx_valid = 0;
  834. vtx_trkIdx = 0;
  835. gen_px = 0;
  836. gen_py = 0;
  837. gen_pz = 0;
  838. gen_charge = 0;
  839. gen_pdgId = 0;
  840. gen_vx = 0;
  841. gen_vy = 0;
  842. gen_vz = 0;
  843. gen_status = 0;
  844. gen_mother = 0;
  845. gen_isTauDecayProduct = 0;
  846. gen_isDirectHadronDecayProduct = 0;
  847. gen_isPrompt = 0;
  848. simvtx_event = 0;
  849. simvtx_bunchCrossing = 0;
  850. simvtx_processType = 0;
  851. simvtx_x = 0;
  852. simvtx_y = 0;
  853. simvtx_z = 0;
  854. simvtx_sourceSimIdx = 0;
  855. simvtx_daughterSimIdx = 0;
  856. simpv_idx = 0;
  857. scl_e = 0;
  858. scl_px = 0;
  859. scl_py = 0;
  860. scl_pz = 0;
  861. scl_x = 0;
  862. scl_y = 0;
  863. scl_z = 0;
  864. scl_charge = 0;
  865. scl_lay1 = 0;
  866. scl_ladder_blade1 = 0;
  867. scl_ladder_blade2 = 0;
  868. scl_subDet1 = 0;
  869. scl_subDet2 = 0;
  870. scl_dRz1 = 0;
  871. scl_dPhi1 = 0;
  872. scl_dRz2 = 0;
  873. scl_dPhi2 = 0;
  874. scl_seedType = 0;
  875. scl_seedHitIdx1 = 0;
  876. scl_seedHitIdx2 = 0;
  877. // Set branch addresses and branch pointers
  878. if (!tree) return;
  879. fChain = tree;
  880. fCurrent = -1;
  881. fChain->SetMakeClass(1);
  882. fChain->SetBranchAddress("event", &event, &b_event);
  883. fChain->SetBranchAddress("lumi", &lumi, &b_lumi);
  884. fChain->SetBranchAddress("run", &run, &b_run);
  885. fChain->SetBranchAddress("trk_px", &trk_px, &b_trk_px);
  886. fChain->SetBranchAddress("trk_py", &trk_py, &b_trk_py);
  887. fChain->SetBranchAddress("trk_pz", &trk_pz, &b_trk_pz);
  888. fChain->SetBranchAddress("trk_pt", &trk_pt, &b_trk_pt);
  889. fChain->SetBranchAddress("trk_inner_px", &trk_inner_px, &b_trk_inner_px);
  890. fChain->SetBranchAddress("trk_inner_py", &trk_inner_py, &b_trk_inner_py);
  891. fChain->SetBranchAddress("trk_inner_pz", &trk_inner_pz, &b_trk_inner_pz);
  892. fChain->SetBranchAddress("trk_inner_pt", &trk_inner_pt, &b_trk_inner_pt);
  893. fChain->SetBranchAddress("trk_outer_px", &trk_outer_px, &b_trk_outer_px);
  894. fChain->SetBranchAddress("trk_outer_py", &trk_outer_py, &b_trk_outer_py);
  895. fChain->SetBranchAddress("trk_outer_pz", &trk_outer_pz, &b_trk_outer_pz);
  896. fChain->SetBranchAddress("trk_outer_pt", &trk_outer_pt, &b_trk_outer_pt);
  897. fChain->SetBranchAddress("trk_eta", &trk_eta, &b_trk_eta);
  898. fChain->SetBranchAddress("trk_lambda", &trk_lambda, &b_trk_lambda);
  899. fChain->SetBranchAddress("trk_cotTheta", &trk_cotTheta, &b_trk_cotTheta);
  900. fChain->SetBranchAddress("trk_phi", &trk_phi, &b_trk_phi);
  901. fChain->SetBranchAddress("trk_dxy", &trk_dxy, &b_trk_dxy);
  902. fChain->SetBranchAddress("trk_dz", &trk_dz, &b_trk_dz);
  903. fChain->SetBranchAddress("trk_ptErr", &trk_ptErr, &b_trk_ptErr);
  904. fChain->SetBranchAddress("trk_etaErr", &trk_etaErr, &b_trk_etaErr);
  905. fChain->SetBranchAddress("trk_lambdaErr", &trk_lambdaErr, &b_trk_lambdaErr);
  906. fChain->SetBranchAddress("trk_phiErr", &trk_phiErr, &b_trk_phiErr);
  907. fChain->SetBranchAddress("trk_dxyErr", &trk_dxyErr, &b_trk_dxyErr);
  908. fChain->SetBranchAddress("trk_dzErr", &trk_dzErr, &b_trk_dzErr);
  909. fChain->SetBranchAddress("trk_refpoint_x", &trk_refpoint_x, &b_trk_refpoint_x);
  910. fChain->SetBranchAddress("trk_refpoint_y", &trk_refpoint_y, &b_trk_refpoint_y);
  911. fChain->SetBranchAddress("trk_refpoint_z", &trk_refpoint_z, &b_trk_refpoint_z);
  912. fChain->SetBranchAddress("trk_nChi2", &trk_nChi2, &b_trk_nChi2);
  913. fChain->SetBranchAddress("trk_q", &trk_q, &b_trk_q);
  914. fChain->SetBranchAddress("trk_nValid", &trk_nValid, &b_trk_nValid);
  915. fChain->SetBranchAddress("trk_nInvalid", &trk_nInvalid, &b_trk_nInvalid);
  916. fChain->SetBranchAddress("trk_nPixel", &trk_nPixel, &b_trk_nPixel);
  917. fChain->SetBranchAddress("trk_nStrip", &trk_nStrip, &b_trk_nStrip);
  918. fChain->SetBranchAddress("trk_nPixelLay", &trk_nPixelLay, &b_trk_nPixelLay);
  919. fChain->SetBranchAddress("trk_nStripLay", &trk_nStripLay, &b_trk_nStripLay);
  920. fChain->SetBranchAddress("trk_n3DLay", &trk_n3DLay, &b_trk_n3DLay);
  921. fChain->SetBranchAddress("trk_nOuterLost", &trk_nOuterLost, &b_trk_nOuterLost);
  922. fChain->SetBranchAddress("trk_nInnerLost", &trk_nInnerLost, &b_trk_nInnerLost);
  923. fChain->SetBranchAddress("trk_algo", &trk_algo, &b_trk_algo);
  924. fChain->SetBranchAddress("trk_originalAlgo", &trk_originalAlgo, &b_trk_originalAlgo);
  925. fChain->SetBranchAddress("trk_algoMask", &trk_algoMask, &b_trk_algoMask);
  926. fChain->SetBranchAddress("trk_stopReason", &trk_stopReason, &b_trk_stopReason);
  927. fChain->SetBranchAddress("trk_isHP", &trk_isHP, &b_trk_isHP);
  928. fChain->SetBranchAddress("trk_seedIdx", &trk_seedIdx, &b_trk_seedIdx);
  929. fChain->SetBranchAddress("trk_vtxx", &trk_vtxx, &b_trk_vtxx);
  930. fChain->SetBranchAddress("trk_vtxy", &trk_vtxy, &b_trk_vtxy);
  931. fChain->SetBranchAddress("trk_vtxz", &trk_vtxz, &b_trk_vtxz);
  932. fChain->SetBranchAddress("trk_shareFrac", &trk_shareFrac, &b_trk_shareFrac);
  933. fChain->SetBranchAddress("trk_simTrkIdx", &trk_simTrkIdx, &b_trk_simTrkIdx);
  934. fChain->SetBranchAddress("trk_hitIdx", &trk_hitIdx, &b_trk_hitIdx);
  935. fChain->SetBranchAddress("trk_hitType", &trk_hitType, &b_trk_hitType);
  936. fChain->SetBranchAddress("trk_genIdx", &trk_genIdx, &b_trk_genIdx);
  937. fChain->SetBranchAddress("trk_genDR", &trk_genDR, &b_trk_genDR);
  938. fChain->SetBranchAddress("sim_event", &sim_event, &b_sim_event);
  939. fChain->SetBranchAddress("sim_bunchCrossing", &sim_bunchCrossing, &b_sim_bunchCrossing);
  940. fChain->SetBranchAddress("sim_pdgId", &sim_pdgId, &b_sim_pdgId);
  941. fChain->SetBranchAddress("sim_px", &sim_px, &b_sim_px);
  942. fChain->SetBranchAddress("sim_py", &sim_py, &b_sim_py);
  943. fChain->SetBranchAddress("sim_pz", &sim_pz, &b_sim_pz);
  944. fChain->SetBranchAddress("sim_pt", &sim_pt, &b_sim_pt);
  945. fChain->SetBranchAddress("sim_eta", &sim_eta, &b_sim_eta);
  946. fChain->SetBranchAddress("sim_phi", &sim_phi, &b_sim_phi);
  947. fChain->SetBranchAddress("sim_pca_pt", &sim_pca_pt, &b_sim_pca_pt);
  948. fChain->SetBranchAddress("sim_pca_eta", &sim_pca_eta, &b_sim_pca_eta);
  949. fChain->SetBranchAddress("sim_pca_lambda", &sim_pca_lambda, &b_sim_pca_lambda);
  950. fChain->SetBranchAddress("sim_pca_cotTheta", &sim_pca_cotTheta, &b_sim_pca_cotTheta);
  951. fChain->SetBranchAddress("sim_pca_phi", &sim_pca_phi, &b_sim_pca_phi);
  952. fChain->SetBranchAddress("sim_pca_dxy", &sim_pca_dxy, &b_sim_pca_dxy);
  953. fChain->SetBranchAddress("sim_pca_dz", &sim_pca_dz, &b_sim_pca_dz);
  954. fChain->SetBranchAddress("sim_q", &sim_q, &b_sim_q);
  955. fChain->SetBranchAddress("sim_nValid", &sim_nValid, &b_sim_nValid);
  956. fChain->SetBranchAddress("sim_nPixel", &sim_nPixel, &b_sim_nPixel);
  957. fChain->SetBranchAddress("sim_nStrip", &sim_nStrip, &b_sim_nStrip);
  958. fChain->SetBranchAddress("sim_nLay", &sim_nLay, &b_sim_nLay);
  959. fChain->SetBranchAddress("sim_nPixelLay", &sim_nPixelLay, &b_sim_nPixelLay);
  960. fChain->SetBranchAddress("sim_n3DLay", &sim_n3DLay, &b_sim_n3DLay);
  961. fChain->SetBranchAddress("sim_trkIdx", &sim_trkIdx, &b_sim_trkIdx);
  962. fChain->SetBranchAddress("sim_shareFrac", &sim_shareFrac, &b_sim_shareFrac);
  963. fChain->SetBranchAddress("sim_parentVtxIdx", &sim_parentVtxIdx, &b_sim_parentVtxIdx);
  964. fChain->SetBranchAddress("sim_decayVtxIdx", &sim_decayVtxIdx, &b_sim_decayVtxIdx);
  965. fChain->SetBranchAddress("sim_simHitIdx", &sim_simHitIdx, &b_sim_simHitIdx);
  966. fChain->SetBranchAddress("pix_isBarrel", &pix_isBarrel, &b_pix_isBarrel);
  967. fChain->SetBranchAddress("pix_det", &pix_det, &b_pix_det);
  968. fChain->SetBranchAddress("pix_lay", &pix_lay, &b_pix_lay);
  969. fChain->SetBranchAddress("pix_ladder_blade", &pix_ladder_blade, &b_pix_ladder_blade);
  970. fChain->SetBranchAddress("pix_detId", &pix_detId, &b_pix_detId);
  971. fChain->SetBranchAddress("pix_trkIdx", &pix_trkIdx, &b_pix_trkIdx);
  972. fChain->SetBranchAddress("pix_seeIdx", &pix_seeIdx, &b_pix_seeIdx);
  973. fChain->SetBranchAddress("pix_simHitIdx", &pix_simHitIdx, &b_pix_simHitIdx);
  974. fChain->SetBranchAddress("pix_chargeFraction", &pix_chargeFraction, &b_pix_chargeFraction);
  975. fChain->SetBranchAddress("pix_simType", &pix_simType, &b_pix_simType);
  976. fChain->SetBranchAddress("pix_x", &pix_x, &b_pix_x);
  977. fChain->SetBranchAddress("pix_y", &pix_y, &b_pix_y);
  978. fChain->SetBranchAddress("pix_z", &pix_z, &b_pix_z);
  979. fChain->SetBranchAddress("pix_xx", &pix_xx, &b_pix_xx);
  980. fChain->SetBranchAddress("pix_xy", &pix_xy, &b_pix_xy);
  981. fChain->SetBranchAddress("pix_yy", &pix_yy, &b_pix_yy);
  982. fChain->SetBranchAddress("pix_yz", &pix_yz, &b_pix_yz);
  983. fChain->SetBranchAddress("pix_zz", &pix_zz, &b_pix_zz);
  984. fChain->SetBranchAddress("pix_zx", &pix_zx, &b_pix_zx);
  985. fChain->SetBranchAddress("pix_radL", &pix_radL, &b_pix_radL);
  986. fChain->SetBranchAddress("pix_bbxi", &pix_bbxi, &b_pix_bbxi);
  987. fChain->SetBranchAddress("str_isBarrel", &str_isBarrel, &b_str_isBarrel);
  988. fChain->SetBranchAddress("str_isStereo", &str_isStereo, &b_str_isStereo);
  989. fChain->SetBranchAddress("str_det", &str_det, &b_str_det);
  990. fChain->SetBranchAddress("str_lay", &str_lay, &b_str_lay);
  991. fChain->SetBranchAddress("str_detId", &str_detId, &b_str_detId);
  992. fChain->SetBranchAddress("str_trkIdx", &str_trkIdx, &b_str_trkIdx);
  993. fChain->SetBranchAddress("str_seeIdx", &str_seeIdx, &b_str_seeIdx);
  994. fChain->SetBranchAddress("str_simHitIdx", &str_simHitIdx, &b_str_simHitIdx);
  995. fChain->SetBranchAddress("str_chargeFraction", &str_chargeFraction, &b_str_chargeFraction);
  996. fChain->SetBranchAddress("str_simType", &str_simType, &b_str_simType);
  997. fChain->SetBranchAddress("str_x", &str_x, &b_str_x);
  998. fChain->SetBranchAddress("str_y", &str_y, &b_str_y);
  999. fChain->SetBranchAddress("str_z", &str_z, &b_str_z);
  1000. fChain->SetBranchAddress("str_xx", &str_xx, &b_str_xx);
  1001. fChain->SetBranchAddress("str_xy", &str_xy, &b_str_xy);
  1002. fChain->SetBranchAddress("str_yy", &str_yy, &b_str_yy);
  1003. fChain->SetBranchAddress("str_yz", &str_yz, &b_str_yz);
  1004. fChain->SetBranchAddress("str_zz", &str_zz, &b_str_zz);
  1005. fChain->SetBranchAddress("str_zx", &str_zx, &b_str_zx);
  1006. fChain->SetBranchAddress("str_radL", &str_radL, &b_str_radL);
  1007. fChain->SetBranchAddress("str_bbxi", &str_bbxi, &b_str_bbxi);
  1008. fChain->SetBranchAddress("glu_isBarrel", &glu_isBarrel, &b_glu_isBarrel);
  1009. fChain->SetBranchAddress("glu_det", &glu_det, &b_glu_det);
  1010. fChain->SetBranchAddress("glu_lay", &glu_lay, &b_glu_lay);
  1011. fChain->SetBranchAddress("glu_detId", &glu_detId, &b_glu_detId);
  1012. fChain->SetBranchAddress("glu_monoIdx", &glu_monoIdx, &b_glu_monoIdx);
  1013. fChain->SetBranchAddress("glu_stereoIdx", &glu_stereoIdx, &b_glu_stereoIdx);
  1014. fChain->SetBranchAddress("glu_seeIdx", &glu_seeIdx, &b_glu_seeIdx);
  1015. fChain->SetBranchAddress("glu_x", &glu_x, &b_glu_x);
  1016. fChain->SetBranchAddress("glu_y", &glu_y, &b_glu_y);
  1017. fChain->SetBranchAddress("glu_z", &glu_z, &b_glu_z);
  1018. fChain->SetBranchAddress("glu_xx", &glu_xx, &b_glu_xx);
  1019. fChain->SetBranchAddress("glu_xy", &glu_xy, &b_glu_xy);
  1020. fChain->SetBranchAddress("glu_yy", &glu_yy, &b_glu_yy);
  1021. fChain->SetBranchAddress("glu_yz", &glu_yz, &b_glu_yz);
  1022. fChain->SetBranchAddress("glu_zz", &glu_zz, &b_glu_zz);
  1023. fChain->SetBranchAddress("glu_zx", &glu_zx, &b_glu_zx);
  1024. fChain->SetBranchAddress("glu_radL", &glu_radL, &b_glu_radL);
  1025. fChain->SetBranchAddress("glu_bbxi", &glu_bbxi, &b_glu_bbxi);
  1026. fChain->SetBranchAddress("inv_isBarrel", &inv_isBarrel, &b_inv_isBarrel);
  1027. fChain->SetBranchAddress("inv_det", &inv_det, &b_inv_det);
  1028. fChain->SetBranchAddress("inv_lay", &inv_lay, &b_inv_lay);
  1029. fChain->SetBranchAddress("inv_detId", &inv_detId, &b_inv_detId);
  1030. fChain->SetBranchAddress("inv_type", &inv_type, &b_inv_type);
  1031. fChain->SetBranchAddress("simhit_det", &simhit_det, &b_simhit_det);
  1032. fChain->SetBranchAddress("simhit_lay", &simhit_lay, &b_simhit_lay);
  1033. fChain->SetBranchAddress("simhit_detId", &simhit_detId, &b_simhit_detId);
  1034. fChain->SetBranchAddress("simhit_x", &simhit_x, &b_simhit_x);
  1035. fChain->SetBranchAddress("simhit_y", &simhit_y, &b_simhit_y);
  1036. fChain->SetBranchAddress("simhit_z", &simhit_z, &b_simhit_z);
  1037. fChain->SetBranchAddress("simhit_particle", &simhit_particle, &b_simhit_particle);
  1038. fChain->SetBranchAddress("simhit_process", &simhit_process, &b_simhit_process);
  1039. fChain->SetBranchAddress("simhit_eloss", &simhit_eloss, &b_simhit_eloss);
  1040. fChain->SetBranchAddress("simhit_tof", &simhit_tof, &b_simhit_tof);
  1041. fChain->SetBranchAddress("simhit_simTrkIdx", &simhit_simTrkIdx, &b_simhit_simTrkIdx);
  1042. fChain->SetBranchAddress("simhit_hitIdx", &simhit_hitIdx, &b_simhit_hitIdx);
  1043. fChain->SetBranchAddress("simhit_hitType", &simhit_hitType, &b_simhit_hitType);
  1044. fChain->SetBranchAddress("bsp_x", &bsp_x, &b_bsp_x);
  1045. fChain->SetBranchAddress("bsp_y", &bsp_y, &b_bsp_y);
  1046. fChain->SetBranchAddress("bsp_z", &bsp_z, &b_bsp_z);
  1047. fChain->SetBranchAddress("bsp_sigmax", &bsp_sigmax, &b_bsp_sigmax);
  1048. fChain->SetBranchAddress("bsp_sigmay", &bsp_sigmay, &b_bsp_sigmay);
  1049. fChain->SetBranchAddress("bsp_sigmaz", &bsp_sigmaz, &b_bsp_sigmaz);
  1050. fChain->SetBranchAddress("see_fitok", &see_fitok, &b_see_fitok);
  1051. fChain->SetBranchAddress("see_px", &see_px, &b_see_px);
  1052. fChain->SetBranchAddress("see_py", &see_py, &b_see_py);
  1053. fChain->SetBranchAddress("see_pz", &see_pz, &b_see_pz);
  1054. fChain->SetBranchAddress("see_pt", &see_pt, &b_see_pt);
  1055. fChain->SetBranchAddress("see_eta", &see_eta, &b_see_eta);
  1056. fChain->SetBranchAddress("see_phi", &see_phi, &b_see_phi);
  1057. fChain->SetBranchAddress("see_dxy", &see_dxy, &b_see_dxy);
  1058. fChain->SetBranchAddress("see_dz", &see_dz, &b_see_dz);
  1059. fChain->SetBranchAddress("see_ptErr", &see_ptErr, &b_see_ptErr);
  1060. fChain->SetBranchAddress("see_etaErr", &see_etaErr, &b_see_etaErr);
  1061. fChain->SetBranchAddress("see_phiErr", &see_phiErr, &b_see_phiErr);
  1062. fChain->SetBranchAddress("see_dxyErr", &see_dxyErr, &b_see_dxyErr);
  1063. fChain->SetBranchAddress("see_dzErr", &see_dzErr, &b_see_dzErr);
  1064. fChain->SetBranchAddress("see_chi2", &see_chi2, &b_see_chi2);
  1065. fChain->SetBranchAddress("see_q", &see_q, &b_see_q);
  1066. fChain->SetBranchAddress("see_nValid", &see_nValid, &b_see_nValid);
  1067. fChain->SetBranchAddress("see_nPixel", &see_nPixel, &b_see_nPixel);
  1068. fChain->SetBranchAddress("see_nGlued", &see_nGlued, &b_see_nGlued);
  1069. fChain->SetBranchAddress("see_nStrip", &see_nStrip, &b_see_nStrip);
  1070. fChain->SetBranchAddress("see_algo", &see_algo, &b_see_algo);
  1071. fChain->SetBranchAddress("see_algoOriginal", &see_algoOriginal, &b_see_algoOriginal);
  1072. fChain->SetBranchAddress("see_trkIdx", &see_trkIdx, &b_see_trkIdx);
  1073. fChain->SetBranchAddress("see_shareFrac", &see_shareFrac, &b_see_shareFrac);
  1074. fChain->SetBranchAddress("see_simTrkIdx", &see_simTrkIdx, &b_see_simTrkIdx);
  1075. fChain->SetBranchAddress("see_hitIdx", &see_hitIdx, &b_see_hitIdx);
  1076. fChain->SetBranchAddress("see_hitType", &see_hitType, &b_see_hitType);
  1077. fChain->SetBranchAddress("see_offset", &see_offset, &b_see_offset);
  1078. fChain->SetBranchAddress("see_hitsMask", &see_hitsMask, &b_see_hitsMask);
  1079. fChain->SetBranchAddress("see_subDet2", &see_subDet2, &b_see_subDet2);
  1080. fChain->SetBranchAddress("see_dRz2", &see_dRz2, &b_see_dRz2);
  1081. fChain->SetBranchAddress("see_dPhi2", &see_dPhi2, &b_see_dPhi2);
  1082. fChain->SetBranchAddress("see_dRz2Pos", &see_dRz2Pos, &b_see_dRz2Pos);
  1083. fChain->SetBranchAddress("see_dPhi2Pos", &see_dPhi2Pos, &b_see_dPhi2Pos);
  1084. fChain->SetBranchAddress("see_subDet1", &see_subDet1, &b_see_subDet1);
  1085. fChain->SetBranchAddress("see_dRz1", &see_dRz1, &b_see_dRz1);
  1086. fChain->SetBranchAddress("see_dPhi1", &see_dPhi1, &b_see_dPhi1);
  1087. fChain->SetBranchAddress("see_dRz1Pos", &see_dRz1Pos, &b_see_dRz1Pos);
  1088. fChain->SetBranchAddress("see_dPhi1Pos", &see_dPhi1Pos, &b_see_dPhi1Pos);
  1089. fChain->SetBranchAddress("see_hoe1", &see_hoe1, &b_see_hoe1);
  1090. fChain->SetBranchAddress("see_hoe2", &see_hoe2, &b_see_hoe2);
  1091. fChain->SetBranchAddress("see_superClusterEnergy", &see_superClusterEnergy, &b_see_superClusterEnergy);
  1092. fChain->SetBranchAddress("see_superClusterEta", &see_superClusterEta, &b_see_superClusterEta);
  1093. fChain->SetBranchAddress("see_superClusterPhi", &see_superClusterPhi, &b_see_superClusterPhi);
  1094. fChain->SetBranchAddress("see_superClusterEt", &see_superClusterEt, &b_see_superClusterEt);
  1095. fChain->SetBranchAddress("see_superClusterIdx", &see_superClusterIdx, &b_see_superClusterIdx);
  1096. fChain->SetBranchAddress("see_ecalDriven", &see_ecalDriven, &b_see_ecalDriven);
  1097. fChain->SetBranchAddress("see_trkDriven", &see_trkDriven, &b_see_trkDriven);
  1098. fChain->SetBranchAddress("vtx_x", &vtx_x, &b_vtx_x);
  1099. fChain->SetBranchAddress("vtx_y", &vtx_y, &b_vtx_y);
  1100. fChain->SetBranchAddress("vtx_z", &vtx_z, &b_vtx_z);
  1101. fChain->SetBranchAddress("vtx_xErr", &vtx_xErr, &b_vtx_xErr);
  1102. fChain->SetBranchAddress("vtx_yErr", &vtx_yErr, &b_vtx_yErr);
  1103. fChain->SetBranchAddress("vtx_zErr", &vtx_zErr, &b_vtx_zErr);
  1104. fChain->SetBranchAddress("vtx_ndof", &vtx_ndof, &b_vtx_ndof);
  1105. fChain->SetBranchAddress("vtx_chi2", &vtx_chi2, &b_vtx_chi2);
  1106. fChain->SetBranchAddress("vtx_fake", &vtx_fake, &b_vtx_fake);
  1107. fChain->SetBranchAddress("vtx_valid", &vtx_valid, &b_vtx_valid);
  1108. fChain->SetBranchAddress("vtx_trkIdx", &vtx_trkIdx, &b_vtx_trkIdx);
  1109. fChain->SetBranchAddress("gen_px", &gen_px, &b_gen_px);
  1110. fChain->SetBranchAddress("gen_py", &gen_py, &b_gen_py);
  1111. fChain->SetBranchAddress("gen_pz", &gen_pz, &b_gen_pz);
  1112. fChain->SetBranchAddress("gen_charge", &gen_charge, &b_gen_charge);
  1113. fChain->SetBranchAddress("gen_pdgId", &gen_pdgId, &b_gen_pdgId);
  1114. fChain->SetBranchAddress("gen_vx", &gen_vx, &b_gen_vx);
  1115. fChain->SetBranchAddress("gen_vy", &gen_vy, &b_gen_vy);
  1116. fChain->SetBranchAddress("gen_vz", &gen_vz, &b_gen_vz);
  1117. fChain->SetBranchAddress("gen_status", &gen_status, &b_gen_status);
  1118. fChain->SetBranchAddress("gen_mother", &gen_mother, &b_gen_mother);
  1119. fChain->SetBranchAddress("gen_isTauDecayProduct", &gen_isTauDecayProduct, &b_gen_isTauDecayProduct);
  1120. fChain->SetBranchAddress("gen_isDirectHadronDecayProduct", &gen_isDirectHadronDecayProduct, &b_gen_isDirectHadronDecayProduct);
  1121. fChain->SetBranchAddress("gen_isPrompt", &gen_isPrompt, &b_gen_isPrompt);
  1122. fChain->SetBranchAddress("simvtx_event", &simvtx_event, &b_simvtx_event);
  1123. fChain->SetBranchAddress("simvtx_bunchCrossing", &simvtx_bunchCrossing, &b_simvtx_bunchCrossing);
  1124. fChain->SetBranchAddress("simvtx_processType", &simvtx_processType, &b_simvtx_processType);
  1125. fChain->SetBranchAddress("simvtx_x", &simvtx_x, &b_simvtx_x);
  1126. fChain->SetBranchAddress("simvtx_y", &simvtx_y, &b_simvtx_y);
  1127. fChain->SetBranchAddress("simvtx_z", &simvtx_z, &b_simvtx_z);
  1128. fChain->SetBranchAddress("simvtx_sourceSimIdx", &simvtx_sourceSimIdx, &b_simvtx_sourceSimIdx);
  1129. fChain->SetBranchAddress("simvtx_daughterSimIdx", &simvtx_daughterSimIdx, &b_simvtx_daughterSimIdx);
  1130. fChain->SetBranchAddress("simpv_idx", &simpv_idx, &b_simpv_idx);
  1131. fChain->SetBranchAddress("scl_e", &scl_e, &b_scl_e);
  1132. fChain->SetBranchAddress("scl_px", &scl_px, &b_scl_px);
  1133. fChain->SetBranchAddress("scl_py", &scl_py, &b_scl_py);
  1134. fChain->SetBranchAddress("scl_pz", &scl_pz, &b_scl_pz);
  1135. fChain->SetBranchAddress("scl_x", &scl_x, &b_scl_x);
  1136. fChain->SetBranchAddress("scl_y", &scl_y, &b_scl_y);
  1137. fChain->SetBranchAddress("scl_z", &scl_z, &b_scl_z);
  1138. fChain->SetBranchAddress("scl_charge", &scl_charge, &b_scl_charge);
  1139. fChain->SetBranchAddress("scl_lay1", &scl_lay1, &b_scl_lay1);
  1140. fChain->SetBranchAddress("scl_lay2", &scl_lay2, &b_scl_lay2);
  1141. fChain->SetBranchAddress("scl_ladder_blade1", &scl_ladder_blade1, &b_scl_ladder_blade1);
  1142. fChain->SetBranchAddress("scl_ladder_blade2", &scl_ladder_blade2, &b_scl_ladder_blade2);
  1143. fChain->SetBranchAddress("scl_subDet1", &scl_subDet1, &b_scl_subDet1);
  1144. fChain->SetBranchAddress("scl_subDet2", &scl_subDet2, &b_scl_subDet2);
  1145. fChain->SetBranchAddress("scl_dRz1", &scl_dRz1, &b_scl_dRz1);
  1146. fChain->SetBranchAddress("scl_dPhi1", &scl_dPhi1, &b_scl_dPhi1);
  1147. fChain->SetBranchAddress("scl_dRz2", &scl_dRz2, &b_scl_dRz2);
  1148. fChain->SetBranchAddress("scl_dPhi2", &scl_dPhi2, &b_scl_dPhi2);
  1149. fChain->SetBranchAddress("scl_seedType", &scl_seedType, &b_scl_seedType);
  1150. fChain->SetBranchAddress("scl_seedHitIdx1", &scl_seedHitIdx1, &b_scl_seedHitIdx1);
  1151. fChain->SetBranchAddress("scl_seedHitIdx2", &scl_seedHitIdx2, &b_scl_seedHitIdx2);
  1152. Notify();
  1153. }
  1154. Bool_t TrackingNtuple::Notify()
  1155. {
  1156. // The Notify() function is called when a new file is opened. This
  1157. // can be either for a new TTree in a TChain or when when a new TTree
  1158. // is started when using PROOF. It is normally not necessary to make changes
  1159. // to the generated code, but the routine can be extended by the
  1160. // user if needed. The return value is currently not used.
  1161. return kTRUE;
  1162. }
  1163. void TrackingNtuple::Show(Long64_t entry)
  1164. {
  1165. // Print contents of entry.
  1166. // If entry is not specified, print current entry
  1167. if (!fChain) return;
  1168. fChain->Show(entry);
  1169. }
  1170. Int_t TrackingNtuple::Cut(Long64_t entry)
  1171. {
  1172. // This function may be called from Loop.
  1173. // returns 1 if entry is accepted.
  1174. // returns -1 otherwise.
  1175. return 1;
  1176. }
  1177. #endif // TrackingNtuple_h