Definition at line 37 of file SiStripSpyIdentifyRuns.cc.
sistrip::SpyIdentifyRunsModule::SpyIdentifyRunsModule |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
sistrip::SpyIdentifyRunsModule::~SpyIdentifyRunsModule |
( |
| ) |
|
Implements edm::EDAnalyzer.
Definition at line 100 of file SiStripSpyIdentifyRuns.cc.
References FEDRawData::data(), alignCSCRings::e, FEDRawDataCollection::FEDData(), edm::Event::getByLabel(), edm::EventBase::id(), LaserDQM_cfg::input, FEDNumbering::MAXSiStripFEDID, FEDNumbering::MINSiStripFEDID, prevRun_, edm::EventID::run(), FEDRawData::size(), srcTag_, cms::Exception::what(), and writeRunInFile().
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;
virtual char const * what() const
void writeRunInFile(const unsigned int aRunNumber)
size_t size() const
Lenght of the data buffer in bytes.
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
void sistrip::SpyIdentifyRunsModule::beginJob |
( |
void |
| ) |
|
|
privatevirtual |
void sistrip::SpyIdentifyRunsModule::endJob |
( |
void |
| ) |
|
|
privatevirtual |
void sistrip::SpyIdentifyRunsModule::writeRunInFile |
( |
const unsigned int |
aRunNumber | ) |
|
|
private |
std::string sistrip::SpyIdentifyRunsModule::fileName_ |
|
private |
std::ofstream sistrip::SpyIdentifyRunsModule::outFile_ |
|
private |
uint32_t sistrip::SpyIdentifyRunsModule::prevRun_ |
|
private |