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
double m_maxChi2OverNDFAllowed_
max chi2/ndf allowed for linearity test
edm::InputTag m_barrelDigiCollection
secondary name given to collection of digis
Definition: EcalPedOffset.h:61
std::string m_dbHostName
database host name
Definition: EcalPedOffset.h:76
std::string m_dbName
database name
Definition: EcalPedOffset.h:78
std::string intToString(int num)
~EcalPedOffset() override
Destructor.
std::string m_xmlFile
name of the xml file to be saved
Definition: EcalPedOffset.h:65
double m_minSlopeAllowed_
min slope (in magnitude) allowed for linearity test
Definition: EcalPedOffset.h:98
std::string m_dbPassword
database user password
Definition: EcalPedOffset.h:82
std::string m_plotting
the root file where to store the detail plots
Definition: EcalPedOffset.h:94
Transient container Store all the pedestal values depending on the gain and pedestal offset $Date: $R...
void endJob(void) override
EndJob.
int m_dbHostPort
database
Definition: EcalPedOffset.h:84
std::string m_dbUserName
database user name
Definition: EcalPedOffset.h:80
void writeDb()
WriteDB.
void readDACs(const edm::Handle< EBDigiCollection > &pDigis, const std::map< int, int > &DACvalues)
void makePlots()
create the plots of the DAC pedestal trend
bool m_create_moniov
Definition: EcalPedOffset.h:87
void beginRun(edm::Run const &, edm::EventSetup const &eventSetup) override
BeginRun.
std::map< int, TPedResult * > m_pedResult
Definition: EcalPedOffset.h:68
void writeXMLFiles(std::string fileName)
write the results into xml format
calculate the best DAC value to obtain a pedestal = 200
Definition: EcalPedOffset.h:28
EcalPedOffset(const edm::ParameterSet &ps)
Constructor.
edm::InputTag m_headerCollection
name of module/plugin/producer making headers
Definition: EcalPedOffset.h:63
int m_run
run number
Definition: EcalPedOffset.h:91
std::map< int, TPedValues * > m_pedValues
Definition: EcalPedOffset.h:67
const EcalElectronicsMapping * ecalElectronicsMap_
Definition: EcalPedOffset.h:55
Transient container right DAC values for each crystal and each gain $Date: $Revision: ...
std::string m_location
Definition: EcalPedOffset.h:89
double m_maxSlopeAllowed_
max slope (in magnitude) allowed for linearity test
Definition: EcalPedOffset.h:96
edm::InputTag m_endcapDigiCollection
secondary name given to collection of digis
Definition: EcalPedOffset.h:62
Definition: event.py:1
Definition: Run.h:45
void analyze(edm::Event const &event, edm::EventSetup const &eventSetup) override
! Analyze