CMS 3D CMS Logo

PhotonEnergyCalibratorRun2.h
Go to the documentation of this file.
1 #ifndef PhotonEnergyCalibratorRun2_h
2 #define PhotonEnergyCalibratorRun2_h
3 
4 #include <TRandom.h>
8 
9 #include <vector>
10 
12 public:
13  // dummy constructor for persistence
15 
16  // further configuration will be added when we will learn how it will work
18 
20 
23  void initPrivateRng(TRandom *rnd);
24 
28 
32  unsigned int runNumber,
33  edm::StreamID const &id = edm::StreamID::invalidStreamID()) const;
34 
35 protected:
36  // whatever data will be needed
38  TRandom *rng_;
39  std::vector<double> smearings_;
40  std::vector<double> scales_;
41 
45  double gauss(edm::StreamID const &id) const;
47 };
48 
49 #endif
PhotonEnergyCalibratorRun2::rng_
TRandom * rng_
Definition: PhotonEnergyCalibratorRun2.h:38
EnergyScaleCorrection_class
Read and get energy scale and smearings from .dat files.
Definition: EnergyScaleCorrection_class.h:118
edm::StreamID
Definition: StreamID.h:30
muons2muons_cfi.photon
photon
Definition: muons2muons_cfi.py:28
PhotonEnergyCalibratorRun2::smearings_
std::vector< double > smearings_
Definition: PhotonEnergyCalibratorRun2.h:39
convertSQLiteXML.runNumber
runNumber
Definition: convertSQLiteXML.py:91
EnergyScaleCorrection_class.h
PhotonEnergyCalibratorRun2::isMC_
bool isMC_
Definition: PhotonEnergyCalibratorRun2.h:37
SimplePhoton.h
submitPVValidationJobs.isMC
list isMC
Definition: submitPVValidationJobs.py:658
calibratedElectronsRun2_cfi.correctionFile
correctionFile
Definition: calibratedElectronsRun2_cfi.py:21
PhotonEnergyCalibratorRun2::gauss
double gauss(edm::StreamID const &id) const
Definition: PhotonEnergyCalibratorRun2.cc:56
PhotonEnergyCalibratorRun2
Definition: PhotonEnergyCalibratorRun2.h:11
calibratedElectrons_cfi.synchronization
synchronization
Definition: calibratedElectrons_cfi.py:33
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PhotonEnergyCalibratorRun2::synchronization_
bool synchronization_
Definition: PhotonEnergyCalibratorRun2.h:37
edm::StreamID::invalidStreamID
static StreamID invalidStreamID()
Definition: StreamID.h:45
PhotonEnergyCalibratorRun2::scales_
std::vector< double > scales_
Definition: PhotonEnergyCalibratorRun2.h:40
reco::Photon
Definition: Photon.h:21
SimplePhoton
Definition: SimplePhoton.h:8
PhotonEnergyCalibratorRun2::calibrate
void calibrate(SimplePhoton &photon, edm::StreamID const &id=edm::StreamID::invalidStreamID()) const
Definition: PhotonEnergyCalibratorRun2.cc:34
PhotonEnergyCalibratorRun2::_correctionRetriever
EnergyScaleCorrection_class _correctionRetriever
Definition: PhotonEnergyCalibratorRun2.h:46
StreamID.h
PhotonEnergyCalibratorRun2::initPrivateRng
void initPrivateRng(TRandom *rnd)
Definition: PhotonEnergyCalibratorRun2.cc:24
PhotonEnergyCalibratorRun2::~PhotonEnergyCalibratorRun2
~PhotonEnergyCalibratorRun2()
Definition: PhotonEnergyCalibratorRun2.cc:22
PhotonEnergyCalibratorRun2::PhotonEnergyCalibratorRun2
PhotonEnergyCalibratorRun2()
Definition: PhotonEnergyCalibratorRun2.h:14