#include <PlaybackRawDataProvider.h>
Static Public Member Functions | |
static PlaybackRawDataProvider * | instance () |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Private Member Functions | |
void | lock () |
void | postReadSem () |
void | postWriteSem () |
void | sem_print () |
void | unlock () |
void | waitReadSem () |
void | waitWriteSem () |
Private Attributes | |
unsigned int | count_ |
bool | destroying_ |
FEDRawDataCollection ** | eventQueue_ |
unsigned int * | evtNumber_ |
bool | filesClosed_ |
bool | freeToEof_ |
sem_t | lock_ |
unsigned int | queueSize_ |
unsigned int | readIndex_ |
sem_t | readSem_ |
unsigned int * | runNumber_ |
unsigned int | writeIndex_ |
sem_t | writeSem_ |
Static Private Attributes | |
static PlaybackRawDataProvider * | instance_ = 0 |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Definition at line 13 of file PlaybackRawDataProvider.h.
|
explicit |
Definition at line 32 of file PlaybackRawDataProvider.cc.
References TauDecayModes::dec, eventQueue_, evtNumber_, edm::ParameterSet::getUntrackedParameter(), mps_fire::i, instance_, lock_, queueSize_, readSem_, runNumber_, and writeSem_.
|
override |
Definition at line 58 of file PlaybackRawDataProvider.cc.
References TauDecayModes::dec, destroying_, eventQueue_, evtNumber_, mps_fire::i, instance_, lock_, postReadSem(), postWriteSem(), queueSize_, readSem_, runNumber_, unlock(), and writeSem_.
|
override |
Definition at line 86 of file PlaybackRawDataProvider.cc.
References count_, FEDRawData::data(), edm::EventID::event(), eventQueue_, evtNumber_, FEDRawDataCollection::FEDData(), freeToEof_, edm::Event::getByLabel(), mps_fire::i, edm::EventBase::id(), createfilelist::int, edm::HandleBase::isValid(), lock(), FEDNumbering::MAXFEDID, postReadSem(), queueSize_, FEDRawData::resize(), edm::EventID::run(), runNumber_, FEDRawData::size(), unlock(), waitWriteSem(), and writeIndex_.
bool PlaybackRawDataProvider::areFilesClosed | ( | ) |
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 128 of file PlaybackRawDataProvider.cc.
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 134 of file PlaybackRawDataProvider.cc.
References count_.
|
virtual |
Definition at line 146 of file PlaybackRawDataProvider.cc.
References destroying_, eventQueue_, lock(), postWriteSem(), queueSize_, readIndex_, mps_fire::result, unlock(), and waitReadSem().
|
virtual |
Definition at line 164 of file PlaybackRawDataProvider.cc.
References destroying_, eventQueue_, evtNumber_, lock(), postWriteSem(), queueSize_, readIndex_, mps_fire::result, runNumber_, unlock(), and waitReadSem().
|
inlinestatic |
Definition at line 82 of file PlaybackRawDataProvider.h.
References instance_.
|
inlineprivate |
Definition at line 44 of file PlaybackRawDataProvider.h.
References lock_.
Referenced by analyze(), getFEDRawData(), and sem_print().
|
inlineprivate |
Definition at line 49 of file PlaybackRawDataProvider.h.
References readSem_, and sem_print().
Referenced by analyze(), and ~PlaybackRawDataProvider().
|
inlineprivate |
Definition at line 47 of file PlaybackRawDataProvider.h.
References writeSem_.
Referenced by getFEDRawData(), setFreeToEof(), and ~PlaybackRawDataProvider().
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 140 of file PlaybackRawDataProvider.cc.
References filesClosed_.
|
private |
Definition at line 188 of file PlaybackRawDataProvider.cc.
References gather_cfg::cout, lock(), readIndex_, readSem_, unlock(), writeIndex_, and writeSem_.
Referenced by postReadSem().
void PlaybackRawDataProvider::setFreeToEof | ( | ) |
Definition at line 203 of file PlaybackRawDataProvider.cc.
References freeToEof_, and postWriteSem().
|
inlineprivate |
Definition at line 45 of file PlaybackRawDataProvider.h.
References lock_.
Referenced by analyze(), getFEDRawData(), sem_print(), and ~PlaybackRawDataProvider().
|
inlineprivate |
Definition at line 48 of file PlaybackRawDataProvider.h.
References readSem_.
Referenced by getFEDRawData().
|
inlineprivate |
Definition at line 46 of file PlaybackRawDataProvider.h.
References writeSem_.
Referenced by analyze().
|
private |
Definition at line 63 of file PlaybackRawDataProvider.h.
|
private |
Definition at line 72 of file PlaybackRawDataProvider.h.
Referenced by getFEDRawData(), and ~PlaybackRawDataProvider().
|
private |
Definition at line 60 of file PlaybackRawDataProvider.h.
Referenced by analyze(), getFEDRawData(), PlaybackRawDataProvider(), and ~PlaybackRawDataProvider().
|
private |
Definition at line 62 of file PlaybackRawDataProvider.h.
Referenced by analyze(), getFEDRawData(), PlaybackRawDataProvider(), and ~PlaybackRawDataProvider().
|
private |
Definition at line 71 of file PlaybackRawDataProvider.h.
Referenced by areFilesClosed(), and respondToCloseInputFile().
|
private |
Definition at line 70 of file PlaybackRawDataProvider.h.
Referenced by analyze(), and setFreeToEof().
|
staticprivate |
Definition at line 40 of file PlaybackRawDataProvider.h.
Referenced by instance(), PlaybackRawDataProvider(), and ~PlaybackRawDataProvider().
|
private |
Definition at line 65 of file PlaybackRawDataProvider.h.
Referenced by lock(), PlaybackRawDataProvider(), unlock(), and ~PlaybackRawDataProvider().
|
private |
Definition at line 59 of file PlaybackRawDataProvider.h.
Referenced by analyze(), getFEDRawData(), PlaybackRawDataProvider(), and ~PlaybackRawDataProvider().
|
private |
Definition at line 69 of file PlaybackRawDataProvider.h.
Referenced by getFEDRawData(), and sem_print().
|
private |
Definition at line 67 of file PlaybackRawDataProvider.h.
Referenced by PlaybackRawDataProvider(), postReadSem(), sem_print(), waitReadSem(), and ~PlaybackRawDataProvider().
|
private |
Definition at line 61 of file PlaybackRawDataProvider.h.
Referenced by analyze(), getFEDRawData(), PlaybackRawDataProvider(), and ~PlaybackRawDataProvider().
|
private |
Definition at line 68 of file PlaybackRawDataProvider.h.
Referenced by analyze(), and sem_print().
|
private |
Definition at line 66 of file PlaybackRawDataProvider.h.
Referenced by PlaybackRawDataProvider(), postWriteSem(), sem_print(), waitWriteSem(), and ~PlaybackRawDataProvider().