33 _presample(iConfig.getUntrackedParameter<double>(
"nPresamples", 6.7)),
34 _nsamplesaftmax(iConfig.getUntrackedParameter<unsigned
int>(
"nSamplesAftMax", 80)),
35 _nsamplesbefmax(iConfig.getUntrackedParameter<unsigned
int>(
"nSamplesBefMax", 20)),
36 _noiseCut(iConfig.getUntrackedParameter<unsigned
int>(
"noiseCut", 7)),
37 _parabnbefmax(iConfig.getUntrackedParameter<unsigned
int>(
"paraBeforeMax", 8)),
38 _parabnaftmax(iConfig.getUntrackedParameter<unsigned
int>(
"paraAfterMax", 7)),
39 _thres(iConfig.getUntrackedParameter<unsigned
int>(
"threshold", 10)),
40 _lowlev(iConfig.getUntrackedParameter<unsigned
int>(
"lowLevel", 20)),
41 _highlev(iConfig.getUntrackedParameter<unsigned
int>(
"highLevel", 80)),
42 _nevlasers(iConfig.getUntrackedParameter<unsigned
int>(
"nEventLaser", 600)),
43 resdir_(iConfig.getUntrackedParameter<
std::
string>(
"resDir")),
44 digiCollection_(iConfig.getParameter<
std::
string>(
"digiCollection")),
45 digiProducer_(iConfig.getParameter<
std::
string>(
"digiProducer")),
46 eventHeaderCollection_(iConfig.getParameter<
std::
string>(
"eventHeaderCollection")),
47 eventHeaderProducer_(iConfig.getParameter<
std::
string>(
"eventHeaderProducer")),
91 event = headerItr->getLV1();
98 runType = headerItr->getRunType();
99 runNum = headerItr->getRunNumber();
110 std::stringstream namefile;
112 namefile <<
resdir_ <<
"/MatacqPerEvt-Run" <<
runNum <<
".root";
119 tree =
new TTree(
"MatacqTree",
"MatacqTree");
148 std::stringstream mat;
149 mat <<
"matacq[" <<
nsamples <<
"]/D" << std::endl;
151 tree->Branch(
"event", &
event,
"event/I");
154 tree->Branch(
"matacq", &
matacq, mat.str().c_str());
156 tree->Branch(
"ttrig", &
ttrig,
"ttrig/D");
170 for (
int i = 0;
i < digis.
size(); ++
i) {
const edm::EDGetTokenT< EcalRawDataCollection > dccToken_
T const * product() const
std::vector< T >::const_iterator const_iterator
void analyze(const edm::Event &e, const edm::EventSetup &c) override
float adcCount(const int &i) const
EcalPerEvtMatacqAnalyzer(const edm::ParameterSet &iConfig)
#define DEFINE_FWK_MODULE(type)
const_iterator begin() const
const std::string digiCollection_
const_iterator end() const
const std::string eventHeaderCollection_
Log< level::Warning, false > LogWarning
const edm::EDGetTokenT< EcalMatacqDigiCollection > pmatToken_
const std::string resdir_