The Gaudi Framework  master (42b00024)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
EventCollectionSelector Class Reference

Definition of class EventCollectionSelector. More...

#include </builds/gaudi/Gaudi/GaudiCoreSvc/src/EventSelector/EventCollectionSelector.h>

Inheritance diagram for EventCollectionSelector:
Collaboration diagram for EventCollectionSelector:

Classes

class  MyContextType
 

Public Member Functions

StatusCode initialize () override
 Service override: Initialize service. More...
 
StatusCode finalize () override
 Service override: Finalize Service. More...
 
StatusCode createContext (Context *&refpCtxt) const override
 Create a new event loop context. More...
 
StatusCode next (Context &refCtxt) const override
 Get next iteration item from the event loop context. More...
 
StatusCode next (Context &refCtxt, int jump) const override
 Get next iteration item from the event loop context, but skip jump elements. More...
 
StatusCode previous (Context &refCtxt) const override
 Get previous iteration item from the event loop context. More...
 
StatusCode previous (Context &refCtxt, int jump) const override
 Get previous iteration item from the event loop context, but skip jump elements. More...
 
StatusCode rewind (Context &refCtxt) const override
 Rewind the dataset. More...
 
StatusCode createAddress (const Context &refCtxt, IOpaqueAddress *&refpAddr) const override
 Create new Opaque address corresponding to the current record. More...
 
StatusCode releaseContext (Context *&refCtxt) const override
 Release existing event iteration context. More...
 
StatusCode resetCriteria (const std::string &cr, Context &c) const override
 Will set a new criteria for the selection of the next list of events and will change the state of the context in a way to point to the new list. More...
 
StatusCode last (Context &refCtxt) const override
 Access last item in the iteration. More...
 
virtual StatusCode connectCollection (MyContextType *ctxt) const
 Connect collection to selector. More...
 
virtual StatusCode connectDataSource (const std::string &db, const std::string &typ) const
 Connect collection's data source to selector. More...
 
virtual StatusCode connectTuple (const std::string &nam, const std::string &itName, NTuple::Tuple *&tup, std::optional< NTuple::Item< IOpaqueAddress * >> &item) const
 Connect to existing N-tuple. More...
 
virtual StatusCode connectStatement (const std::string &typ, const std::string &crit, INTuple *tuple) const
 Connect selection statement to refine data access. More...
 
virtual StatusCode getNextRecord (NTuple::Tuple *tuple) const
 Read next record of the N-tuple. More...
 
virtual StatusCode getPreviousRecord (NTuple::Tuple *tuple) const
 Read next record of the N-tuple. More...
 
- Public Member Functions inherited from extends< Service, IEvtSelector >
void * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast. More...
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface. More...
 
std::vector< std::string > getInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames. More...
 
- Public Member Functions inherited from Service
const std::string & name () const override
 Retrieve name of the service
More...
 
StatusCode configure () override
 
StatusCode initialize () override
 
StatusCode start () override
 
StatusCode stop () override
 
StatusCode finalize () override
 
StatusCode terminate () override
 
Gaudi::StateMachine::State FSMState () const override
 
Gaudi::StateMachine::State targetFSMState () const override
 
StatusCode reinitialize () override
 
StatusCode restart () override
 
StatusCode sysInitialize () override
 Initialize Service
More...
 
StatusCode sysStart () override
 Initialize Service
More...
 
StatusCode sysStop () override
 Initialize Service
More...
 
StatusCode sysFinalize () override
 Finalize Service
More...
 
StatusCode sysReinitialize () override
 Re-initialize the Service. More...
 
StatusCode sysRestart () override
 Re-initialize the Service. More...
 
 Service (std::string name, ISvcLocator *svcloc)
 Standard Constructor
More...
 
SmartIF< ISvcLocator > & serviceLocator () const override
 Retrieve pointer to service locator
More...
 
template<typename IFace = IService>
SmartIF< IFace > service (const std::string &name, bool createIf=true) const
 
