CMS 3D CMS Logo

testChannel.h
Go to the documentation of this file.
1 #ifndef testChannel_H
2 #define testChannel_H
3 
12 #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 <memory>
31 #include <iostream>
32 #include <fstream>
33 #include <vector>
34 #include <string>
35 
37 {
38 
39  public:
40 
42  testChannel (const edm::ParameterSet& ps) ;
43 
45  ~testChannel () override ;
46 
48  void subscribe (void) ;
49  void subscribeNew (void) ;
50  void unsubscribe (void) ;
51 
53  void analyze (edm::Event const& event, edm::EventSetup const& eventSetup) override ;
54 
56  void beginJob () override ;
57 
59  void endJob (void) override ;
60 
61  private:
62 
63  int getHeaderSMId (const int headerId) ;
64 
68 
70 
71  int m_DACmin ;
72  int m_DACmax ;
73  double m_RMSmax ;
74  int m_bestPed ;
75 
76  int m_xtal ;
77 
78  TH2F m_pedVSDAC ;
82 
83 } ;
84 
85 #endif
std::string m_digiProducer
secondary name given to collection of digis
Definition: testChannel.h:66
void endJob(void) override
EndJob.
Definition: testChannel.cc:125
void analyze(edm::Event const &event, edm::EventSetup const &eventSetup) override
! Analyze
Definition: testChannel.cc:55
TH2F m_pedVSDAC
Definition: testChannel.h:78
Transient container Store all the pedestal values depending on the gain and pedestal offset $Date: $R...
int getHeaderSMId(const int headerId)
Definition: testChannel.cc:150
void unsubscribe(void)
Definition: testChannel.cc:166
double m_RMSmax
Definition: testChannel.h:73
~testChannel() override
Destructor.
Definition: testChannel.cc:42
std::string m_headerProducer
name of module/plugin/producer making digis
Definition: testChannel.h:67
void beginJob() override
BeginJob.
Definition: testChannel.cc:48
TH2F m_singlePedVSDAC_3
Definition: testChannel.h:81
TH2F m_singlePedVSDAC_1
Definition: testChannel.h:79
void subscribe(void)
Subscribe/Unsubscribe to Monitoring Elements.
Definition: testChannel.cc:160
int m_DACmin
name of the xml file to be saved
Definition: testChannel.h:71
std::string m_digiCollection
Definition: testChannel.h:65
testChannel(const edm::ParameterSet &ps)
Constructor.
Definition: testChannel.cc:18
std::string m_xmlFile
name of module/plugin/producer making headers
Definition: testChannel.h:69
Transient container right DAC values for each crystal and each gain $Date: $Revision: ...
TH2F m_singlePedVSDAC_2
Definition: testChannel.h:80
void subscribeNew(void)
Definition: testChannel.cc:163
Definition: event.py:1
calculate the best DAC value to obtain a pedestal = 200
Definition: testChannel.h:36