#include <PlaybackRawDataProvider.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
bool | areFilesClosed () |
virtual void | beginJob () |
virtual void | endJob () |
virtual FEDRawDataCollection * | getFEDRawData () |
virtual FEDRawDataCollection * | getFEDRawData (unsigned int &runNumber, unsigned int &evtNumber) |
PlaybackRawDataProvider (const edm::ParameterSet &) | |
virtual void | respondToCloseInputFile (edm::FileBlock const &fb) |
void | setFreeToEof () |
virtual | ~PlaybackRawDataProvider () |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
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 &) |
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 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(), i, instance_, lock_, queueSize_, readSem_, runNumber_, and writeSem_.
|
virtual |
Definition at line 58 of file PlaybackRawDataProvider.cc.
References TauDecayModes::dec, destroying_, eventQueue_, evtNumber_, i, instance_, lock_, postReadSem(), postWriteSem(), queueSize_, readSem_, runNumber_, unlock(), and writeSem_.
|
virtual |
Implements edm::EDAnalyzer.
Definition at line 86 of file PlaybackRawDataProvider.cc.
References assert(), count_, FEDRawData::data(), edm::EventID::event(), eventQueue_, evtNumber_, FEDRawDataCollection::FEDData(), freeToEof_, edm::Event::getByLabel(), i, edm::EventBase::id(), edm::HandleBase::isValid(), lock(), FEDNumbering::MAXFEDID, postReadSem(), queueSize_, FEDRawData::resize(), edm::EventID::run(), runNumber_, unlock(), waitWriteSem(), and writeIndex_.
bool PlaybackRawDataProvider::areFilesClosed | ( | ) |
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 128 of file PlaybackRawDataProvider.cc.
|
virtual |
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_.
Referenced by analyze(), and ~PlaybackRawDataProvider().
|
inlineprivate |
Definition at line 47 of file PlaybackRawDataProvider.h.
References writeSem_.
Referenced by getFEDRawData(), setFreeToEof(), and ~PlaybackRawDataProvider().
|
virtual |
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_.
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().