19 m_digiCollection (paramSet.getParameter<
std::
string> (
"digiCollection")) ,
20 m_digiProducer (paramSet.getParameter<
std::
string> (
"digiProducer")) ,
21 m_headerProducer (paramSet.getParameter<
std::
string> (
"headerProducer")) ,
22 m_xmlFile (paramSet.getParameter<
std::
string> (
"xmlFile")) ,
23 m_DACmin (paramSet.getParameter<
int> (
"DACmin")) ,
24 m_DACmax (paramSet.getParameter<
int> (
"DACmax")) ,
25 m_RMSmax (paramSet.getParameter<double> (
"RMSmax")) ,
26 m_bestPed (paramSet.getParameter<
int> (
"bestPed")) ,
27 m_xtal (paramSet.getParameter<
int> (
"xtal")) ,
28 m_pedVSDAC (
"pedVSDAC",
"pedVSDAC",100,150,250,m_DACmax-m_DACmin,m_DACmin,m_DACmax) ,
29 m_singlePedVSDAC_1 (
"singlePedVSDAC_1",
"pedVSDAC (g1) for xtal "+TString(m_xtal),100,150,250,m_DACmax-m_DACmin,m_DACmin,m_DACmax) ,
30 m_singlePedVSDAC_2 (
"singlePedVSDAC_2",
"pedVSDAC (g2) for xtal "+TString(m_xtal),100,150,250,m_DACmax-m_DACmin,m_DACmin,m_DACmax) ,
31 m_singlePedVSDAC_3 (
"singlePedVSDAC_3",
"pedVSDAC (g3) for xtal "+TString(m_xtal),100,150,250,m_DACmax-m_DACmin,m_DACmin,m_DACmax)
50 LogDebug (
"testChannel") <<
"entering beginJob ..." ;
58 LogDebug (
"testChannel") <<
"entering analyze ..." ;
66 edm::LogError (
"testChannel") <<
"Error! can't get the product " 70 std::map <int,int> DACvalues ;
74 headerItr != DCCHeaders->
end () ;
89 edm::LogError (
"testChannel") <<
"Error! can't get the product " 95 itdigi != pDigis->
end () ;
100 int crystalId =
EBDetId(itdigi->id ()).ic () ;
103 edm::LogInfo (
"testChannel") <<
"channel " <<
event.id ()
104 <<
"\tcry: " << crystalId
106 <<
"\tDAC: " << DACvalues[smId] ;
128 sprintf (ccout,
"out_%d.root",
m_xtal) ;
129 TFile
out (ccout,
"RECREATE") ;
138 profilo1->Write (
"singleProfile_1") ;
139 profilo2->Write (
"singleProfile_2") ;
140 profilo3->Write (
"singleProfile_3") ;
std::string m_digiProducer
secondary name given to collection of digis
void endJob(void) override
EndJob.
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
int gainId(sample_type sample)
get the gainId (2 bits)
std::vector< EcalDCCHeaderBlock >::const_iterator const_iterator
void analyze(edm::Event const &event, edm::EventSetup const &eventSetup) override
! Analyze
EcalMGPASample sample(int i) const
const_iterator begin() const
int gainId() const
get the gainId (2 bits)
int getHeaderSMId(const int headerId)
~testChannel() override
Destructor.
std::string m_headerProducer
name of module/plugin/producer making digis
void beginJob() override
BeginJob.
void subscribe(void)
Subscribe/Unsubscribe to Monitoring Elements.
int m_DACmin
name of the xml file to be saved
const_iterator end() const
const_iterator end() const
std::string m_digiCollection
testChannel(const edm::ParameterSet &ps)
Constructor.
int ism(int ieta, int iphi)
static const int MAXSAMPLES
const_iterator begin() const
int adc() const
get the ADC sample (12 bits)