74 : fileName_(iConfig.getParameter<std::string>(
"OutputTextFile")),
75 srcTag_(iConfig.getParameter<edm::InputTag>(
"InputProductLabel")),
92 edm::LogInfo(
"SiStripSpyIdentifyRuns") <<
" *** SPY RUNS *** "<< std::endl;
96 outFile_ <<
" *** SPY RUNS *** " << std::endl;
105 uint32_t lRunNum = aEvt.
id().
run();
120 if ( !input.
data() ||!input.
size() )
continue;
123 std::auto_ptr<sistrip::FEDSpyBuffer> buffer;
128 <<
"Exception caught when creating FEDSpyBuffer object for FED " << iFed <<
": " << e.
what();
130 std::string lErrStr = e.
what();
131 if (lErrStr.find(
"Buffer is not from spy channel")!=lErrStr.npos)
break;
138 <<
" -- this is a spy file, run " << lRunNum << std::endl;
153 outFile_ << aRunNumber << std::endl;
virtual char const * what() const
void writeRunInFile(const unsigned int aRunNumber)
#define DEFINE_FWK_MODULE(type)
size_t size() const
Lenght of the data buffer in bytes.
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
virtual void analyze(const edm::Event &, const edm::EventSetup &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Constants and enumerated types for FED/FEC systems.
sistrip::SpyIdentifyRunsModule SiStripSpyIdentifyRuns
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
SpyIdentifyRunsModule(const edm::ParameterSet &)