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::unique_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;
edm::EDGetTokenT< FEDRawDataCollection > srcToken_
void writeRunInFile(const unsigned int aRunNumber)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
char const * what() const override
size_t size() const
Lenght of the data buffer in bytes.
void analyze(const edm::Event &, const edm::EventSetup &) override
static std::string const input
#define DEFINE_FWK_MODULE(type)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
~SpyIdentifyRunsModule() override
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 &)