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",
29 "pedVSDAC (g1) for xtal " + TString(m_xtal),
36 m_singlePedVSDAC_2(
"singlePedVSDAC_2",
37 "pedVSDAC (g2) for xtal " + TString(m_xtal),
44 m_singlePedVSDAC_3(
"singlePedVSDAC_3",
45 "pedVSDAC (g3) for xtal " + TString(m_xtal),
65 LogDebug(
"testChannel") <<
"entering analyze ...";
75 std::map<int, int> DACvalues;
98 int crystalId =
EBDetId(itdigi->id()).ic();
101 edm::LogInfo(
"testChannel") <<
"channel " <<
event.id() <<
"\tcry: " << crystalId <<
"\tG: " <<
gainId 102 <<
"\tDAC: " << DACvalues[smId];
106 edm::LogInfo(
"testChannel") <<
"\t`-->" <<
df.sample(iSample).adc();
107 m_pedVSDAC.Fill(
df.sample(iSample).adc(), DACvalues[smId]);
108 if (crystalId ==
m_xtal) {
123 sprintf(ccout,
"out_%d.root",
m_xtal);
124 TFile
out(ccout,
"RECREATE");
133 profilo1->Write(
"singleProfile_1");
134 profilo2->Write(
"singleProfile_2");
135 profilo3->Write(
"singleProfile_3");
std::string m_digiProducer
secondary name given to collection of digis
void endJob(void) override
EndJob.
std::vector< T >::const_iterator const_iterator
void analyze(edm::Event const &event, edm::EventSetup const &eventSetup) override
! Analyze
Log< level::Error, false > LogError
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.
const_iterator begin() const
const_iterator end() const
int m_DACmin
name of the xml file to be saved
const_iterator end() const
Log< level::Info, false > LogInfo
constexpr int gainId(sample_type sample)
get the gainId (2 bits)
const_iterator begin() const
The iterator returned can not safely be used across threads.
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
std::string m_digiCollection
testChannel(const edm::ParameterSet &ps)
Constructor.
static constexpr int MAXSAMPLES
int ism(int ieta, int iphi)