ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/PileupEnergyDensity.h
Revision: 1.1
Committed: Tue Mar 1 14:23:05 2011 UTC (14 years, 2 months ago) by mzanetti
Content type: text/plain
Branch: MAIN
Log Message:
class handling the fastjet computed pu energy density. First version

File Contents

# User Rev Content
1 mzanetti 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: PileupEnergyDensity.h,v 1.5 2009/11/30 13:42:40 bendavid 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) {}
22     PileupEnergyDensity(Double_t r) : fRho(r) {}
23    
24     Double_t Rho() const { return fRho; }
25    
26     virtual PileupEnergyDensity *MakeCopy() const { return new PileupEnergyDensity(*this); }
27    
28     void SetRho(Double_t r) { fRho = r; }
29    
30     protected:
31     Double32_t fRho; //rho from fastjet algo
32    
33     ClassDef(PileupEnergyDensity, 1) // Pileup Energy Density class
34     };
35     }
36     #endif