#include <OptimizedStore.h>
Classes | |
struct | InfoObject |
struct | InfoType |
struct | Pimpl |
Public Member Functions | |
OptimizedStore (const OptimizedStore &) | |
OptimizedStore & | operator= (const OptimizedStore &) |
void | testInvariant () const |
test the invariant of this object | |
OptimizedStore (const std::vector< CP::SystematicSet > &val_requestedSystematics, StoreType *val_store) | |
standard constructor | |
~OptimizedStore () | |
standard destructor | |
const std::vector < CP::SystematicSet > & | requestedSystematics () const |
the list of all requested systematics | |
const CP::SystematicSet & | objectSystematics (ObjectType type) const |
the list of all systematics for the given object type and the currently registered tools | |
StatusCode | prepareCopy (ObjectType type, std::size_t index, std::size_t origIndex) |
make a preparation copy from the original index to the new index | |
StatusCode | initializeIndices (const std::vector< OptimizedObjects * > &objects, unsigned inputTypes, unsigned outputTypes, AnalysisStep step) |
initialize the indices on the given list of systematics objects | |
void | clearData () |
clear out all the data in anticipation of the next event | |
StatusCode | finalInit () |
do all the final initialization | |
unsigned | objectTypes () const |
the defined object types | |
void | fillEventData (ObjectType type, unsigned index, const CP::SystematicSet &sys, EventData &eventData) const |
fill the given EventData structure for the given systematic | |
void * | getVoid (ObjectType type, std::size_t index) const |
StatusCode | addCopy (ObjectType type, std::size_t index, const std::string &name) |
StatusCode | addNew (ObjectType type, std::size_t index) |
Static Public Attributes | |
static const std::size_t | noIndex = std::size_t (-1) |
the index to use when we do not use an object type |
A wrapper to the event store for the optimized scheduler.
Manages systematics information and holds pointers to all collections at all processing stages and systematics.
ana::OptimizedStore::OptimizedStore | ( | const std::vector< CP::SystematicSet > & | val_requestedSystematics, | |
StoreType * | val_store | |||
) |
standard constructor
ana::OptimizedStore::~OptimizedStore | ( | ) |
standard destructor
StatusCode ana::OptimizedStore::addCopy | ( | ObjectType | type, | |
std::size_t | index, | |||
const std::string & | name | |||
) |
add a shallow copy of the input container with the given name
StatusCode ana::OptimizedStore::addNew | ( | ObjectType | type, | |
std::size_t | index | |||
) |
add a new container of the given type
void ana::OptimizedStore::clearData | ( | ) |
clear out all the data in anticipation of the next event
void ana::OptimizedStore::fillEventData | ( | ObjectType | type, | |
unsigned | index, | |||
const CP::SystematicSet & | sys, | |||
EventData & | eventData | |||
) | const |
StatusCode ana::OptimizedStore::finalInit | ( | ) |
do all the final initialization
void * ana::OptimizedStore::getVoid | ( | ObjectType | type, | |
std::size_t | index | |||
) | const |
get the object or object container for the given object type or NULL if it hasn't been filled (yet).
StatusCode ana::OptimizedStore::initializeIndices | ( | const std::vector< OptimizedObjects * > & | objects, | |
unsigned | inputTypes, | |||
unsigned | outputTypes, | |||
AnalysisStep | step | |||
) |
initialize the indices on the given list of systematics objects
const CP::SystematicSet & ana::OptimizedStore::objectSystematics | ( | ObjectType | type | ) | const |
the list of all systematics for the given object type and the currently registered tools
unsigned ana::OptimizedStore::objectTypes | ( | ) | const |
the defined object types
StatusCode ana::OptimizedStore::prepareCopy | ( | ObjectType | type, | |
std::size_t | index, | |||
std::size_t | origIndex | |||
) |
make a preparation copy from the original index to the new index
This is used whenever we create new systematics for an object type.
const std::vector< CP::SystematicSet > & ana::OptimizedStore::requestedSystematics | ( | ) | const |
the list of all requested systematics
void ana::OptimizedStore::testInvariant | ( | ) | const |
test the invariant of this object