ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/PileupEnergyDensity.h
Revision: 1.2
Committed: Wed Mar 23 19:03:46 2011 UTC (14 years, 1 month ago) by mzanetti
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1
Changes since 1.1: +7 -3 lines
Log Message:
two values for rho stored

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: PileupEnergyDensity.h,v 1.1 2011/03/01 14:23:05 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) {}
22 PileupEnergyDensity(Double_t r) : fRho(r), fRhoHighEta(0) {}
23 PileupEnergyDensity(Double_t r, Double_t rHighEta) : fRho(r), fRhoHighEta(rHighEta) {}
24
25 Double_t Rho() const { return fRho; }
26 Double_t RhoHighEta() const { return fRhoHighEta; }
27
28 virtual PileupEnergyDensity *MakeCopy() const { return new PileupEnergyDensity(*this); }
29
30 void SetRho(Double_t r) { fRho = r; }
31 void SetRhoHighEta(Double_t r) { fRhoHighEta = r; }
32
33 protected:
34 Double32_t fRho; //rho from fastjet algo
35 Double32_t fRhoHighEta; //rho from fastjet algo
36
37 ClassDef(PileupEnergyDensity, 1) // Pileup Energy Density class
38 };
39 }
40 #endif