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 {
30 
31  public:
32 
35 
37  ~EcalPedOffset() override;
38 
40  void analyze(edm::Event const& event, edm::EventSetup const& eventSetup) override;
41 
43  void beginRun(edm::Run const &, edm::EventSetup const& eventSetup) override;
44 
46  void endJob(void) override;
47 
50 
52  void writeDb();
53 
55  void makePlots();
56 
57 
58  private:
59 
61 
63  void readDACs(const edm::Handle<EBDigiCollection>& pDigis, const std::map<int,int>& DACvalues);
64  void readDACs(const edm::Handle<EEDigiCollection>& pDigis, const std::map<int,int>& DACvalues);
65 
69 
71 
72  std::map<int,TPedValues*> m_pedValues;
73  std::map<int,TPedResult*> m_pedResult;
74 
75  int m_DACmin;
76  int m_DACmax;
77  double m_RMSmax;
78  int m_bestPed;
79 
93  // used to retrieve the run_iov
96  int m_run;
97 
106 
107 } ;
108 
109 #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:66
std::string m_dbHostName
database host name
Definition: EcalPedOffset.h:81
std::map< int, TPedValues * > m_pedValues
Definition: EcalPedOffset.h:72
std::string m_dbName
database name
Definition: EcalPedOffset.h:83
std::string intToString(int num)
~EcalPedOffset() override
Destructor.
std::string m_xmlFile
name of the xml file to be saved
Definition: EcalPedOffset.h:70
double m_minSlopeAllowed_
min slope (in magnitude) allowed for linearity test
std::string m_dbPassword
database user password
Definition: EcalPedOffset.h:87
std::string m_plotting
the root file where to store the detail plots
Definition: EcalPedOffset.h:99
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:89
std::string m_dbUserName
database user name
Definition: EcalPedOffset.h:85
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:92
void beginRun(edm::Run const &, edm::EventSetup const &eventSetup) override
BeginRun.
void writeXMLFiles(std::string fileName)
write the results into xml format
std::map< int, TPedResult * > m_pedResult
Definition: EcalPedOffset.h:73
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:68
int m_run
run number
Definition: EcalPedOffset.h:96
const EcalElectronicsMapping * ecalElectronicsMap_
Definition: EcalPedOffset.h:60
Transient container right DAC values for each crystal and each gain $Date: $Revision: ...
std::string m_location
Definition: EcalPedOffset.h:94
double m_maxSlopeAllowed_
max slope (in magnitude) allowed for linearity test
edm::InputTag m_endcapDigiCollection
secondary name given to collection of digis
Definition: EcalPedOffset.h:67
Definition: event.py:1
Definition: Run.h:44
void analyze(edm::Event const &event, edm::EventSetup const &eventSetup) override
! Analyze