ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/PileupEnergyDensity.h
Revision: 1.3
Committed: Wed Jun 15 20:03:18 2011 UTC (13 years, 10 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022
Changes since 1.2: +14 -7 lines
Log Message:
different and more variations of rho

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: PileupEnergyDensity.h,v 1.2 2011/03/23 19:03:46 mzanetti Exp $
3 //
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 PileupEnergyDensity() : fRho(0), fRhoHighEta(0), fRhoRandom(0), fRhoRandomLowEta(0) {}
22
23 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; }
28
29 virtual PileupEnergyDensity *MakeCopy() const { return new PileupEnergyDensity(*this); }
30
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
36
37 protected:
38 Double32_t fRho; //rho from fastjet algo
39 Double32_t fRhoHighEta; //rho from fastjet algo
40 Double32_t fRhoRandom; //rho from fastjet algo
41 Double32_t fRhoRandomLowEta; //rho from fastjet algo
42
43
44 ClassDef(PileupEnergyDensity, 2) // Pileup Energy Density class
45 };
46 }
47 #endif