EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
InsertingVisitor Struct Reference

Public Member Functions

 InsertingVisitor (JEvent &event, const std::string &collection_name)
 
template<typename T >
void operator() (const T &collection)
 

Public Attributes

JEvent & m_event
 
const std::string & m_collection_name
 

Detailed Description

This datamodel visitor will insert a PODIO collection into a JEvent. This allows us to access the PODIO data through JEvent::Get and JEvent::GetCollection. This makes it transparent to downstream factories whether the data was loaded from file, or calculated. InsertingVisitor is called in GetEvent()

Parameters
eventJANA JEvent to copy the data objects into
collection_namename of the collection which will be used as the factory tag for these objects

Constructor & Destructor Documentation

◆ InsertingVisitor()

InsertingVisitor::InsertingVisitor ( JEvent &  event,
const std::string &  collection_name 
)
inline

Member Function Documentation

◆ operator()()

template<typename T >
void InsertingVisitor::operator() ( const T &  collection)
inline

Member Data Documentation

◆ m_collection_name

const std::string& InsertingVisitor::m_collection_name

◆ m_event

JEvent& InsertingVisitor::m_event

The documentation for this struct was generated from the following file: