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
testChannel::m_DACmax
int m_DACmax
Definition: testChannel.h:68
MessageLogger.h
testChannel::m_digiProducer
std::string m_digiProducer
secondary name given to collection of digis
Definition: testChannel.h:62
TPedResult.h
Transient container right DAC values for each crystal and each gain $Date: $Revision:
EDAnalyzer.h
testChannel::analyze
void analyze(edm::Event const &event, edm::EventSetup const &eventSetup) override
! Analyze
Definition: testChannel.cc:64
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
testChannel::~testChannel
~testChannel() override
Destructor.
Definition: testChannel.cc:58
testChannel::m_headerProducer
std::string m_headerProducer
name of module/plugin/producer making digis
Definition: testChannel.h:63
testChannel::beginJob
void beginJob() override
BeginJob.
Definition: testChannel.cc:61
MakerMacros.h
testChannel::m_xtal
int m_xtal
Definition: testChannel.h:72
testChannel::unsubscribe
void unsubscribe(void)
Definition: testChannel.cc:155
EcalDigiCollections.h
testChannel::m_pedVSDAC
TH2F m_pedVSDAC
Definition: testChannel.h:74
testChannel::getHeaderSMId
int getHeaderSMId(const int headerId)
Definition: testChannel.cc:145
testChannel::m_singlePedVSDAC_3
TH2F m_singlePedVSDAC_3
Definition: testChannel.h:77
testChannel::m_RMSmax
double m_RMSmax
Definition: testChannel.h:69
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
testChannel::subscribe
void subscribe(void)
Subscribe/Unsubscribe to Monitoring Elements.
Definition: testChannel.cc:151
testChannel::m_DACmin
int m_DACmin
name of the xml file to be saved
Definition: testChannel.h:67
testChannel::m_bestPed
int m_bestPed
Definition: testChannel.h:70
testChannel::testChannel
testChannel(const edm::ParameterSet &ps)
Constructor.
Definition: testChannel.cc:17
testChannel::m_xmlFile
std::string m_xmlFile
name of module/plugin/producer making headers
Definition: testChannel.h:65
testChannel::m_singlePedVSDAC_1
TH2F m_singlePedVSDAC_1
Definition: testChannel.h:75
edm::EventSetup
Definition: EventSetup.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
testChannel
calculate the best DAC value to obtain a pedestal = 200
Definition: testChannel.h:36
testChannel::m_singlePedVSDAC_2
TH2F m_singlePedVSDAC_2
Definition: testChannel.h:76
TPedValues.h
Transient container Store all the pedestal values depending on the gain and pedestal offset $Date: $R...
testChannel::subscribeNew
void subscribeNew(void)
Definition: testChannel.cc:153
testChannel::m_digiCollection
std::string m_digiCollection
Definition: testChannel.h:61
ParameterSet.h
testChannel::endJob
void endJob(void) override
EndJob.
Definition: testChannel.cc:121
event
Definition: event.py:1
edm::Event
Definition: Event.h:73