The Gaudi Framework  v40r0 (475e45c1)
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 const * 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
 
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 41 of file EventCollectionSelector.h.

Member Function Documentation

◆ connectCollection()

StatusCode EventCollectionSelector::connectCollection ( MyContextType ctxt) const
virtual

Connect collection to selector.

Definition at line 190 of file EventCollectionSelector.cpp.

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

◆ connectDataSource()

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

Connect collection's data source to selector.

Definition at line 92 of file EventCollectionSelector.cpp.

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

◆ 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 129 of file EventCollectionSelector.cpp.

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

◆ 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 110 of file EventCollectionSelector.cpp.

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

◆ 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 263 of file EventCollectionSelector.cpp.

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

◆ 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 217 of file EventCollectionSelector.cpp.

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

◆ finalize()

StatusCode EventCollectionSelector::finalize ( )
override

Service override: Finalize Service.

Definition at line 209 of file EventCollectionSelector.cpp.

209  {
210  // release services
211  m_pAddrCreator = nullptr;
212  m_tupleSvc = nullptr;
213  return Service::finalize();
214 }

◆ getNextRecord()

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

Read next record of the N-tuple.

Definition at line 146 of file EventCollectionSelector.cpp.

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

◆ 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 162 of file EventCollectionSelector.cpp.

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

◆ initialize()

StatusCode EventCollectionSelector::initialize ( )
override

Service override: Initialize service.

Definition at line 70 of file EventCollectionSelector.cpp.

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

◆ 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 305 of file EventCollectionSelector.cpp.

305 { 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 230 of file EventCollectionSelector.cpp.

230 { 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 233 of file EventCollectionSelector.cpp.

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

◆ 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 245 of file EventCollectionSelector.cpp.

245 { 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 248 of file EventCollectionSelector.cpp.

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

◆ 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 283 of file EventCollectionSelector.cpp.

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

◆ 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 295 of file EventCollectionSelector.cpp.

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

◆ 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 260 of file EventCollectionSelector.cpp.

260 { 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 76 of file EventCollectionSelector.h.

◆ m_cntName

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

Definition at line 77 of file EventCollectionSelector.h.

◆ m_criteria

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

Definition at line 79 of file EventCollectionSelector.h.

◆ m_database

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

Definition at line 80 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 82 of file EventCollectionSelector.h.

◆ m_dbType

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

Definition at line 81 of file EventCollectionSelector.h.

◆ m_itemName

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

Definition at line 78 of file EventCollectionSelector.h.

◆ m_pAddrCreator

SmartIF<IAddressCreator> EventCollectionSelector::m_pAddrCreator
mutableprotected

Definition at line 71 of file EventCollectionSelector.h.

◆ m_statement

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

Definition at line 83 of file EventCollectionSelector.h.

◆ m_tupleSvc

SmartIF<INTupleSvc> EventCollectionSelector::m_tupleSvc
mutableprotected

Reference to Tuple service.

Definition at line 70 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 74 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:81
Service::initialize
StatusCode initialize() override
Definition: Service.cpp:118
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:92
StatusCode::isSuccess
bool isSuccess() const
Definition: StatusCode.h:314
EventCollectionSelector::m_tupleSvc
SmartIF< INTupleSvc > m_tupleSvc
Reference to Tuple service.
Definition: EventCollectionSelector.h:70
IOpaqueAddress
Definition: IOpaqueAddress.h:28
IOpaqueAddress::svcType
virtual long svcType() const =0
Retrieve service type.
EventCollectionSelector::m_database
Gaudi::Property< std::string > m_database
Definition: EventCollectionSelector.h:80
ISelectStatement
Definition: ISelectStatement.h:38
conf.release
string release
Definition: conf.py:27
EventCollectionSelector::m_itemName
Gaudi::Property< std::string > m_itemName
Definition: EventCollectionSelector.h:78
IRegistry
Definition: IRegistry.h:29
EventCollectionSelector::next
StatusCode next(Context &refCtxt) const override
Get next iteration item from the event loop context.
Definition: EventCollectionSelector.cpp:230
Service::finalize
StatusCode finalize() override
Definition: Service.cpp:223
EventCollectionSelector::m_pAddrCreator
SmartIF< IAddressCreator > m_pAddrCreator
Definition: EventCollectionSelector.h:71
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:333
StatusCode
Definition: StatusCode.h:64
IOpaqueAddress::clID
virtual const CLID & clID() const =0
Retrieve class information from link.
Gaudi::Property::value
const ValueType & value() const
Definition: Property.h:229
EventCollectionSelector::previous
StatusCode previous(Context &refCtxt) const override
Get previous iteration item from the event loop context.
Definition: EventCollectionSelector.cpp:245
SmartIF
Definition: IConverter.h:22
EventCollectionSelector::getNextRecord
virtual StatusCode getNextRecord(NTuple::Tuple *tuple) const
Read next record of the N-tuple.
Definition: EventCollectionSelector.cpp:146
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:198
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:110
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:129
EventCollectionSelector::connectCollection
virtual StatusCode connectCollection(MyContextType *ctxt) const
Connect collection to selector.
Definition: EventCollectionSelector.cpp:190
StatusCode::ignore
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
Definition: StatusCode.h:139
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:99
EventCollectionSelector::getPreviousRecord
virtual StatusCode getPreviousRecord(NTuple::Tuple *tuple) const
Read next record of the N-tuple.
Definition: EventCollectionSelector.cpp:162
EventCollectionSelector::m_cntName
Gaudi::Property< std::string > m_cntName
Definition: EventCollectionSelector.h:77
EventCollectionSelector::m_dbSvc
Gaudi::Property< std::string > m_dbSvc
Definition: EventCollectionSelector.h:82
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:74
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:100
EventCollectionSelector::m_criteria
Gaudi::Property< std::string > m_criteria
Definition: EventCollectionSelector.h:79
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:83
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:336
EventCollectionSelector::m_authentication
Gaudi::Property< std::string > m_authentication
Definition: EventCollectionSelector.h:76