ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/PileupEnergyDensity.h
Revision: 1.4
Committed: Sat Oct 8 17:53:57 2011 UTC (13 years, 7 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025
Branch point for: Mit_025c_branch
Changes since 1.3: +3 -1 lines
Log Message:
additional accessor for rho

File Contents

# User Rev Content
1 mzanetti 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.4 // $Id: PileupEnergyDensity.h,v 1.3 2011/06/15 20:03:18 bendavid Exp $
3 mzanetti 1.1 //
4     // PileupEnergyDensity
5     //
6     // Class to store the pu energy density as computed by fastjet algorithm
7     //
8     // Authors: M. Zanetti
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef MITANA_DATATREE_PILEUPENERGYDENSITY_H
12     #define MITANA_DATATREE_PILEUPENERGYDENSITY_H
13    
14     #include "MitAna/DataTree/interface/DataBase.h"
15    
16     namespace mithep
17     {
18     class PileupEnergyDensity : public DataBase
19     {
20     public:
21 bendavid 1.3 PileupEnergyDensity() : fRho(0), fRhoHighEta(0), fRhoRandom(0), fRhoRandomLowEta(0) {}
22 mzanetti 1.1
23 bendavid 1.4 Double_t RhoDefault() const { return fRhoRandom; }
24    
25 mzanetti 1.1 Double_t Rho() const { return fRho; }
26 bendavid 1.3 Double_t RhoHighEta() const { return fRho; }
27     Double_t RhoLowEta() const { return fRhoHighEta; }
28     Double_t RhoRandom() const { return fRhoRandom; }
29     Double_t RhoRandomLowEta() const { return fRhoRandomLowEta; }
30 mzanetti 1.1
31     virtual PileupEnergyDensity *MakeCopy() const { return new PileupEnergyDensity(*this); }
32    
33     void SetRho(Double_t r) { fRho = r; }
34 bendavid 1.3 void SetRhoLowEta(Double_t r) { fRhoHighEta = r; }
35     void SetRhoRandom(Double_t r) { fRhoRandom = r; }
36     void SetRhoRandomLowEta(Double_t r) { fRhoRandomLowEta = r; }
37    
38 mzanetti 1.1
39     protected:
40     Double32_t fRho; //rho from fastjet algo
41 mzanetti 1.2 Double32_t fRhoHighEta; //rho from fastjet algo
42 bendavid 1.3 Double32_t fRhoRandom; //rho from fastjet algo
43     Double32_t fRhoRandomLowEta; //rho from fastjet algo
44    
45 mzanetti 1.1
46 bendavid 1.3 ClassDef(PileupEnergyDensity, 2) // Pileup Energy Density class
47 mzanetti 1.1 };
48     }
49     #endif