Fork me on GitHub

Changeset 278 in svn for trunk/Utilities/ExRootAnalysis


Ignore:
Timestamp:
Feb 20, 2009, 8:32:58 PM (16 years ago)
Author:
severine ovyn
Message:

TRootParticle TrootTracks

Location:
trunk/Utilities/ExRootAnalysis
Files:
2 edited

Legend:

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

    r277 r278  
    289289//---------------------------------------------------------------------------
    290290
    291 class TRootTracks : public TSortableObject {
     291class TRootTracks : public TRootParticle {
    292292 public:
    293293    TRootTracks(); // needed for storage in ExRootAnalysis
     
    297297    void Set(const float inEta, const float inPhi, const float outEta, const float outPhi, const float pt);
    298298    const TLorentzVector GetFourVector() const;
    299     const float getEta() const {return Eta;}
    300     const float getPhi() const {return Phi;}
    301     const float getEtaOuter() const {return EtaOuter;}
    302     const float getPhiOuter() const {return PhiOuter;}
     299   // const float getEta() const {return Eta;}
     300   // const float getPhi() const {return Phi;}
     301   // const float getEtaOuter() const {return EtaOuter;}
     302   // const float getPhiOuter() const {return PhiOuter;}
    303303
    304304    static TCompare *fgCompare; //!
    305     const TCompare *GetCompare() const { return fgCompare; }
    306 
    307     float Eta, Phi; // (eta,phi) at the beginning of the track
     305    //const TCompare *GetCompare() const { return fgCompare; }
     306
     307//    float Eta, Phi; // (eta,phi) at the beginning of the track
    308308    float EtaOuter, PhiOuter; // (eta,phi) at the end of the track
    309     float PT, E, Px, Py, Pz;  // transverse momentum
     309//    float PT, E, Px, Py, Pz;  // transverse momentum
    310310 ClassDef(TRootTracks, 1)
    311311};
  • trunk/Utilities/ExRootAnalysis/src/BlockClasses.cc

    r270 r278  
    131131
    132132TRootTracks::TRootTracks() :
    133         Eta(UNDEFINED), Phi(UNDEFINED), EtaOuter(UNDEFINED), PhiOuter(UNDEFINED),
    134         PT(UNDEFINED), E(UNDEFINED), Px(UNDEFINED), Py(UNDEFINED), Pz(UNDEFINED) {}
     133        TRootParticle(),
     134        EtaOuter(UNDEFINED), PhiOuter(UNDEFINED) {}
     135/*        Eta = UNDEFINED;
     136        Phi = UNDEFINED;
     137        PT = UNDEFINED;
     138        E = UNDEFINED;
     139        Px = UNDEFINED;
     140        Py = UNDEFINED;
     141        Pz = UNDEFINED;
     142
     143}*/
    135144
    136145TRootTracks::TRootTracks(const float inEta, const float inPhi, const float outEta, const float outPhi, const float pt) :
    137         Eta(inEta), Phi(inPhi), EtaOuter(outEta), PhiOuter(outPhi),
    138         PT(pt) {
     146        EtaOuter(outEta), PhiOuter(outPhi) {
     147        Eta = inEta;
     148        Phi = inPhi;
     149        PT = pt;
    139150        TLorentzVector p; p.SetPtEtaPhiE(PT,Eta,Phi,PT*cosh(Eta));
    140151        Px = p.Px(); Py = p.Py(); Pz = p.Pz();  E=p.E();
    141152}
    142153TRootTracks::TRootTracks(const TRootTracks& track) :
    143         Eta(track.Eta), Phi(track.Phi),
    144         EtaOuter(track.EtaOuter), PhiOuter(track.PhiOuter),
    145         PT(track.PT), E(track.E), Px(track.Px), Py(track.Py), Pz(track.Pz) {}
     154        EtaOuter(track.EtaOuter), PhiOuter(track.PhiOuter)
     155        {
     156          Eta = track.Eta;
     157          Phi = track.Phi;
     158          PT = track.PT;
     159          E = track.E;
     160          Px = track.Px;
     161          Py = track.Py;
     162          Pz = track.Pz;
     163        }
    146164
    147165TRootTracks& TRootTracks::operator=(const TRootTracks& track) {
Note: See TracChangeset for help on using the changeset viewer.