13 #include "TPaveText.h"
43 _dataType(iConfig.getUntrackedParameter<std::
string>(
"dataType",
"h4"))
89 DCCHeader = pDCCHeader.
product();
101 evtHeader = pEventHeader.
product();
125 runType = headerItr->getRunType();
126 runNum = headerItr->getRunNumber();
127 event = headerItr->getLV1();
128 dccID = headerItr->getDccInTCCCommand();
129 fedID = headerItr->fedId();
131 short VFEGain = headerItr->getMgpaGain();
132 short MEMGain = headerItr->getMemGain();
141 int laser_delay = settings.
delay;
168 bool doesExist =
false;
193 if (laser_color ==
iBLUE) {
198 }
else if (laser_color ==
iIR) {
243 if (laser_color ==
iBLUE)
245 else if (laser_color ==
iIR)
277 std::stringstream namefile;
280 string statusfile = namefile.str();
285 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" << std::endl;
286 statusFile <<
" LASER Events " << std::endl;
287 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" << std::endl;
291 statusFile <<
"FEDID = " <<
fedIDsLas.at(
i) << std::endl;
292 statusFile <<
"DCCID = " <<
dccIDsLas.at(
i) << std::endl;
314 statusFile <<
"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" << std::endl;
316 statusFile <<
" " << std::endl;
321 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" << std::endl;
322 statusFile <<
" TESTPULSE Events " << std::endl;
323 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" << std::endl;
325 for (
unsigned int i = 0;
i <
fedIDsTP.size();
i++) {
327 statusFile <<
"FEDID = " <<
fedIDsTP.at(
i) << std::endl;
328 statusFile <<
"DCCID = " <<
dccIDsTP.at(
i) << std::endl;
335 statusFile <<
"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" << std::endl;
337 statusFile <<
" " << std::endl;
342 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" << std::endl;
343 statusFile <<
" PEDESTAL Events " << std::endl;
344 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" << std::endl;
348 statusFile <<
"FEDID = " <<
fedIDsPed.at(
i) << std::endl;
349 statusFile <<
"DCCID = " <<
dccIDsPed.at(
i) << std::endl;
356 statusFile <<
"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" << std::endl;
358 statusFile <<
" " << std::endl;
361 statusFile <<
" ... header done" << std::endl;
std::map< int, int > nRedLas
std::map< int, int > laserDelayRed
T getUntrackedParameter(std::string const &, T const &) const
std::vector< int > dccIDsPed
const edm::EventSetup & c
std::map< int, short > MGPAGainLas
std::map< int, int > laserPowerRed
std::map< int, int > runTypePed
std::vector< int > fedIDsTP
~EcalStatusAnalyzer() override
void analyze(const edm::Event &e, const edm::EventSetup &c) override
std::map< int, unsigned long long > timeStampEndTP
#define DEFINE_FWK_MODULE(type)
std::vector< T >::const_iterator const_iterator
std::map< int, unsigned long long > timeStampEndLas
std::string eventHeaderCollection_
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
std::vector< int > fedIDsPed
std::map< int, int > runTypeTP
std::string eventHeaderProducer_
std::map< int, int > runTypeLas
std::map< int, unsigned long long > timeStampBegLas
std::map< int, int > nBlueLas
std::map< int, int > isFedTPCreated
std::map< int, int > laserDelayBlue
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
std::map< int, int > laserFilterRed
std::map< int, short > MGPAGainPed
std::map< int, unsigned long long > timeStampEndPed
T const * product() const
T getParameter(std::string const &) const
std::map< int, short > MEMGainPed
std::map< int, short > MGPAGainTP
std::vector< int > dccIDsLas
unsigned long long timeStampCur
std::map< int, int > nEvtsPed
std::map< int, int > laserFilterBlue
std::map< int, int > laserPowerBlue
TimeValue_t value() const
edm::Timestamp time() const
const_iterator begin() const