49 virtual void endJob()
override;
75 : fileName_(iConfig.getParameter<std::
string>(
"OutputTextFile")),
76 srcTag_(iConfig.getParameter<edm::
InputTag>(
"InputProductLabel")),
93 edm::LogInfo(
"SiStripSpyIdentifyRuns") <<
" *** SPY RUNS *** "<< std::endl;
97 outFile_ <<
" *** SPY RUNS *** " << std::endl;
106 uint32_t lRunNum = aEvt.
id().
run();
121 if ( !input.
data() ||!input.
size() )
continue;
124 std::auto_ptr<sistrip::FEDSpyBuffer> buffer;
129 <<
"Exception caught when creating FEDSpyBuffer object for FED " << iFed <<
": " << e.
what();
132 if (lErrStr.find(
"Buffer is not from spy channel")!=lErrStr.npos)
break;
139 <<
" -- this is a spy file, run " << lRunNum << std::endl;
154 outFile_ << aRunNumber << std::endl;
virtual char const * what() const
edm::EDGetTokenT< FEDRawDataCollection > srcToken_
void writeRunInFile(const unsigned int aRunNumber)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
size_t size() const
Lenght of the data buffer in bytes.
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
static std::string const input
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
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 &)
virtual void endJob() override
virtual void beginJob() override