Changeset 370 in svn
- Timestamp:
- May 10, 2009, 8:16:52 PM (16 years ago)
- Location:
- trunk/Utilities/ExRootAnalysis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/ExRootAnalysis/interface/BlockClasses.h
r350 r370 343 343 344 344 //--------------------------------------------------------------------------- 345 class TRootZdcHits: public TRootParticle 346 { 347 public: 348 TRootZdcHits() {}; 345 class TRootZdcHits: public TSortableObject 346 { 347 public: 348 349 TRootZdcHits() {}; // do not put anything for the default constructor-- ExRootAnalysis constrain!!! 350 TRootZdcHits(const float e, const float t, const int side, const bool had); 351 TRootZdcHits(const TRootZdcHits& zdc); 352 TRootZdcHits& operator=(const TRootZdcHits& zdc); 353 const TCompare *GetCompare() const { return fgCompare; } 354 float E; 349 355 float T; // time of flight [s] 350 356 int side; // -1 or +1 351 357 static TCompare *fgCompare; //! 352 353 ClassDef(TRootZdcHits, 1) 358 bool hadronic_hit; // true if neutron, false if photon 359 360 ClassDef(TRootZdcHits, 2) 354 361 }; 355 362 … … 434 441 public: 435 442 TRootRomanPotHits() {}; 436 float T; // time of flight to the detector [s]443 // float T; // time of flight to the detector [s] 437 444 float S; // distance to the IP [m] 438 445 float E; // reconstructed energy [GeV] … … 453 460 }; 454 461 462 //--------------------------------------------------------------------------- 463 464 class TRootForwardTaggerHits : public TRootRomanPotHits 465 { 466 public: 467 TRootForwardTaggerHits() {}; 468 float T; // time of flight to the detector [s] 469 470 static TCompare *fgCompare; //! 471 const TCompare *GetCompare() const { return fgCompare; } 472 473 ClassDef(TRootForwardTaggerHits, 1) 474 }; 475 476 455 477 #endif // BLOCKCLASSES_H 456 478 -
trunk/Utilities/ExRootAnalysis/src/BlockClasses.cc
r351 r370 50 50 TCompare *TRootLHEFParticle::fgCompare = 0; 51 51 TCompare *TRootRomanPotHits::fgCompare =0; 52 TCompare *TRootForwardTaggerHits::fgCompare =0; 52 53 TCompare *TRootTrigger::fgCompare =0; 53 54 … … 196 197 E =cal.getE(); ET =cal.getET(); 197 198 } 199 200 TRootZdcHits::TRootZdcHits(const float e, const float t, const int side, const bool had) : E(e), T(t), side(side), hadronic_hit(had) {} 201 TRootZdcHits::TRootZdcHits(const TRootZdcHits& zdc) : E(zdc.E), T(zdc.T), side(zdc.side), hadronic_hit(zdc.hadronic_hit) {} 202 TRootZdcHits& TRootZdcHits::operator=(const TRootZdcHits& zdc) { 203 if(this==&zdc) return *this; 204 E = zdc.E; T = zdc.T; side = zdc.side; hadronic_hit = zdc.hadronic_hit; 205 return *this; 206 } 207 -
trunk/Utilities/ExRootAnalysis/src/BlockClassesLinkDef.h
r351 r370 54 54 #pragma link C++ class TRootZdcHits; 55 55 #pragma link C++ class TRootRomanPotHits; 56 #pragma link C++ class TRootForwardTaggerHits; 56 57 #pragma link C++ class TRootTrigger; 57 58
Note:
See TracChangeset
for help on using the changeset viewer.