13 #include "TPaveText.h" 44 _dataType( iConfig.getUntrackedParameter<
std::
string >(
"dataType",
"h4" ) )
103 DCCHeader=pDCCHeader.
product();
115 evtHeader = pEventHeader.
product();
141 runType=headerItr->getRunType();
142 runNum=headerItr->getRunNumber();
143 event=headerItr->getLV1();
144 dccID=headerItr->getDccInTCCCommand();
145 fedID=headerItr->fedId();
147 short VFEGain=headerItr->getMgpaGain() ;
148 short MEMGain=headerItr->getMemGain() ;
158 int laser_delay = settings.
delay ;
159 if( laser_color <0 )
return;
183 bool doesExist=
false;
207 if (laser_color==
iBLUE) {
212 }
else if (laser_color==
iIR) {
288 std::stringstream namefile;
291 string statusfile=namefile.str();
298 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+="<<std::endl;
299 statusFile <<
" LASER Events "<<std::endl;
300 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+="<<std::endl;
305 statusFile <<
"FEDID = "<<
fedIDsLas.at(
i) << std::endl;
306 statusFile <<
"DCCID = "<<
dccIDsLas.at(
i) << std::endl;
327 if(
i<
fedIDsLas.size()-1) statusFile <<
"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="<<std::endl;
328 else statusFile <<
" "<<std::endl;
334 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+="<<std::endl;
335 statusFile <<
" TESTPULSE Events "<<std::endl;
336 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+="<<std::endl;
341 statusFile <<
"FEDID = "<<
fedIDsTP.at(
i) << std::endl;
342 statusFile <<
"DCCID = "<<
dccIDsTP.at(
i) << std::endl;
348 if(
i<
fedIDsTP.size()-1) statusFile <<
"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="<<std::endl;
349 else statusFile <<
" "<<std::endl;
355 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+="<<std::endl;
356 statusFile <<
" PEDESTAL Events "<<std::endl;
357 statusFile <<
"+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+="<<std::endl;
362 statusFile <<
"FEDID = "<<
fedIDsPed.at(
i) << std::endl;
363 statusFile <<
"DCCID = "<<
dccIDsPed.at(
i) << std::endl;
369 if(
i<
fedIDsPed.size()-1) statusFile <<
"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="<<std::endl;
370 else statusFile <<
" "<<std::endl;
373 statusFile <<
" ... header done"<<std::endl;
std::map< int, int > nRedLas
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::map< int, int > isFedTPCreated
std::vector< int > dccIDsPed
std::map< int, short > MGPAGainLas
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
std::vector< T >::const_iterator const_iterator
std::map< int, unsigned long long > timeStampEndLas
std::string eventHeaderCollection_
std::map< int, int > laserDelayRed
std::map< int, short > MEMGainTP
std::map< int, int > nEvtsLas
EcalStatusAnalyzer(const edm::ParameterSet &iConfig)
std::map< int, unsigned long long > timeStampBegTP
std::vector< int > dccIDsTP
std::map< int, short > MEMGainLas
std::map< int, unsigned long long > timeStampBegPed
std::map< int, int > nEvtsTP
std::vector< int > fedIDsLas
std::map< int, int > laserFilterBlue
std::vector< int > fedIDsPed
#define DEFINE_FWK_MODULE(type)
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 > laserPowerRed
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
std::map< int, short > MGPAGainPed
std::map< int, unsigned long long > timeStampEndPed
T const * product() const
std::map< int, int > laserFilterRed
std::map< int, short > MEMGainPed
std::map< int, short > MGPAGainTP
std::map< int, int > laserPowerBlue
std::map< int, int > isFedLasCreated
std::vector< int > dccIDsLas
unsigned long long timeStampCur
std::map< int, int > laserDelayBlue
std::map< int, int > isFedPedCreated
std::map< int, int > nEvtsPed
TimeValue_t value() const
edm::Timestamp time() const
const_iterator begin() const