template<class T >
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
 
template<class T >
StatusCode declareTool (ToolHandle< T > &handle, bool createIf=true)
 
template<class T >
StatusCode declareTool (ToolHandle< T > &handle, const std::string &toolTypeAndName, bool createIf=true)
 Declare used tool. More...
 
template<class T >
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, ToolHandleArray< T > &hndlArr, const std::string &doc="none")
 
template<class T >
void addToolsArray (ToolHandleArray< T > &hndlArr)
 
const std::vector< IAlgTool * > & tools () const
 
SmartIF< IAuditorSvc > & auditorSvc () const
 The standard auditor service.May not be invoked before sysInitialize() has been invoked. More...
 
- Public Member Functions inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
 PropertyHolder ()=default
 
Gaudi::Details::PropertyBasedeclareProperty (Gaudi::Details::PropertyBase &prop)
 Declare a property. More...
 
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, Gaudi::Property< TYPE, VERIFIER, HANDLERS > &prop, const std::string &doc="none")
 Declare a PropertyBase instance setting name and documentation. More...
 
 requires (!Gaudi::Details::is_gaudi_property_v< TYPE >) Gaudi
 Helper to wrap a regular data member and use it as a regular property. More...
 
Gaudi::Details::PropertyBasedeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="")
 Declare a remote property. More...
 
StatusCode setProperty (const std::string &name, const Gaudi::Details::PropertyBase &p) override
 set the property from another property with a different name More...
 
StatusCode setProperty (const std::string &s) override
 set the property from the formatted string More...
 
StatusCode setProperty (const Gaudi::Details::PropertyBase &p)
 Set the property from a property. More...
 
virtual StatusCode setProperty (const std::string &name, const Gaudi::Details::PropertyBase &p)=0
 Set the property from a property with a different name. More...
 
virtual StatusCode setProperty (const std::string &s)=0
 Set the property by string. More...
 
StatusCode setProperty (const std::string &name, const char *v)
 Special case for string literals. More...
 
StatusCode setProperty (const std::string &name, const std::string &v)
 Special case for std::string. More...
 
StatusCode setPropertyRepr (const std::string &n, const std::string &r) override
 set the property from name and value string representation More...
 
StatusCode getProperty (Gaudi::Details::PropertyBase *p) const override
 get the property More...
 
const Gaudi::Details::PropertyBasegetProperty (std::string_view name) const override
 get the property by name More...
 
StatusCode getProperty (std::string_view n, std::string &v) const override
 convert the property to the string More...
 
const std::vector< Gaudi::Details::PropertyBase * > & getProperties () const override
 get all properties More...
 
bool hasProperty (std::string_view name) const override
 Return true if we have a property with the given name. More...
 
Gaudi::Details::PropertyBaseproperty (std::string_view name) const
 \fixme property and bindPropertiesTo should be protected More...
 
void bindPropertiesTo (Gaudi::Interfaces::IOptionsSvc &optsSvc)
 
 PropertyHolder (const PropertyHolder &)=delete
 
PropertyHolderoperator= (const PropertyHolder &)=delete
 
- Public Member Functions inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
MSG::Level msgLevel () const
 get the cached level (originally extracted from the embedded MsgStream) More...
 
bool msgLevel (MSG::Level lvl) const
 get the output level from the embedded MsgStream More...
 

Protected Attributes

SmartIF< INTupleSvcm_tupleSvc
 Reference to Tuple service. More...
 
SmartIF< IAddressCreatorm_pAddrCreator
 
Gaudi::Property< std::string > m_tupleSvcName
 
Gaudi::Property< std::string > m_authentication { this, "Authentication", "", "authentication string (if needed)" }
 
Gaudi::Property< std::string > m_cntName { this, "Container", "B2PiPi", "container name" }
 
Gaudi::Property< std::string > m_itemName { this, "Item", "Address", "item name" }
 
Gaudi::Property< std::string > m_criteria { this, "Criteria", "", "criteria" }
 
