Fork me on GitHub

Changeset 408 in svn for trunk/Utilities


Ignore:
Timestamp:
May 20, 2009, 10:47:03 AM (15 years ago)
Author:
Xavier Rouby
Message:

modifs in ZDC and RomanPot classes. New leaves in the branches

File:
1 edited

Legend:

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

    r387 r408  
    346346
    347347//---------------------------------------------------------------------------
    348 
     348/*
    349349class TRootZdcHits: public TRootParticle
    350350{
     
    358358  ClassDef(TRootZdcHits, 1)
    359359};
    360 
    361 
    362 /*class TRootZdcHits: public TSortableObject
     360*/
     361
     362// gen-level info stored for forward detectors
     363// this class is similar to TRootParticle, but for the member names
     364class TRootGenFwdParticle: public TSortableObject {
     365
     366public:
     367
     368  TRootGenFwdParticle() {};
     369  TRootGenFwdParticle(const TRootGenFwdParticle& p);
     370  TRootGenFwdParticle& operator=(const TRootGenFwdParticle& p);
     371  float genE;  // particle energy in GeV
     372  float genPx; // particle momentum vector (x component) in GeV
     373  float genPy; // particle momentum vector (y component) in GeV
     374  float genPz; // particle momentum vector (z component) in GeV
     375  float genPT; // particle transverse momentum in GeV
     376
     377  float genEta; // particle pseudorapidity
     378  float genPhi; // particle azimuthal angle in rad
     379  int   pid;
     380
     381  void Set(const TLorentzVector& momentum); // initialises the gen-level data
     382  void Set(const float px, const float py, const float pz, const float e);
     383  void SetEtaPhi(const float eta, const float phi) {genEta=eta; genPhi=phi;};
     384  void SetEtaPhiEET(const float eta, const float phi, const float e, const float et);
     385  static TCompare *fgCompare; //!
     386  const TCompare *GetCompare() const { return fgCompare; }
     387
     388  ClassDef(TRootGenFwdParticle, 1)
     389};
     390
     391
     392
     393//class TRootZdcHits: public TSortableObject
     394class TRootZdcHits: public TRootGenFwdParticle
    363395{
    364396public:
     
    368400  TRootZdcHits(const TRootZdcHits& zdc);
    369401  TRootZdcHits& operator=(const TRootZdcHits& zdc);
    370   const TCompare *GetCompare() const { return fgCompare; }
    371402  float E;
    372403  float T; // time of flight [s]
     
    377408  ClassDef(TRootZdcHits, 2)
    378409};
    379 */
     410
    380411
    381412//---------------------------------------------------------------------------
     
    455486//---------------------------------------------------------------------------
    456487
    457 class TRootRomanPotHits: public TSortableObject
     488//class TRootRomanPotHits: public TSortableObject
     489class TRootRomanPotHits: public TRootGenFwdParticle
    458490{
    459491public:
     
    473505  int side; // -1 or 1
    474506
    475   int pid;
    476 
    477   static TCompare *fgCompare; //!
    478   const TCompare *GetCompare() const { return fgCompare; }
    479 
    480   ClassDef(TRootRomanPotHits, 1)
     507  static TCompare *fgCompare; //!
     508  //const TCompare *GetCompare() const { return fgCompare; }
     509
     510  ClassDef(TRootRomanPotHits, 2)
    481511};
    482512
Note: See TracChangeset for help on using the changeset viewer.