Juggler
Juggling algorithms and event processing using gaudi framework
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
PodioDataSvc Class Reference

#include <PodioDataSvc.h>

Inheritance diagram for PodioDataSvc:
EICDataSvc

Public Types

typedef std::vector< std::pair< std::string, podio::CollectionBase * > > CollRegistry
 

Public Member Functions

virtual StatusCode initialize () override
 Service initialization. More...
 
virtual StatusCode reinitialize () override
 Service reinitialization. More...
 
virtual StatusCode finalize () override
 Service finalization. More...
 
virtual StatusCode clearStore () override
 
 PodioDataSvc (const std::string &name, ISvcLocator *svc)
 Standard Constructor. More...
 
virtual ~PodioDataSvc ()
 Standard Destructor. More...
 
virtual StatusCode registerObject (std::string_view parentPath, std::string_view fullPath, DataObject *pObject) override final
 
StatusCode readCollection (const std::string &collectionName, int collectionID)
 
virtual const CollRegistrygetCollections () const
 
virtual const CollRegistrygetReadCollections () const
 
podio::EventStore & getProvider ()
 
virtual podio::CollectionIDTable * getCollectionIDs ()
 
void setCollectionIDs (podio::CollectionIDTable *collectionIds)
 Set the collection IDs (if reading a file) More...
 
void endOfRead ()
 Resets caches of reader and event store, increases event counter. More...
 
TTree * eventDataTree ()
 

Protected Attributes

std::vector< std::string > m_filenames
 ROOT file name the input is read from. Set by option filename. More...
 
std::string m_filename
 
unsigned m_1stEvtEntry {0}
 

Member Typedef Documentation

◆ CollRegistry

typedef std::vector<std::pair<std::string, podio::CollectionBase*> > PodioDataSvc::CollRegistry

Constructor & Destructor Documentation

◆ PodioDataSvc()

PodioDataSvc::PodioDataSvc ( const std::string &  name,
ISvcLocator *  svc 
)

Standard Constructor.

◆ ~PodioDataSvc()

PodioDataSvc::~PodioDataSvc ( )
virtual

Standard Destructor.

Member Function Documentation

◆ clearStore()

StatusCode PodioDataSvc::clearStore ( )
overridevirtual

◆ endOfRead()

void PodioDataSvc::endOfRead ( )

Resets caches of reader and event store, increases event counter.

◆ eventDataTree()

TTree* PodioDataSvc::eventDataTree ( )
inline

◆ finalize()

StatusCode PodioDataSvc::finalize ( )
overridevirtual

Service finalization.

◆ getCollectionIDs()

virtual podio::CollectionIDTable* PodioDataSvc::getCollectionIDs ( )
inlinevirtual

◆ getCollections()

virtual const CollRegistry& PodioDataSvc::getCollections ( ) const
inlinevirtual

◆ getProvider()

podio::EventStore& PodioDataSvc::getProvider ( )
inline

◆ getReadCollections()

virtual const CollRegistry& PodioDataSvc::getReadCollections ( ) const
inlinevirtual

◆ initialize()

StatusCode PodioDataSvc::initialize ( )
overridevirtual

Service initialization.

Initialize the service.

  • attaches data loader
  • registers input filenames

◆ readCollection()

StatusCode PodioDataSvc::readCollection ( const std::string &  collectionName,
int  collectionID 
)

◆ registerObject()

StatusCode PodioDataSvc::registerObject ( std::string_view  parentPath,
std::string_view  fullPath,
DataObject *  pObject 
)
finaloverridevirtual

Overriding standard behaviour of evt service Register object with the data store.

◆ reinitialize()

StatusCode PodioDataSvc::reinitialize ( )
overridevirtual

Service reinitialization.

◆ setCollectionIDs()

void PodioDataSvc::setCollectionIDs ( podio::CollectionIDTable *  collectionIds)

Set the collection IDs (if reading a file)

Member Data Documentation

◆ m_1stEvtEntry

unsigned PodioDataSvc::m_1stEvtEntry {0}
protected

Jump to nth events at the beginning. Set by option FirstEventEntry This option is helpful when we want to debug an event in the middle of a file

◆ m_filename

std::string PodioDataSvc::m_filename
protected

◆ m_filenames

std::vector<std::string> PodioDataSvc::m_filenames
protected

ROOT file name the input is read from. Set by option filename.


The documentation for this class was generated from the following files: