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 
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 
63 
65 
66  const int m_DACmin;
67  const int m_DACmax;
68  const double m_RMSmax;
69  const int m_bestPed;
70 
71  const int m_xtal;
72 
73  TH2F m_pedVSDAC;
77 };
78 
79 #endif
void endJob(void) override
EndJob.
Definition: testChannel.cc:120
void analyze(edm::Event const &event, edm::EventSetup const &eventSetup) override
! Analyze
Definition: testChannel.cc:65
const int m_bestPed
Definition: testChannel.h:69
TH2F m_pedVSDAC
Definition: testChannel.h:73
Transient container Store all the pedestal values depending on the gain and pedestal offset $Date: $R...
int getHeaderSMId(const int headerId)
Definition: testChannel.cc:144
const double m_RMSmax
Definition: testChannel.h:68
void unsubscribe(void)
Definition: testChannel.cc:154
~testChannel() override
Destructor.
Definition: testChannel.cc:59
void beginJob() override
BeginJob.
Definition: testChannel.cc:62
TH2F m_singlePedVSDAC_3
Definition: testChannel.h:76
TH2F m_singlePedVSDAC_1
Definition: testChannel.h:74
void subscribe(void)
Subscribe/Unsubscribe to Monitoring Elements.
Definition: testChannel.cc:150
const int m_DACmin
name of the xml file to be saved
Definition: testChannel.h:66
const int m_DACmax
Definition: testChannel.h:67
const edm::EDGetTokenT< EBDigiCollection > m_digiProducerToken
Definition: testChannel.h:61
const int m_xtal
Definition: testChannel.h:71
testChannel(const edm::ParameterSet &ps)
Constructor.
Definition: testChannel.cc:17
Transient container right DAC values for each crystal and each gain $Date: $Revision: ...
TH2F m_singlePedVSDAC_2
Definition: testChannel.h:75
void subscribeNew(void)
Definition: testChannel.cc:152
const edm::EDGetTokenT< EcalRawDataCollection > m_headerProducerToken
Token to access digis.
Definition: testChannel.h:62
Definition: event.py:1
const std::string m_xmlFile
Token to access headers.
Definition: testChannel.h:64
calculate the best DAC value to obtain a pedestal = 200
Definition: testChannel.h:36