CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ElectronEnergyCalibratorRun2.h
Go to the documentation of this file.
1 #ifndef ElectronEnergyCalibratorRun2_h
2 #define ElectronEnergyCalibratorRun2_h
3 
4 #include <TRandom.h>
9 
10 
11 #include <vector>
12 
14  public:
15  // dummy constructor for persistence
17 
18  // further configuration will be added when we will learn how it will work
19  ElectronEnergyCalibratorRun2(EpCombinationTool &combinator, bool isMC, bool synchronization, std::string);
21 
24  void initPrivateRng(TRandom *rnd) ;
25 
29 
32  void calibrate(reco::GsfElectron &electron, unsigned int runNumber, edm::StreamID const & id = edm::StreamID::invalidStreamID()) const ;
33 
34  protected:
35  // whatever data will be needed
38  TRandom *rng_;
39 
43  double gauss(edm::StreamID const& id) const ;
45 };
46 
47 #endif
double gauss(edm::StreamID const &id) const
static StreamID invalidStreamID()
Definition: StreamID.h:48
void calibrate(SimpleElectron &electron, edm::StreamID const &id=edm::StreamID::invalidStreamID()) const
EnergyScaleCorrection_class _correctionRetriever
Read and get energy scale and smearings from .dat files.