Gaudi::Property< std::string > m_database { this, "DB", "", "datafile name" }
 
Gaudi::Property< std::string > m_dbType { this, "DbType", "", "database type identifier" }
 
Gaudi::Property< std::string > m_dbSvc { this, "DbService", "", "database service (exclusive property with db type)" }
 
Gaudi::Property< std::string > m_statement { this, "Function", "NTuple::Selector", "selector name" }
 
- Protected Attributes inherited from Service
Gaudi::StateMachine::State m_state = Gaudi::StateMachine::OFFLINE
 Service state
More...
 
Gaudi::StateMachine::State m_targetState = Gaudi::StateMachine::OFFLINE
 Service state
More...
 
Gaudi::Property< int > m_outputLevel { this, "OutputLevel", MSG::NIL, "output level" }
 flag indicating whether ToolHandle tools have been added to m_tools More...
 
Gaudi::Property< bool > m_auditorInitialize { this, "AuditInitialize", false, "trigger auditor on initialize()" }
 
Gaudi::Property< bool > m_auditorStart { this, "AuditStart", false, "trigger auditor on start()" }
 
Gaudi::Property< bool > m_auditorStop { this, "AuditStop", false, "trigger auditor on stop()" }
 
Gaudi::Property< bool > m_auditorFinalize { this, "AuditFinalize", false, "trigger auditor on finalize()" }
 
Gaudi::Property< bool > m_auditorReinitialize { this, "AuditReinitialize", false, "trigger auditor on reinitialize()" }
 
Gaudi::Property< bool > m_auditorRestart { this, "AuditRestart", false, "trigger auditor on restart()" }
 
Gaudi::Property< bool > m_autoRetrieveTools
 
Gaudi::Property< bool > m_checkToolDeps
 
SmartIF< IAuditorSvcm_pAuditorSvc
 Auditor Service
More...
 

Additional Inherited Members

- Public Types inherited from extends< Service, IEvtSelector >
using base_class = extends
 Typedef to this class. More...
 
using extend_interfaces_base = extend_interfaces< Interfaces... >
 Typedef to the base of this class. More...
 
- Public Types inherited from Service
using Factory = Gaudi::PluginService::Factory< IService *(const std::string &, ISvcLocator *)>
 
- Public Types inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
using PropertyHolderImpl = PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
 Typedef used to refer to this class from derived classes, as in. More...
 
- Public Types inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
using base_class = CommonMessaging
 
- Public Types inherited from extend_interfaces< Interfaces... >
using ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids... >::type
 take union of the ext_iids of all Interfaces... More...
 
- Protected Member Functions inherited from Service
std::vector< IAlgTool * > & tools ()
 
 ~Service () override
 Standard Destructor
More...
 
int outputLevel () const
 get the Service's output level More...
 
- Protected Member Functions inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
MSG::Level setUpMessaging () const
 Set up local caches. More...
 
MSG::Level resetMessaging ()
 Reinitialize internal states. More...
 
void updateMsgStreamOutputLevel (int level)
 Update the output level of the cached MsgStream. More...
 

Detailed Description

Definition of class EventCollectionSelector.

Basic event selector service. The event selector service itself is able to connect other services to attached streams.

History: +------—+-------------------------------------------—+------—+ | Date | Comment | Who | +------—+-------------------------------------------—+------—+ | 3/10/00 | Initial version | M.Frank | +------—+-------------------------------------------—+------—+

Author
Markus Frank
Version
1.0

Definition at line 54 of file EventCollectionSelector.h.

Member Function Documentation

◆ connectCollection()

StatusCode EventCollectionSelector::connectCollection ( MyContextType ctxt) const
virtual

Connect collection to selector.

Definition at line 193 of file EventCollectionSelector.cpp.

