18 m_digiCollection (paramSet.getParameter<
std::
string> (
"digiCollection")) ,
19 m_digiProducer (paramSet.getParameter<
std::
string> (
"digiProducer")) ,
20 m_headerProducer (paramSet.getParameter<
std::
string> (
"headerProducer")) ,
21 m_xmlFile (paramSet.getParameter<
std::
string> (
"xmlFile")) ,
22 m_DACmin (paramSet.getParameter<
int> (
"DACmin")) ,
23 m_DACmax (paramSet.getParameter<
int> (
"DACmax")) ,
24 m_RMSmax (paramSet.getParameter<double> (
"RMSmax")) ,
25 m_bestPed (paramSet.getParameter<
int> (
"bestPed")) ,
26 m_xtal (paramSet.getParameter<
int> (
"xtal")) ,
27 m_pedVSDAC (
"pedVSDAC",
"pedVSDAC",100,150,250,m_DACmax-m_DACmin,m_DACmin,m_DACmax) ,
28 m_singlePedVSDAC_1 (
"singlePedVSDAC_1",
"pedVSDAC (g1) for xtal "+m_xtal,100,150,250,m_DACmax-m_DACmin,m_DACmin,m_DACmax) ,
29 m_singlePedVSDAC_2 (
"singlePedVSDAC_2",
"pedVSDAC (g2) for xtal "+m_xtal,100,150,250,m_DACmax-m_DACmin,m_DACmin,m_DACmax) ,
30 m_singlePedVSDAC_3 (
"singlePedVSDAC_3",
"pedVSDAC (g3) for xtal "+m_xtal,100,150,250,m_DACmax-m_DACmin,m_DACmin,m_DACmax)
49 LogDebug (
"testChannel") <<
"entering beginJob ..." ;
57 LogDebug (
"testChannel") <<
"entering analyze ..." ;
65 edm::LogError (
"testChannel") <<
"Error! can't get the product " 69 std::map <int,int> DACvalues ;
73 headerItr != DCCHeaders->
end () ;
88 edm::LogError (
"testChannel") <<
"Error! can't get the product " 94 itdigi != pDigis->
end () ;
99 int crystalId =
EBDetId(itdigi->id ()).ic () ;
102 edm::LogInfo (
"testChannel") <<
"channel " <<
event.id ()
103 <<
"\tcry: " << crystalId
105 <<
"\tDAC: " << DACvalues[smId] ;
127 sprintf (ccout,
"out_%d.root",
m_xtal) ;
128 TFile
out (ccout,
"RECREATE") ;
137 profilo1->Write (
"singleProfile_1") ;
138 profilo2->Write (
"singleProfile_2") ;
139 profilo3->Write (
"singleProfile_3") ;
std::string m_digiProducer
secondary name given to collection of digis
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
EcalMGPASample sample(int i) const
const_iterator begin() const
int gainId() const
get the gainId (2 bits)
int getHeaderSMId(const int headerId)
std::string m_headerProducer
name of module/plugin/producer making digis
virtual ~testChannel()
Destructor.
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.
void analyze(edm::Event const &event, edm::EventSetup const &eventSetup)
! Analyze
int ism(int ieta, int iphi)
static const int MAXSAMPLES
const_iterator begin() const
int adc() const
get the ADC sample (12 bits)