Changeset 267 in svn for trunk/Utilities/ExRootAnalysis
- Timestamp:
- Feb 13, 2009, 8:38:04 PM (16 years ago)
- Location:
- trunk/Utilities/ExRootAnalysis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/ExRootAnalysis/interface/BlockClasses.h
r264 r267 13 13 * present in the data members of the Block TRoot class. 14 14 * 15 * $Date: 2009-02-1 1 09:19:14$16 * $Revision: 1.1 2$15 * $Date: 2009-02-13 19:38:03 $ 16 * $Revision: 1.13 $ 17 17 * 18 18 * … … 312 312 */ 313 313 314 //class TRootCalo: public TSortableObject { 315 class TRootCalo: public TRootParticle { 314 class TRootCalo: public TSortableObject 315 { 316 //class TRootCalo: public TRootParticle { 316 317 public: 318 float Eta; 319 float Phi; 320 float E; 317 321 TRootCalo() ; 318 322 TRootCalo(const TRootCalo& cal); … … 320 324 void set(const D_CaloTower& cal); 321 325 static TCompare *fgCompare; //! 322 //const TCompare *GetCompare() const { return fgCompare; }326 const TCompare *GetCompare() const { return fgCompare; } 323 327 const float getET() const {return ET;} 324 328 … … 345 349 //--------------------------------------------------------------------------- 346 350 347 class TRootJet: public TRootParticle 351 class TRootTauJet: public TSortableObject 352 { 353 public: 354 TRootTauJet() {}; 355 356 float E; // particle energy in GeV 357 float Px; // particle momentum vector (x component) in GeV 358 float Py; // particle momentum vector (y component) in GeV 359 float Pz; // particle momentum vector (z component) in GeV 360 361 float Eta; // particle pseudorapidity 362 float Phi; // particle azimuthal angle in rad 363 364 void Set(const TLorentzVector& momentum);// { return TRootParticle::Set(momentum); } 365 366 static TCompare *fgCompare; //! 367 const TCompare *GetCompare() const { return fgCompare; } 368 369 float PT; // particle transverse momentum in GeV 370 371 ClassDef(TRootTauJet, 1) 372 }; 373 374 //--------------------------------------------------------------------------- 375 376 class TRootJet: public TRootTauJet 348 377 { 349 378 public: 350 379 TRootJet() {}; 380 381 static TCompare *fgCompare; //! 382 351 383 bool Btag; 352 384 353 static TCompare *fgCompare; //!354 355 385 ClassDef(TRootJet, 1) 356 386 }; 357 387 358 //--------------------------------------------------------------------------- 359 360 class TRootTauJet: public TRootParticle 361 { 362 public: 363 TRootTauJet() {}; 364 static TCompare *fgCompare; //! 365 366 ClassDef(TRootTauJet, 1) 367 }; 388 //------------------------------------------------------------------------------ 368 389 369 390 class TRootTrigger: public TSortableObject -
trunk/Utilities/ExRootAnalysis/src/BlockClasses.cc
r264 r267 11 11 * to preserve mother-dautherlinks between particles. 12 12 * 13 * $Date: 2009-02-1 1 09:19:14$14 * $Revision: 1. 8$13 * $Date: 2009-02-13 19:38:03 $ 14 * $Revision: 1.9 $ 15 15 * 16 16 * … … 25 25 26 26 TCompare *TRootGenParticle::fgCompare = 0; 27 TCompare *TRootJet::fgCompare = TComparePT<TRootJet>::Instance();28 27 TCompare *TRootElectron::fgCompare = TComparePT<TRootElectron>::Instance(); 29 28 TCompare *TRootMuon::fgCompare = TComparePT<TRootMuon>::Instance(); 30 29 TCompare *TRootPhoton::fgCompare = TComparePT<TRootPhoton>::Instance(); 31 30 TCompare *TRootTauJet::fgCompare = TComparePT<TRootTauJet>::Instance(); 31 TCompare *TRootJet::fgCompare = TComparePT<TRootJet>::Instance(); 32 32 TCompare *TRootTracks::fgCompare = TComparePT<TRootTracks>::Instance(); 33 33 TCompare *TRootETmis::fgCompare = 0; … … 50 50 Eta = momentum.Eta(); 51 51 Phi = momentum.Phi(); 52 } 53 54 void TRootTauJet::Set(const TLorentzVector& momentum) { 55 56 E = momentum.E(); 57 Px = momentum.Px(); 58 Py = momentum.Py(); 59 Pz = momentum.Pz(); 60 PT = momentum.Pt(); 61 Eta = momentum.Eta(); 62 Phi = momentum.Phi(); 63 52 64 } 53 65 … … 150 162 E_em=cal.getEem(); E_had=cal.getEhad(); 151 163 E =cal.getE(); ET =cal.getET(); 152 EtaCalo = cal.getEta();153 PhiCalo = cal.getPhi();164 //EtaCalo = cal.getEta(); 165 //PhiCalo = cal.getPhi(); 154 166 } 155 167 -
trunk/Utilities/ExRootAnalysis/src/BlockClassesLinkDef.h
r264 r267 4 4 * Lists classes to be included in cint dicitonary 5 5 * 6 * $Date: 2009-02-1 1 09:19:14$7 * $Revision: 1. 3$6 * $Date: 2009-02-13 19:38:03 $ 7 * $Revision: 1.4 $ 8 8 * 9 9 * … … 24 24 #pragma link C++ class TRootSelectorInfo; 25 25 #pragma link C++ class TRootGenParticle; 26 #pragma link C++ class TRootJet;27 26 #pragma link C++ class TRootElectron; 28 27 #pragma link C++ class TRootMuon; 29 28 #pragma link C++ class TRootPhoton; 30 29 #pragma link C++ class TRootTauJet; 30 #pragma link C++ class TRootJet; 31 31 #pragma link C++ class TRootTracks; 32 32 #pragma link C++ class TRootETmis;
Note:
See TracChangeset
for help on using the changeset viewer.