CMS 3D CMS Logo

testChannel.h
Go to the documentation of this file.
1 #ifndef testChannel_H
2 #define testChannel_H
3 
18 #include <map>
19 
21 
23 
24 #include "TROOT.h"
25 #include "TStyle.h"
26 
27 #include "TH2.h"
28 #include "TProfile.h"
29 
30 #include <fstream>
31 #include <iostream>
32 #include <memory>
33 #include <string>
34 #include <vector>
35 
36 class testChannel : public edm::EDAnalyzer {
37 public:
39  testChannel(const edm::ParameterSet &ps);
40 
42  ~testChannel() override;
43 
45  void subscribe(void);
46  void subscribeNew(void);
47  void unsubscribe(void);
48 
50  void analyze(edm::Event const &event, edm::EventSetup const &eventSetup) override;
51 
53  void beginJob() override;
54 
56  void endJob(void) override;
57 
58 private:
59  int getHeaderSMId(const int headerId);
60 
64 
66 
67  int m_DACmin;
68  int m_DACmax;
69  double m_RMSmax;
70  int m_bestPed;
71 
72  int m_xtal;
73 
74  TH2F m_pedVSDAC;
78 };
79 
80 #endif
std::string m_digiProducer
secondary name given to collection of digis
Definition: testChannel.h:62
void endJob(void) override
EndJob.
Definition: testChannel.cc:121
void analyze(edm::Event const &event, edm::EventSetup const &eventSetup) override
! Analyze
Definition: testChannel.cc:64
TH2F m_pedVSDAC
Definition: testChannel.h:74
Transient container Store all the pedestal values depending on the gain and pedestal offset $Date: $R...
int getHeaderSMId(const int headerId)
Definition: testChannel.cc:145
void unsubscribe(void)
Definition: testChannel.cc:155
double m_RMSmax
Definition: testChannel.h:69
~testChannel() override
Destructor.
Definition: testChannel.cc:58
std::string m_headerProducer
name of module/plugin/producer making digis
Definition: testChannel.h:63
void beginJob() override
BeginJob.
Definition: testChannel.cc:61
TH2F m_singlePedVSDAC_3
Definition: testChannel.h:77
TH2F m_singlePedVSDAC_1
Definition: testChannel.h:75
void subscribe(void)
Subscribe/Unsubscribe to Monitoring Elements.
Definition: testChannel.cc:151
int m_DACmin
name of the xml file to be saved
Definition: testChannel.h:67
std::string m_digiCollection
Definition: testChannel.h:61
testChannel(const edm::ParameterSet &ps)
Constructor.
Definition: testChannel.cc:17
std::string m_xmlFile
name of module/plugin/producer making headers
Definition: testChannel.h:65
Transient container right DAC values for each crystal and each gain $Date: $Revision: ...
TH2F m_singlePedVSDAC_2
Definition: testChannel.h:76
void subscribeNew(void)
Definition: testChannel.cc:153
Definition: event.py:1
calculate the best DAC value to obtain a pedestal = 200
Definition: testChannel.h:36