193  {
194  if ( ctxt ) {
196  if ( status.isSuccess() ) {
197  status = connectTuple( m_cntName, m_itemName, ctxt->tuple, ctxt->item );
198  if ( status.isSuccess() ) {
199  status = connectStatement( m_statement, m_criteria, ctxt->tuple );
200  if ( status.isSuccess() ) {
201  *( ctxt->item ) = 0;
202  return status;
203  }
204  }
205  }
206  return status;
207  }
208  return StatusCode::FAILURE;
209 }

◆ connectDataSource()

StatusCode EventCollectionSelector::connectDataSource ( const std::string &  db,
const std::string &  typ 
) const
virtual

Connect collection's data source to selector.

Definition at line 95 of file EventCollectionSelector.cpp.

95  {
98  if ( svc && !db.empty() ) {
99  std::string ident = name() + ' ';
100  ident += "DATAFILE='" + m_database.value().substr( 5 ) + "' ";
101  if ( !m_dbSvc.empty() )
102  ident += "SVC='" + m_dbSvc + "' ";
103  else
104  ident += "TYP='" + m_dbType + "' ";
105  ident += "OPT='READ' ";
106  if ( m_authentication.length() > 0 ) { ident += "AUTH='" + m_authentication + "' "; }
107  status = svc->connect( ident );
108  }
109  return status;
110 }

◆ connectStatement()

StatusCode EventCollectionSelector::connectStatement ( const std::string &  typ,
const std::string &  crit,
INTuple tuple 
) const
virtual

Connect selection statement to refine data access.

Definition at line 132 of file EventCollectionSelector.cpp.

133  {
134  std::string seltyp = typ;
135  if ( !seltyp.empty() || !crit.empty() ) {
136  if ( !crit.empty() && seltyp.length() == 0 ) seltyp = "NTuple::Selector";
137  SmartIF<ISelectStatement> stmt( ObjFactory::create( seltyp, serviceLocator() ).release() );
138  if ( stmt ) {
139  if ( !crit.empty() ) stmt->setCriteria( crit );
140  tuple->attachSelector( stmt ).ignore();
141  return StatusCode::SUCCESS;
142  }
143  return StatusCode::FAILURE;
144  }
145  return StatusCode::SUCCESS;
146 }

◆ connectTuple()

StatusCode EventCollectionSelector::connectTuple ( const std::string &  nam,
const std::string &  itName,
NTuple::Tuple *&  tup,
std::optional< NTuple::Item< IOpaqueAddress * >> &  item 
) const
virtual

Connect to existing N-tuple.

Definition at line 113 of file EventCollectionSelector.cpp.

115  {
116  std::string top = "/NTUPLES/" + name() + '/' + nam;
117  StatusCode status = m_tupleSvc->retrieveObject( top, (DataObject*&)tup );
118  if ( status.isSuccess() ) {
119  item.emplace();
120  status = tup->item( itName, *item );
121  if ( status.isSuccess() ) return status;
122  error() << "Item " << itName << " is not part of the collection:" << top << endmsg;
123  item.reset();
124  } else {
125  error() << "Cannot connect to collection:" << top << endmsg;
126  }
127  tup = nullptr;
128  return status;
129 }

◆ createAddress()

StatusCode EventCollectionSelector::createAddress ( const Context &  refCtxt,
IOpaqueAddress *&  refpAddr 
) const
override

Create new Opaque address corresponding to the current record.

Parameters
refCtxt[IN/OUT] Reference to the context
refpAddr[OUT] Reference to address pointer
Returns
StatusCode indicating success or failure

Definition at line 266 of file EventCollectionSelector.cpp.

266  {
267  const MyContextType* ctxt = dynamic_cast<const MyContextType*>( &refCtxt );
268  if ( ctxt ) {
269  IOpaqueAddress* pA = *( ctxt->item );
270  if ( pA ) {
271  IOpaqueAddress* pAddress = nullptr;
272  StatusCode status = m_pAddrCreator->createAddress( pA->svcType(), pA->clID(), pA->par(), pA->ipar(), pAddress );
273  if ( status.isSuccess() ) {
274  refpAddr = pAddress;
275  return StatusCode::SUCCESS;
276  } else {
277  error() << "Failed to access " << pA->par()[0] << ":" << pA->par()[1] << " SvcTyp:" << long( pA->svcType() )
278  << " CLID:" << pA->clID() << endmsg;
279  }
280  }
281  }
282  return StatusCode::FAILURE;
283 }

◆ createContext()

StatusCode EventCollectionSelector::createContext ( Context *&  refpCtxt) const
override

Create a new event loop context.

Parameters
refpCtxt[IN/OUT] Reference to pointer to store the context
Returns
StatusCode indicating success or failure

Definition at line 220 of file EventCollectionSelector.cpp.

220  {
221  refpCtxt = nullptr;
222  auto ctxt = std::make_unique<MyContextType>();
223  StatusCode status = connectCollection( ctxt.get() );
224  if ( !status.isSuccess() ) {
225  error() << "Unable to connect Collection file \"" << m_database << "\"" << endmsg;
226  return status;
227  }
228  refpCtxt = ctxt.release();
229  return StatusCode::SUCCESS;
230 }

◆ finalize()

StatusCode EventCollectionSelector::finalize ( )
override

Service override: Finalize Service.

Definition at line 212 of file EventCollectionSelector.cpp.

212  {
213  // release services
214  m_pAddrCreator = nullptr;
215  m_tupleSvc = nullptr;
216  return Service::finalize();
217 }

◆ getNextRecord()

StatusCode EventCollectionSelector::getNextRecord ( NTuple::Tuple tuple) const
virtual

Read next record of the N-tuple.

Definition at line 149 of file EventCollectionSelector.cpp.

149  {
151  if ( tuple ) {
152  do {
153  status = m_tupleSvc->readRecord( tuple );
154  if ( status.isSuccess() ) {
155  ISelectStatement* statement = tuple->selector();
156  bool use_it = ( statement ) ? ( *statement )( tuple ) : true;
157  if ( use_it ) { return status; }
158  }
159  } while ( status.isSuccess() );
160  }
161  return status;
162 }

◆ getPreviousRecord()

StatusCode EventCollectionSelector::getPreviousRecord ( NTuple::Tuple tuple) const
virtual

Read next record of the N-tuple.

Read previous record of the N-tuple.

Definition at line 165 of file EventCollectionSelector.cpp.

165  {
167  if ( tuple ) {
168  IRegistry* pReg = tuple->registry();
169  if ( pReg ) {
170  IOpaqueAddress* pAddr = pReg->address();
171  if ( pAddr ) {
172  long* ip = (long*)pAddr->ipar();
173  do {
174  if ( ip[1] > 1 ) {
175  ip[1] -= 2;
176  status = m_tupleSvc->readRecord( tuple );
177  if ( status.isSuccess() ) {
178  ISelectStatement* statement = tuple->selector();
179  bool use_it = ( statement ) ? ( *statement )( tuple ) : true;
180  if ( use_it ) { return status; }
181  }
182  } else {
183  return StatusCode::FAILURE;
184  }
185  } while ( status.isSuccess() );
186  }
187  }
188  }
189  return StatusCode::FAILURE;
190 }

◆ initialize()

StatusCode EventCollectionSelector::initialize ( )
override

Service override: Initialize service.

Definition at line 73 of file EventCollectionSelector.cpp.

73  {
74  // Initialize base class
76  if ( !status.isSuccess() ) {
77  error() << "Error initializing base class Service!" << endmsg;
78  return status;
79  }
80  m_pAddrCreator = serviceLocator()->service( "EventPersistencySvc" );
81  if ( !m_pAddrCreator ) {
82  error() << "Unable to locate IAddressCreator interface of "
83  << "EventPersistencySvc" << endmsg;
84  return status;
85  }
87  if ( !m_tupleSvc ) {
88  error() << "Unable to locate INTupleSvc interface of " << m_tupleSvcName << endmsg;
89  return status;
90  }
91  return status;
92 }

◆ last()

StatusCode EventCollectionSelector::last ( Context &  refCtxt) const
override

Access last item in the iteration.

Parameters
refCtxt[IN/OUT] Reference to the Context object.
Returns
StatusCode indicating success or failure

Definition at line 308 of file EventCollectionSelector.cpp.

308 { return StatusCode::FAILURE; }

◆ next() [1/2]

StatusCode EventCollectionSelector::next ( Context &  refCtxt) const
override

Get next iteration item from the event loop context.

Parameters
refCtxt[IN/OUT] Reference to the context
Returns
StatusCode indicating success or failure

Definition at line 233 of file EventCollectionSelector.cpp.

233 { return next( refCtxt, 1 ); }

◆ next() [2/2]

StatusCode EventCollectionSelector::next ( Context &  refCtxt,
int  jump 
) const
override

Get next iteration item from the event loop context, but skip jump elements.

Parameters
refCtxt[IN/OUT] Reference to the context
Returns
StatusCode indicating success or failure

Definition at line 236 of file EventCollectionSelector.cpp.

236  {
237  MyContextType* ctxt = dynamic_cast<MyContextType*>( &refCtxt );
238  if ( ctxt ) {
239  *( ctxt->item ) = ctxt->addressBuffer;
241  for ( int i = 0; i < jump && sc.isSuccess(); ++i ) { sc = getNextRecord( ctxt->tuple ); }
242  return sc;
243  }
244  return StatusCode::FAILURE;
245 }

◆ previous() [1/2]

StatusCode EventCollectionSelector::previous ( Context &  refCtxt) const
override

Get previous iteration item from the event loop context.

Parameters
refCtxt[IN/OUT] Reference to the context
jump[IN] Number of events to be skipped
Returns
StatusCode indicating success or failure

Definition at line 248 of file EventCollectionSelector.cpp.

248 { return previous( refCtxt, 1 ); }

◆ previous() [2/2]

StatusCode EventCollectionSelector::previous ( Context &  refCtxt,
int  jump 
) const
override

Get previous iteration item from the event loop context, but skip jump elements.

Parameters
refCtxt[IN/OUT] Reference to the context
jump[IN] Number of events to be skipped
Returns
StatusCode indicating success or failure

Definition at line 251 of file EventCollectionSelector.cpp.

251  {
252  MyContextType* ctxt = dynamic_cast<MyContextType*>( &refCtxt );
253  if ( ctxt ) {
254  *( ctxt->item ) = ctxt->addressBuffer;
256  for ( int i = 0; i < jump && sc.isSuccess(); ++i ) { sc = getPreviousRecord( ctxt->tuple ); }
257  return sc;
258  }
259  return StatusCode::FAILURE;
260 }

◆ releaseContext()

StatusCode EventCollectionSelector::releaseContext ( Context *&  refCtxt) const
override

Release existing event iteration context.

Parameters
refCtxt[IN/OUT] Reference to the context
Returns
StatusCode indicating success or failure

Definition at line 286 of file EventCollectionSelector.cpp.

286  {
287  MyContextType* ctxt = dynamic_cast<MyContextType*>( refCtxt );
288  if ( ctxt ) {
289  delete ctxt;
290  ctxt = nullptr;
291  return StatusCode::SUCCESS;
292  }
293  return StatusCode::FAILURE;
294 }

◆ resetCriteria()

StatusCode EventCollectionSelector::resetCriteria ( const std::string &  cr,
Context &  c 
) const
override

Will set a new criteria for the selection of the next list of events and will change the state of the context in a way to point to the new list.

Parameters
crThe new criteria string.
cReference pointer to the Context object.
Returns
StatusCode indicating success or failure

Definition at line 298 of file EventCollectionSelector.cpp.

298  {
299  MyContextType* ctxt = dynamic_cast<MyContextType*>( &refCtxt );
300  if ( ctxt ) {
301  ctxt->criteria = cr;
302  return StatusCode::SUCCESS;
303  }
304  return StatusCode::FAILURE;
305 }

◆ rewind()

StatusCode EventCollectionSelector::rewind ( Context &  refCtxt) const
override

Rewind the dataset.

Parameters
refCtxt[IN/OUT] Reference to the context
Returns
StatusCode indicating success or failure

Definition at line 263 of file EventCollectionSelector.cpp.

263 { return StatusCode::FAILURE; }

Member Data Documentation

◆ m_authentication

Gaudi::Property<std::string> EventCollectionSelector::m_authentication { this, "Authentication", "", "authentication string (if needed)" }
protected

Definition at line 89 of file EventCollectionSelector.h.

◆ m_cntName

Gaudi::Property<std::string> EventCollectionSelector::m_cntName { this, "Container", "B2PiPi", "container name" }
protected

Definition at line 90 of file EventCollectionSelector.h.

◆ m_criteria

Gaudi::Property<std::string> EventCollectionSelector::m_criteria { this, "Criteria", "", "criteria" }
protected

Definition at line 92 of file EventCollectionSelector.h.

◆ m_database

Gaudi::Property<std::string> EventCollectionSelector::m_database { this, "DB", "", "datafile name" }
protected

Definition at line 93 of file EventCollectionSelector.h.

◆ m_dbSvc

Gaudi::Property<std::string> EventCollectionSelector::m_dbSvc { this, "DbService", "", "database service (exclusive property with db type)" }
protected

Definition at line 95 of file EventCollectionSelector.h.

◆ m_dbType

Gaudi::Property<std::string> EventCollectionSelector::m_dbType { this, "DbType", "", "database type identifier" }
protected

Definition at line 94 of file EventCollectionSelector.h.

◆ m_itemName

Gaudi::Property<std::string> EventCollectionSelector::m_itemName { this, "Item", "Address", "item name" }
protected

Definition at line 91 of file EventCollectionSelector.h.

◆ m_pAddrCreator

SmartIF<IAddressCreator> EventCollectionSelector::m_pAddrCreator
mutableprotected

Definition at line 84 of file EventCollectionSelector.h.

◆ m_statement

Gaudi::Property<std::string> EventCollectionSelector::m_statement { this, "Function", "NTuple::Selector", "selector name" }
protected

Definition at line 96 of file EventCollectionSelector.h.

◆ m_tupleSvc

SmartIF<INTupleSvc> EventCollectionSelector::m_tupleSvc
mutableprotected

Reference to Tuple service.

Definition at line 83 of file EventCollectionSelector.h.

◆ m_tupleSvcName

Gaudi::Property<std::string> EventCollectionSelector::m_tupleSvcName
protected
Initial value:
{ this, "CnvService", "EvtTupleSvc",
"name of the event collection service" }

Definition at line 87 of file EventCollectionSelector.h.


The documentation for this class was generated from the following files:
EventCollectionSelector::m_dbType
Gaudi::Property< std::string > m_dbType
Definition: EventCollectionSelector.h:94
Service::initialize
StatusCode initialize() override
Definition: Service.cpp:119
IOpaqueAddress::par
virtual const std::string * par() const =0
Retrieve String parameters.
EventCollectionSelector::connectDataSource
virtual StatusCode connectDataSource(const std::string &db, const std::string &typ) const
Connect collection's data source to selector.
Definition: EventCollectionSelector.cpp:95
StatusCode::isSuccess
bool isSuccess() const
Definition: StatusCode.h:315
EventCollectionSelector::m_tupleSvc
SmartIF< INTupleSvc > m_tupleSvc
Reference to Tuple service.
Definition: EventCollectionSelector.h:83
IOpaqueAddress
Definition: IOpaqueAddress.h:33
IOpaqueAddress::svcType
virtual long svcType() const =0
Retrieve service type.
EventCollectionSelector::m_database
Gaudi::Property< std::string > m_database
Definition: EventCollectionSelector.h:93
ISelectStatement
Definition: ISelectStatement.h:42
conf.release
string release
Definition: conf.py:27
EventCollectionSelector::m_itemName
Gaudi::Property< std::string > m_itemName
Definition: EventCollectionSelector.h:91
IRegistry
Definition: IRegistry.h:32
EventCollectionSelector::next
StatusCode next(Context &refCtxt) const override
Get next iteration item from the event loop context.
Definition: EventCollectionSelector.cpp:233
Service::finalize
StatusCode finalize() override
Definition: Service.cpp:224
EventCollectionSelector::m_pAddrCreator
SmartIF< IAddressCreator > m_pAddrCreator
Definition: EventCollectionSelector.h:84
INTuple::attachSelector
virtual StatusCode attachSelector(ISelectStatement *sel)=0
Attach selector.
Service::name
const std::string & name() const override
Retrieve name of the service
Definition: Service.cpp:334
StatusCode
Definition: StatusCode.h:65
IOpaqueAddress::clID
virtual const CLID & clID() const =0
Retrieve class information from link.
Gaudi::Property::value
const ValueType & value() const
Definition: Property.h:235
EventCollectionSelector::previous
StatusCode previous(Context &refCtxt) const override
Get previous iteration item from the event loop context.
Definition: EventCollectionSelector.cpp:248
SmartIF
Definition: IConverter.h:25
EventCollectionSelector::getNextRecord
virtual StatusCode getNextRecord(NTuple::Tuple *tuple) const
Read next record of the N-tuple.
Definition: EventCollectionSelector.cpp:149
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:202
EventCollectionSelector::connectTuple
virtual StatusCode connectTuple(const std::string &nam, const std::string &itName, NTuple::Tuple *&tup, std::optional< NTuple::Item< IOpaqueAddress * >> &item) const
Connect to existing N-tuple.
Definition: EventCollectionSelector.cpp:113
EventCollectionSelector::connectStatement
virtual StatusCode connectStatement(const std::string &typ, const std::string &crit, INTuple *tuple) const
Connect selection statement to refine data access.
Definition: EventCollectionSelector.cpp:132
EventCollectionSelector::connectCollection
virtual StatusCode connectCollection(MyContextType *ctxt) const
Connect collection to selector.
Definition: EventCollectionSelector.cpp:193
StatusCode::ignore
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
Definition: StatusCode.h:140
INTuple::selector
virtual ISelectStatement * selector()=0
Access selector.
IRegistry::address
virtual IOpaqueAddress * address() const =0
Retrieve opaque storage address.
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
EventCollectionSelector::getPreviousRecord
virtual StatusCode getPreviousRecord(NTuple::Tuple *tuple) const
Read next record of the N-tuple.
Definition: EventCollectionSelector.cpp:165
EventCollectionSelector::m_cntName
Gaudi::Property< std::string > m_cntName
Definition: EventCollectionSelector.h:90
EventCollectionSelector::m_dbSvc
Gaudi::Property< std::string > m_dbSvc
Definition: EventCollectionSelector.h:95
DataObject
Definition: DataObject.h:37
GaudiConfig2.semantics.ident
ident
Definition: semantics.py:203
EventCollectionSelector::m_tupleSvcName
Gaudi::Property< std::string > m_tupleSvcName
Definition: EventCollectionSelector.h:87
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
EventCollectionSelector::m_criteria
Gaudi::Property< std::string > m_criteria
Definition: EventCollectionSelector.h:92
AlgSequencer.top
top
Definition: AlgSequencer.py:37
DataObject::registry
IRegistry * registry() const
Get pointer to Registry.
Definition: DataObject.h:79
EventCollectionSelector::m_statement
Gaudi::Property< std::string > m_statement
Definition: EventCollectionSelector.h:96
IOpaqueAddress::ipar
virtual const unsigned long * ipar() const =0
Access to generic link parameters.
Service::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator
Definition: Service.cpp:337
EventCollectionSelector::m_authentication
Gaudi::Property< std::string > m_authentication
Definition: EventCollectionSelector.h:89