ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/PileupEnergyDensity.h
(Generate patch)

Comparing UserCode/MitAna/DataTree/interface/PileupEnergyDensity.h (file contents):
Revision 1.3 by bendavid, Wed Jun 15 20:03:18 2011 UTC vs.
Revision 1.6 by paus, Sat May 12 13:33:54 2012 UTC

# Line 3 | Line 3
3   //
4   // PileupEnergyDensity
5   //
6 < // Class to store the pu energy density as computed by fastjet algorithm
6 > // Class to store the pu energy density as computed by fastjet algorithm
7   //
8 < // Authors: M. Zanetti
8 > // Authors: C.Paus, A.Levin, M.Zanetti
9   //--------------------------------------------------------------------------------------------------
10  
11   #ifndef MITANA_DATATREE_PILEUPENERGYDENSITY_H
12   #define MITANA_DATATREE_PILEUPENERGYDENSITY_H
13 <
13 >
14   #include "MitAna/DataTree/interface/DataBase.h"
15  
16 < namespace mithep
16 > namespace mithep
17   {
18    class PileupEnergyDensity : public DataBase
19    {
20    public:
21 <    PileupEnergyDensity() : fRho(0), fRhoHighEta(0), fRhoRandom(0), fRhoRandomLowEta(0) {}
21 >    PileupEnergyDensity() :
22 >      fRho                             (0),
23 >      fRhoHighEta                      (0),
24 >      fRhoRandom                       (0),
25 >      fRhoRandomLowEta                 (0),
26 >      fRhoFixedGridAll                 (0),
27 >      fRhoFixedGridFastjetAll          (0),
28 >      fRhoKt6CaloJets                  (0),
29 >      fRhoKt6CaloJetsCentral           (0),
30 >      fRhoKt6PFJets                    (0),
31 >      fRhoKt6PFJetsCentralChargedPileUp(0),
32 >      fRhoKt6PFJetsCentralNeutral      (0),
33 >      fRhoKt6PFJetsCentralNeutralTight (0)
34 >        {}
35 >
36 >    Double_t  RhoDefault()                       const { return fRhoRandom; }
37 >
38 >    Double_t  Rho()                              const { return fRho; }
39 >    Double_t  RhoHighEta()                       const { return fRho; }
40 >    Double_t  RhoLowEta()                        const { return fRhoHighEta; }
41 >    Double_t  RhoRandom()                        const { return fRhoRandom; }
42 >    Double_t  RhoRandomLowEta()                  const { return fRhoRandomLowEta; }
43 >    Double_t  RhoFixedGridAll()                  const { return fRhoFixedGridAll; }
44 >    Double_t  RhoFixedGridFastjetAll()           const { return fRhoFixedGridFastjetAll; }
45 >    Double_t  RhoKt6CaloJets()                   const { return fRhoKt6CaloJets; }
46 >    Double_t  RhoKt6CaloJetsCentral()            const { return fRhoKt6CaloJetsCentral; }
47 >    Double_t  RhoKt6PFJets()                     const { return fRhoKt6PFJets; }
48 >    Double_t  RhoKt6PFJetsCentralChargedPileUp() const { return fRhoKt6PFJetsCentralChargedPileUp; }
49 >    Double_t  RhoKt6PFJetsCentralNeutral()       const { return fRhoKt6PFJetsCentralNeutral; }
50 >    Double_t  RhoKt6PFJetsCentralNeutralTight()  const { return fRhoKt6PFJetsCentralNeutralTight; }
51      
52 <    Double_t  Rho()  const { return fRho; }
24 <    Double_t  RhoHighEta()  const { return fRho; }
25 <    Double_t  RhoLowEta()  const { return fRhoHighEta; }
26 <    Double_t  RhoRandom() const { return fRhoRandom; }
27 <    Double_t  RhoRandomLowEta() const { return fRhoRandomLowEta; }
52 >    virtual PileupEnergyDensity *MakeCopy()      const { return new PileupEnergyDensity(*this);   }
53      
54 <    virtual PileupEnergyDensity  *MakeCopy()                 const { return new PileupEnergyDensity(*this);   }
54 >    void      SetRho                             (Double_t r) { fRho = r; }
55 >    void      SetRhoLowEta                       (Double_t r) { fRhoHighEta = r; }
56 >    void      SetRhoRandom                       (Double_t r) { fRhoRandom = r; }
57 >    void      SetRhoRandomLowEta                 (Double_t r) { fRhoRandomLowEta = r; }
58 >    void      SetRhoFixedGridAll                 (Double_t r) { fRhoFixedGridAll = r; }
59 >    void      SetRhoFixedGridFastjetAll          (Double_t r) { fRhoFixedGridFastjetAll = r; }
60 >    void      SetRhoKt6CaloJets                  (Double_t r) { fRhoKt6CaloJets = r; }
61 >    void      SetRhoKt6CaloJetsCentral           (Double_t r) { fRhoKt6CaloJetsCentral = r; }
62 >    void      SetRhoKt6PFJets                    (Double_t r) { fRhoKt6PFJets = r; }
63 >    void      SetRhoKt6PFJetsCentralChargedPileUp(Double_t r) { fRhoKt6PFJetsCentralChargedPileUp = r; }
64 >    void      SetRhoKt6PFJetsCentralNeutral      (Double_t r) { fRhoKt6PFJetsCentralNeutral = r; }
65 >    void      SetRhoKt6PFJetsCentralNeutralTight (Double_t r) { fRhoKt6PFJetsCentralNeutralTight = r; }
66      
31    void      SetRho(Double_t r)   { fRho = r; }
32    void      SetRhoLowEta(Double_t r)   { fRhoHighEta = r; }
33    void      SetRhoRandom(Double_t r)   { fRhoRandom = r; }
34    void      SetRhoRandomLowEta(Double_t r)   { fRhoRandomLowEta = r; }
35
67      
68    protected:
69 <    Double32_t          fRho;      //rho from fastjet algo
70 <    Double32_t          fRhoHighEta;      //rho from fastjet algo
71 <    Double32_t          fRhoRandom;      //rho from fastjet algo
72 <    Double32_t          fRhoRandomLowEta; //rho from fastjet algo
69 >    Double32_t          fRho;                    //rho from various fastjet algos
70 >    Double32_t          fRhoHighEta;             //  ..
71 >    Double32_t          fRhoRandom;
72 >    Double32_t          fRhoRandomLowEta;
73 >    Double32_t          fRhoFixedGridAll;
74 >    Double32_t          fRhoFixedGridFastjetAll;
75 >    Double32_t          fRhoKt6CaloJets;
76 >    Double32_t          fRhoKt6CaloJetsCentral;
77 >    Double32_t          fRhoKt6PFJets;
78 >    Double32_t          fRhoKt6PFJetsCentralChargedPileUp;
79 >    Double32_t          fRhoKt6PFJetsCentralNeutral;
80 >    Double32_t          fRhoKt6PFJetsCentralNeutralTight;
81  
82 <    
83 <    ClassDef(PileupEnergyDensity, 2) // Pileup Energy Density class
45 <      };
82 >    ClassDef(PileupEnergyDensity, 3)             // Pileup Energy Density class
83 >  };
84   }
85   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines