CMS 3D CMS Logo

EcalPedOffset.h
Go to the documentation of this file.
1 #ifndef EcalPedOffset_H
2 #define EcalPedOffset_H
3 
12 #include <map>
13 #include <string>
14 
19 
22 
23 class EBDigiCollection;
24 class EEDigiCollection;
25 
27 
29 public:
32 
34  ~EcalPedOffset() override;
35 
37  void analyze(edm::Event const &event, edm::EventSetup const &eventSetup) override;
38 
40  void beginRun(edm::Run const &, edm::EventSetup const &eventSetup) override;
41 
43  void endJob(void) override;
44 
47 
49  void writeDb();
50 
52  void makePlots();
53 
54 private:
56 
58  void readDACs(const edm::Handle<EBDigiCollection> &pDigis, const std::map<int, int> &DACvalues);
59  void readDACs(const edm::Handle<EEDigiCollection> &pDigis, const std::map<int, int> &DACvalues);
60 
64 
66 
67  std::map<int, TPedValues *> m_pedValues;
68  std::map<int, TPedResult *> m_pedResult;
69 
70  int m_DACmin;
71  int m_DACmax;
72  double m_RMSmax;
73  int m_bestPed;
74 
88  // used to retrieve the run_iov
91  int m_run;
92 
101 };
102 
103 #endif
EcalPedOffset::m_create_moniov
bool m_create_moniov
Definition: EcalPedOffset.h:87
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
EcalPedOffset::m_location
std::string m_location
Definition: EcalPedOffset.h:89
EcalPedOffset::makePlots
void makePlots()
create the plots of the DAC pedestal trend
Definition: EcalPedOffset.cc:428
EcalPedOffset::EcalPedOffset
EcalPedOffset(const edm::ParameterSet &ps)
Constructor.
Definition: EcalPedOffset.cc:38
edm::Run
Definition: Run.h:45
TPedResult.h
Transient container right DAC values for each crystal and each gain $Date: $Revision:
EDAnalyzer.h
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
edm::Handle< EBDigiCollection >
EcalPedOffset::m_plotting
std::string m_plotting
the root file where to store the detail plots
Definition: EcalPedOffset.h:94
edm::EDAnalyzer
Definition: EDAnalyzer.h:29
EcalPedOffset::m_headerCollection
edm::InputTag m_headerCollection
name of module/plugin/producer making headers
Definition: EcalPedOffset.h:63
EcalPedOffset::m_pedValues
std::map< int, TPedValues * > m_pedValues
Definition: EcalPedOffset.h:67
EcalPedOffset::ecalElectronicsMap_
const EcalElectronicsMapping * ecalElectronicsMap_
Definition: EcalPedOffset.h:55
EcalPedOffset::m_bestPed
int m_bestPed
Definition: EcalPedOffset.h:73
EcalPedOffset::m_dbPassword
std::string m_dbPassword
database user password
Definition: EcalPedOffset.h:82
EcalPedOffset::m_dbName
std::string m_dbName
database name
Definition: EcalPedOffset.h:78
EcalPedOffset::~EcalPedOffset
~EcalPedOffset() override
Destructor.
Definition: EcalPedOffset.cc:67
EcalPedOffset::m_DACmin
int m_DACmin
Definition: EcalPedOffset.h:70
EcalPedOffset::m_DACmax
int m_DACmax
Definition: EcalPedOffset.h:71
EcalPedOffset::m_dbHostName
std::string m_dbHostName
database host name
Definition: EcalPedOffset.h:76
EcalPedOffset::m_endcapDigiCollection
edm::InputTag m_endcapDigiCollection
secondary name given to collection of digis
Definition: EcalPedOffset.h:62
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalPedOffset::writeDb
void writeDb()
WriteDB.
Definition: EcalPedOffset.cc:241
EcalPedOffset::endJob
void endJob(void) override
EndJob.
Definition: EcalPedOffset.cc:223
EcalPedOffset::intToString
std::string intToString(int num)
Definition: EcalPedOffset.cc:457
EcalPedOffset::m_dbHostPort
int m_dbHostPort
database
Definition: EcalPedOffset.h:84
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
EcalPedOffset
calculate the best DAC value to obtain a pedestal = 200
Definition: EcalPedOffset.h:28
EBDigiCollection
Definition: EcalDigiCollections.h:32
EEDigiCollection
Definition: EcalDigiCollections.h:45
EcalPedOffset::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &eventSetup) override
BeginRun.
Definition: EcalPedOffset.cc:77
EcalPedOffset::analyze
void analyze(edm::Event const &event, edm::EventSetup const &eventSetup) override
! Analyze
Definition: EcalPedOffset.cc:88
EcalPedOffset::m_xmlFile
std::string m_xmlFile
name of the xml file to be saved
Definition: EcalPedOffset.h:65
edm::EventSetup
Definition: EventSetup.h:57
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:34
EcalPedOffset::readDACs
void readDACs(const edm::Handle< EBDigiCollection > &pDigis, const std::map< int, int > &DACvalues)
Definition: EcalPedOffset.cc:154
TPedValues.h
Transient container Store all the pedestal values depending on the gain and pedestal offset $Date: $R...
EcalPedOffset::m_RMSmax
double m_RMSmax
Definition: EcalPedOffset.h:72
EcalPedOffset::m_minSlopeAllowed_
double m_minSlopeAllowed_
min slope (in magnitude) allowed for linearity test
Definition: EcalPedOffset.h:98
options_cfi.eventSetup
eventSetup
Definition: options_cfi.py:12
EventSetup.h
EcalPedOffset::m_barrelDigiCollection
edm::InputTag m_barrelDigiCollection
secondary name given to collection of digis
Definition: EcalPedOffset.h:61
EcalPedOffset::m_run
int m_run
run number
Definition: EcalPedOffset.h:91
EcalPedOffset::m_pedResult
std::map< int, TPedResult * > m_pedResult
Definition: EcalPedOffset.h:68
EcalPedOffset::writeXMLFiles
void writeXMLFiles(std::string fileName)
write the results into xml format
Definition: EcalPedOffset.cc:385
ParameterSet.h
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
EcalPedOffset::m_dbUserName
std::string m_dbUserName
database user name
Definition: EcalPedOffset.h:80
edm::InputTag
Definition: InputTag.h:15
EcalPedOffset::m_maxSlopeAllowed_
double m_maxSlopeAllowed_
max slope (in magnitude) allowed for linearity test
Definition: EcalPedOffset.h:96
EcalPedOffset::m_maxChi2OverNDFAllowed_
double m_maxChi2OverNDFAllowed_
max chi2/ndf allowed for linearity test
Definition: EcalPedOffset.h:100