13 #include "TPaveText.h" 38 _dataType(iConfig.getUntrackedParameter<
std::
string>(
"dataType",
"h4")),
39 resdir_(iConfig.getUntrackedParameter<
std::
string>(
"resDir")),
40 statusfile_(iConfig.getUntrackedParameter<
std::
string>(
"statusFile")),
41 eventHeaderCollection_(iConfig.getParameter<
std::
string>(
"eventHeaderCollection")),
42 eventHeaderProducer_(iConfig.getParameter<
std::
string>(
"eventHeaderProducer")),
105 runType = headerItr->getRunType();
106 runNum = headerItr->getRunNumber();
107 event = headerItr->getLV1();
108 dccID = headerItr->getDccInTCCCommand();
109 fedID = headerItr->fedId();
111 short VFEGain = headerItr->getMgpaGain();
112 short MEMGain = headerItr->getMemGain();
121 int laser_delay = settings.
delay;
148 bool doesExist =
false;
173 if (laser_color ==
iBLUE) {
178 }
else if (laser_color ==
iIR) {
223 if (laser_color ==
iBLUE)
225 else if (laser_color ==
iIR)
257 std::stringstream namefile;
265 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" << std::endl;
266 statusFile <<
" LASER Events " << std::endl;
267 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" << std::endl;
271 statusFile <<
"FEDID = " <<
fedIDsLas.at(
i) << std::endl;
272 statusFile <<
"DCCID = " <<
dccIDsLas.at(
i) << std::endl;
294 statusFile <<
"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" << std::endl;
296 statusFile <<
" " << std::endl;
301 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" << std::endl;
302 statusFile <<
" TESTPULSE Events " << std::endl;
303 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" << std::endl;
305 for (
unsigned int i = 0;
i <
fedIDsTP.size();
i++) {
307 statusFile <<
"FEDID = " <<
fedIDsTP.at(
i) << std::endl;
308 statusFile <<
"DCCID = " <<
dccIDsTP.at(
i) << std::endl;
315 statusFile <<
"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" << std::endl;
317 statusFile <<
" " << std::endl;
322 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" << std::endl;
323 statusFile <<
" PEDESTAL Events " << std::endl;
324 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" << std::endl;
328 statusFile <<
"FEDID = " <<
fedIDsPed.at(
i) << std::endl;
329 statusFile <<
"DCCID = " <<
dccIDsPed.at(
i) << std::endl;
336 statusFile <<
"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" << std::endl;
338 statusFile <<
" " << std::endl;
341 statusFile <<
" ... header done" << std::endl;
std::map< int, int > nRedLas
std::map< int, int > laserDelayRed
std::vector< int > dccIDsPed
std::map< int, short > MGPAGainLas
std::map< int, int > laserPowerRed
std::map< int, int > runTypePed
std::vector< int > fedIDsTP
void analyze(const edm::Event &e, const edm::EventSetup &c) override
std::map< int, unsigned long long > timeStampEndTP
T const * product() const
std::vector< T >::const_iterator const_iterator
const std::string eventHeaderCollection_
std::map< int, unsigned long long > timeStampEndLas
std::map< int, short > MEMGainTP
std::map< int, int > nEvtsLas
EcalStatusAnalyzer(const edm::ParameterSet &iConfig)
std::map< int, unsigned long long > timeStampBegTP
std::map< int, int > isFedLasCreated
std::vector< int > dccIDsTP
std::map< int, short > MEMGainLas
std::map< int, int > isFedPedCreated
std::map< int, unsigned long long > timeStampBegPed
std::map< int, int > nEvtsTP
std::vector< int > fedIDsLas
const std::string statusfile_
std::vector< int > fedIDsPed
std::map< int, int > runTypeTP
const std::string eventHeaderProducer_
std::map< int, int > runTypeLas
std::map< int, unsigned long long > timeStampBegLas
std::map< int, int > nBlueLas
#define DEFINE_FWK_MODULE(type)
std::map< int, int > isFedTPCreated
const_iterator begin() const
std::map< int, int > laserDelayBlue
const std::string _dataType
const_iterator end() const
const edm::EDGetTokenT< EcalTBEventHeader > headToken_
std::map< int, int > laserFilterRed
std::map< int, short > MGPAGainPed
std::map< int, unsigned long long > timeStampEndPed
const std::string resdir_
std::map< int, short > MEMGainPed
std::map< int, short > MGPAGainTP
std::vector< int > dccIDsLas
unsigned long long timeStampCur
const edm::EDGetTokenT< EcalRawDataCollection > dccToken_
Log< level::Warning, false > LogWarning
std::map< int, int > nEvtsPed
std::map< int, int > laserFilterBlue
std::map< int, int > laserPowerBlue