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
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.
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
int m_DACmin
name of the xml file to be saved
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
int adc() const
get the ADC sample (12 bits)