Fork me on GitHub

Changeset 267 in svn for trunk/Utilities/ExRootAnalysis


Ignore:
Timestamp:
Feb 13, 2009, 8:38:04 PM (16 years ago)
Author:
severine ovyn
Message:

remove double

Location:
trunk/Utilities/ExRootAnalysis
Files:
3 edited

Legend:

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

    r264 r267  
    1313 *  present in the data members of the Block TRoot class.
    1414 *
    15  *  $Date: 2009-02-11 09:19:14 $
    16  *  $Revision: 1.12 $
     15 *  $Date: 2009-02-13 19:38:03 $
     16 *  $Revision: 1.13 $
    1717 *
    1818 * 
     
    312312*/
    313313
    314 //class TRootCalo: public TSortableObject {
    315 class TRootCalo: public TRootParticle {
     314class TRootCalo: public TSortableObject
     315{
     316//class TRootCalo: public TRootParticle {
    316317 public:
     318   float Eta;
     319   float Phi;
     320   float E;
    317321   TRootCalo() ;
    318322   TRootCalo(const TRootCalo& cal);
     
    320324   void set(const D_CaloTower&  cal);
    321325   static TCompare *fgCompare; //!
    322  //  const TCompare *GetCompare() const { return fgCompare; }
     326   const TCompare *GetCompare() const { return fgCompare; }
    323327   const float getET() const {return ET;}
    324328 
     
    345349//---------------------------------------------------------------------------
    346350
    347 class TRootJet: public TRootParticle
     351class TRootTauJet: public TSortableObject
     352{
     353public:
     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
     376class TRootJet: public TRootTauJet
    348377{
    349378public:
    350379  TRootJet() {};
     380
     381  static TCompare *fgCompare; //!
     382
    351383  bool Btag;
    352384
    353   static TCompare *fgCompare; //!
    354  
    355385  ClassDef(TRootJet, 1)
    356386};
    357387
    358 //---------------------------------------------------------------------------
    359 
    360 class TRootTauJet: public TRootParticle
    361 {
    362 public:
    363   TRootTauJet() {};
    364   static TCompare *fgCompare; //!
    365 
    366   ClassDef(TRootTauJet, 1)
    367 };
     388//------------------------------------------------------------------------------
    368389
    369390class TRootTrigger: public TSortableObject
  • trunk/Utilities/ExRootAnalysis/src/BlockClasses.cc

    r264 r267  
    1111 *  to preserve mother-dautherlinks between particles.
    1212 *
    13  *  $Date: 2009-02-11 09:19:14 $
    14  *  $Revision: 1.8 $
     13 *  $Date: 2009-02-13 19:38:03 $
     14 *  $Revision: 1.9 $
    1515 *
    1616 * 
     
    2525
    2626TCompare *TRootGenParticle::fgCompare = 0;
    27 TCompare *TRootJet::fgCompare = TComparePT<TRootJet>::Instance();
    2827TCompare *TRootElectron::fgCompare = TComparePT<TRootElectron>::Instance();
    2928TCompare *TRootMuon::fgCompare = TComparePT<TRootMuon>::Instance();
    3029TCompare *TRootPhoton::fgCompare = TComparePT<TRootPhoton>::Instance();
    3130TCompare *TRootTauJet::fgCompare = TComparePT<TRootTauJet>::Instance();
     31TCompare *TRootJet::fgCompare = TComparePT<TRootJet>::Instance();
    3232TCompare *TRootTracks::fgCompare = TComparePT<TRootTracks>::Instance();
    3333TCompare *TRootETmis::fgCompare = 0;
     
    5050        Eta = momentum.Eta();
    5151        Phi = momentum.Phi();
     52}
     53
     54void 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
    5264}
    5365
     
    150162        E_em=cal.getEem(); E_had=cal.getEhad();
    151163        E   =cal.getE();   ET   =cal.getET();
    152         EtaCalo = cal.getEta();
    153         PhiCalo = cal.getPhi();
     164        //EtaCalo = cal.getEta();
     165        //PhiCalo = cal.getPhi();
    154166}
    155167
  • trunk/Utilities/ExRootAnalysis/src/BlockClassesLinkDef.h

    r264 r267  
    44 *  Lists classes to be included in cint dicitonary
    55 *
    6  *  $Date: 2009-02-11 09:19:14 $
    7  *  $Revision: 1.3 $
     6 *  $Date: 2009-02-13 19:38:03 $
     7 *  $Revision: 1.4 $
    88 *
    99 * 
     
    2424#pragma link C++ class TRootSelectorInfo;
    2525#pragma link C++ class TRootGenParticle;
    26 #pragma link C++ class TRootJet;
    2726#pragma link C++ class TRootElectron;
    2827#pragma link C++ class TRootMuon;
    2928#pragma link C++ class TRootPhoton;
    3029#pragma link C++ class TRootTauJet;
     30#pragma link C++ class TRootJet;
    3131#pragma link C++ class TRootTracks;
    3232#pragma link C++ class TRootETmis;
Note: See TracChangeset for help on using the changeset viewer.