Fork me on GitHub

Changeset 370 in svn for trunk/Utilities


Ignore:
Timestamp:
May 10, 2009, 8:16:52 PM (16 years ago)
Author:
Xavier Rouby
Message:

TRootZdcHits ok ; new class TRootForwardTaggerHits

Location:
trunk/Utilities/ExRootAnalysis
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/ExRootAnalysis/interface/BlockClasses.h

    r350 r370  
    343343
    344344//---------------------------------------------------------------------------
    345 class TRootZdcHits: public TRootParticle
    346 {
    347 public:
    348   TRootZdcHits() {};
     345class TRootZdcHits: public TSortableObject
     346{
     347public:
     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;
    349355  float T; // time of flight [s]
    350356  int side; // -1 or +1
    351357  static TCompare *fgCompare; //!
    352 
    353   ClassDef(TRootZdcHits, 1)
     358  bool hadronic_hit; // true if neutron, false if photon
     359
     360  ClassDef(TRootZdcHits, 2)
    354361};
    355362
     
    434441public:
    435442  TRootRomanPotHits() {};
    436   float T; // time of flight to the detector [s]
     443  //  float T; // time of flight to the detector [s]
    437444  float S; // distance to the IP [m]
    438445  float E; // reconstructed energy [GeV]
     
    453460};
    454461
     462//---------------------------------------------------------------------------
     463
     464class TRootForwardTaggerHits : public TRootRomanPotHits
     465{
     466public:
     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
    455477#endif // BLOCKCLASSES_H
    456478
  • trunk/Utilities/ExRootAnalysis/src/BlockClasses.cc

    r351 r370  
    5050TCompare *TRootLHEFParticle::fgCompare = 0;
    5151TCompare *TRootRomanPotHits::fgCompare =0;
     52TCompare *TRootForwardTaggerHits::fgCompare =0;
    5253TCompare *TRootTrigger::fgCompare =0;
    5354
     
    196197        E   =cal.getE();   ET   =cal.getET();
    197198}
     199
     200TRootZdcHits::TRootZdcHits(const float e, const float t, const int side, const bool had) : E(e), T(t), side(side), hadronic_hit(had) {}
     201TRootZdcHits::TRootZdcHits(const TRootZdcHits& zdc) : E(zdc.E), T(zdc.T), side(zdc.side), hadronic_hit(zdc.hadronic_hit) {}
     202TRootZdcHits& 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  
    5454#pragma link C++ class TRootZdcHits;
    5555#pragma link C++ class TRootRomanPotHits;
     56#pragma link C++ class TRootForwardTaggerHits;
    5657#pragma link C++ class TRootTrigger;
    5758
Note: See TracChangeset for help on using the changeset viewer.