20 m_digiCollection (paramSet.getParameter<std::
string> (
"digiCollection")) ,
21 m_digiProducer (paramSet.getParameter<std::
string> (
"digiProducer")) ,
22 m_headerProducer (paramSet.getParameter<std::
string> (
"headerProducer")) ,
23 m_xmlFile (paramSet.getParameter<std::
string> (
"xmlFile")) ,
24 m_DACmin (paramSet.getParameter<int> (
"DACmin")) ,
25 m_DACmax (paramSet.getParameter<int> (
"DACmax")) ,
26 m_RMSmax (paramSet.getParameter<double> (
"RMSmax")) ,
27 m_bestPed (paramSet.getParameter<int> (
"bestPed")) ,
28 m_xtal (paramSet.getParameter<int> (
"xtal")) ,
29 m_pedVSDAC (
"pedVSDAC",
"pedVSDAC",100,150,250,m_DACmax-m_DACmin,m_DACmin,m_DACmax) ,
30 m_singlePedVSDAC_1 (
"singlePedVSDAC_1",
"pedVSDAC (g1) for xtal "+m_xtal,100,150,250,m_DACmax-m_DACmin,m_DACmin,m_DACmax) ,
31 m_singlePedVSDAC_2 (
"singlePedVSDAC_2",
"pedVSDAC (g2) for xtal "+m_xtal,100,150,250,m_DACmax-m_DACmin,m_DACmin,m_DACmax) ,
32 m_singlePedVSDAC_3 (
"singlePedVSDAC_3",
"pedVSDAC (g3) for xtal "+m_xtal,100,150,250,m_DACmax-m_DACmin,m_DACmin,m_DACmax)
51 LogDebug (
"testChannel") <<
"entering beginJob ..." ;
59 LogDebug (
"testChannel") <<
"entering analyze ..." ;
67 edm::LogError (
"testChannel") <<
"Error! can't get the product "
71 std::map <int,int> DACvalues ;
75 headerItr != DCCHeaders->end () ;
90 edm::LogError (
"testChannel") <<
"Error! can't get the product "
96 itdigi != pDigis->end () ;
101 int crystalId =
EBDetId(itdigi->id ()).ic () ;
104 edm::LogInfo (
"testChannel") <<
"channel " <<
event.id ()
105 <<
"\tcry: " << crystalId
107 <<
"\tDAC: " << DACvalues[smId] ;
129 sprintf (ccout,
"out_%d.root",
m_xtal) ;
130 TFile
out (ccout,
"RECREATE") ;
139 profilo1->Write (
"singleProfile_1") ;
140 profilo2->Write (
"singleProfile_2") ;
141 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< T >::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)