37 _presample(iConfig.getUntrackedParameter<double>(
"nPresamples", 6.7)),
38 _nsamplesaftmax(iConfig.getUntrackedParameter<unsigned int>(
"nSamplesAftMax", 80)),
39 _nsamplesbefmax(iConfig.getUntrackedParameter<unsigned int>(
"nSamplesBefMax", 20)),
40 _noiseCut(iConfig.getUntrackedParameter<unsigned int>(
"noiseCut", 7)),
41 _parabnbefmax(iConfig.getUntrackedParameter<unsigned int>(
"paraBeforeMax", 8)),
42 _parabnaftmax(iConfig.getUntrackedParameter<unsigned int>(
"paraAfterMax", 7)),
43 _thres(iConfig.getUntrackedParameter<unsigned int>(
"threshold", 10)),
44 _lowlev(iConfig.getUntrackedParameter<unsigned int>(
"lowLevel", 20)),
45 _highlev(iConfig.getUntrackedParameter<unsigned int>(
"highLevel", 80)),
46 _nevlasers(iConfig.getUntrackedParameter<unsigned int>(
"nEventLaser", 600))
90 matacqDigi = pmatacqDigi.
product();
102 DCCHeader = pDCCHeader.
product();
113 event = headerItr->getLV1();
120 runType = headerItr->getRunType();
121 runNum = headerItr->getRunNumber();
132 stringstream namefile;
134 namefile <<
resdir_ <<
"/MatacqPerEvt-Run" <<
runNum <<
".root";
141 tree =
new TTree(
"MatacqTree",
"MatacqTree");
171 mat <<
"matacq[" <<
nsamples <<
"]/D" << endl;
173 tree->Branch(
"event", &
event,
"event/I");
176 tree->Branch(
"matacq", &
matacq, mat.str().c_str());
178 tree->Branch(
"ttrig", &
ttrig,
"ttrig/D");
192 for (
int i = 0;
i < digis.
size(); ++
i) {
T getUntrackedParameter(std::string const &, T const &) const
const edm::EventSetup & c
#define DEFINE_FWK_MODULE(type)
std::string eventHeaderProducer_
std::vector< T >::const_iterator const_iterator
float adcCount(const int &i) const
void analyze(const edm::Event &e, const edm::EventSetup &c) override
EcalPerEvtMatacqAnalyzer(const edm::ParameterSet &iConfig)
std::string eventHeaderCollection_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
T const * product() const
T getParameter(std::string const &) const
std::string digiCollection_
~EcalPerEvtMatacqAnalyzer() override
std::string digiProducer_
const_iterator begin() const