EventCollectionSelector Class Reference

Definition of class EventCollectionSelector. More...

#include <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, 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...
 
 EventCollectionSelector (const std::string &name, ISvcLocator *svcloc)
 Standard Constructor. More...
 
 ~EventCollectionSelector () override=default
 Standard Destructor. More...
 
- Public Member Functions inherited from extends< BASE, Interfaces >
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...
 
 ~extends () override=default
 Virtual destructor. More...
 
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...
 
 ~extends () override=default
 Virtual destructor. More...
 
- Public Member Functions inherited from extend_interfaces< Interfaces...>
 ~extend_interfaces () override=default
 Virtual destructor. More...
 
 ~extend_interfaces () override=default
 Virtual destructor. More...
 

Protected Attributes

SmartIF< INTupleSvcm_tupleSvc
 Reference to Tuple service. More...
 
SmartIF< IAddressCreatorm_pAddrCreator
 
std::string m_tupleSvcName
 Name of the event collection service name. More...
 
std::string m_authentication
 Authentication string (if needed) More...
 
std::string m_cntName
 Container name. More...
 
std::string m_itemName
 Item name. More...
 
std::string m_criteria
 Criteria. More...
 
std::string m_database
 Datafile name. More...
 
std::string m_dbType
 Database type identifier. More...
 
std::string m_dbSvc
 Database service (exclusive property with db type) More...
 
std::string m_statement
 Selector name. More...
 

Additional Inherited Members

- Public Types inherited from extends< BASE, Interfaces >
using base_class = extends
 Typedef to this class. More...
 
using extend_interfaces_base = extend_interfaces< Interfaces...>
 Typedef to the base of this class. More...
 
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 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...
 
using ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type
 take union of the ext_iids of all Interfaces... 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.

Constructor & Destructor Documentation

EventCollectionSelector::EventCollectionSelector ( const std::string &  name,
ISvcLocator svcloc 
)

Standard Constructor.

Definition at line 76 of file EventCollectionSelector.cpp.

77  : base_class(name, svcloc)
78 {
79  declareProperty("CnvService", m_tupleSvcName = "EvtTupleSvc");
80  declareProperty("Authentication",m_authentication= "");
81  declareProperty("Container", m_cntName = "B2PiPi");
82  declareProperty("Item", m_itemName = "Address");
83  declareProperty("Criteria", m_criteria = "");
84  declareProperty("DB", m_database = "");
85  declareProperty("DbType", m_dbType = "");
86  declareProperty("DbService", m_dbSvc = "");
87  declareProperty("Function", m_statement= "NTuple::Selector");
88 }
std::string m_criteria
Criteria.
extends base_class
Typedef to this class.
Definition: extends.h:14
std::string m_tupleSvcName
Name of the event collection service name.
std::string m_cntName
Container name.
std::string m_itemName
Item name.
std::string m_dbType
Database type identifier.
std::string m_dbSvc
Database service (exclusive property with db type)
std::string m_database
Datafile name.
std::string m_authentication
Authentication string (if needed)
std::string m_statement
Selector name.
EventCollectionSelector::~EventCollectionSelector ( )
overridedefault

Standard Destructor.

Member Function Documentation

StatusCode EventCollectionSelector::connectCollection ( MyContextType ctxt) const
virtual

Connect collection to selector.

Definition at line 222 of file EventCollectionSelector.cpp.

223 {
224  if ( ctxt ) {
226  if ( status.isSuccess() ) {
227  status = connectTuple(m_cntName, m_itemName, ctxt->tuple, ctxt->item);
228  if ( status.isSuccess() ) {
229  status = connectStatement(m_statement, m_criteria, ctxt->tuple);
230  if ( status.isSuccess() ) {
231  *(ctxt->item) = 0;
232  return status;
233  }
234  }
235  }
236  return status;
237  }
238  return StatusCode::FAILURE;
239 }
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
virtual StatusCode connectDataSource(const std::string &db, const std::string &typ) const
Connect collection's data source to selector.
std::string m_criteria
Criteria.
std::string m_cntName
Container name.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
std::string m_itemName
Item name.
std::string m_dbType
Database type identifier.
std::string m_database
Datafile name.
virtual StatusCode connectTuple(const std::string &nam, const std::string &itName, NTuple::Tuple *&tup, NTuple::Item< IOpaqueAddress * > *&item) const
Connect to existing N-tuple.
std::string m_statement
Selector name.
virtual StatusCode connectStatement(const std::string &typ, const std::string &crit, INTuple *tuple) const
Connect selection statement to refine data access.
StatusCode EventCollectionSelector::connectDataSource ( const std::string &  db,
const std::string &  typ 
) const
virtual

Connect collection's data source to selector.

Definition at line 114 of file EventCollectionSelector.cpp.

114  {
117  if ( svc && !db.empty() ) {
118  std::string ident = name() + ' ';
119  ident += "DATAFILE='" + m_database.substr(5) + "' ";
120  if ( !m_dbSvc.empty() )
121  ident += "SVC='" + m_dbSvc + "' ";
122  else
123  ident += "TYP='" + m_dbType + "' ";
124  ident += "OPT='READ' ";
125  if ( m_authentication.length() > 0 ) {
126  ident += "AUTH='" + m_authentication + "' ";
127  }
128  status = svc->connect(ident);
129  }
130  return status;
131 }
SmartIF< INTupleSvc > m_tupleSvc
Reference to Tuple service.
Small smart pointer class with automatic reference counting for IInterface.
Definition: IConverter.h:14
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
std::string m_dbType
Database type identifier.
std::string m_dbSvc
Database service (exclusive property with db type)
std::string m_database
Datafile name.
std::string m_authentication
Authentication string (if needed)
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 157 of file EventCollectionSelector.cpp.

157  {
158  std::string seltyp = typ;
159  if ( !seltyp.empty() || !crit.empty() ) {
160  if ( !crit.empty() && seltyp.length() == 0 ) seltyp = "NTuple::Selector";
161  SmartIF<ISelectStatement> stmt(ObjFactory::create(seltyp, serviceLocator()));
162  if ( stmt ) {
163  if ( !crit.empty() ) stmt->setCriteria(crit);
164  tuple->attachSelector(stmt).ignore();
165  return StatusCode::SUCCESS;
166  }
167  return StatusCode::FAILURE;
168  }
169  return StatusCode::SUCCESS;
170 }
void ignore() const
Definition: StatusCode.h:108
virtual StatusCode attachSelector(ISelectStatement *sel)=0
Attach selector.
StatusCode EventCollectionSelector::connectTuple ( const std::string &  nam,
const std::string &  itName,
NTuple::Tuple *&  tup,
NTuple::Item< IOpaqueAddress * > *&  item 
) const
virtual

Connect to existing N-tuple.

Definition at line 135 of file EventCollectionSelector.cpp.

135  {
136  std::string top = "/NTUPLES/" + name() + '/' + nam;
137  StatusCode status = m_tupleSvc->retrieveObject(top, (DataObject*&)tup);
138  if ( status.isSuccess() ) {
139  item = new NTuple::Item<IOpaqueAddress*>();
140  status = tup->item(itName, *item);
141  if ( status.isSuccess() ) return status;
142  MsgStream log(msgSvc(), name());
143  log << MSG::ERROR << "Item " << itName << " is not part of the collection:" << top << endmsg;
144  delete item;
145  item = nullptr;
146  }
147  else {
148  MsgStream err(msgSvc(), name());
149  err << MSG::ERROR << "Cannot connect to collection:" << top << endmsg;
150  }
151  tup = nullptr;
152  return status;
153 }
SmartIF< INTupleSvc > m_tupleSvc
Reference to Tuple service.
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
tuple item
print s1,s2
Definition: ana.py:146
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
virtual StatusCode retrieveObject(IRegistry *pDirectory, const std::string &path, DataObject *&pObject)=0
Retrieve object identified by its directory entry.
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 320 of file EventCollectionSelector.cpp.

321 {
322  const MyContextType* ctxt = dynamic_cast<const MyContextType*>(&refCtxt);
323  if ( ctxt ) {
324  IOpaqueAddress* pA = *(ctxt->item);
325  if ( pA ) {
326  IOpaqueAddress* pAddress = nullptr;
328  pA->clID(),
329  pA->par(),
330  pA->ipar(),
331  pAddress);
332  if ( status.isSuccess() ) {
333  refpAddr = pAddress;
334  return StatusCode::SUCCESS;
335  }
336  else {
337  MsgStream log(msgSvc(), name());
338  log << MSG::ERROR << "Failed to access " << pA->par()[0]
339  << ":" << pA->par()[1]
340  << " SvcTyp:" << long(pA->svcType())
341  << " CLID:" << pA->clID()
342  << endmsg;
343  }
344  }
345  }
346  return StatusCode::FAILURE;
347 }
virtual const std::string * par() const =0
Retrieve String parameters.
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
virtual StatusCode createAddress(long svc_type, const CLID &clid, const std::string *par, const unsigned long *ipar, IOpaqueAddress *&refpAddress)=0
Create a Generic address using explicit arguments to identify a single object.
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
virtual long svcType() const =0
Retrieve service type.
virtual const CLID & clID() const =0
Retrieve class information from link.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
Opaque address interface definition.
SmartIF< IAddressCreator > m_pAddrCreator
virtual const unsigned long * ipar() const =0
Access to generic link parameters.
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 251 of file EventCollectionSelector.cpp.

252 {
253  refpCtxt = nullptr;
254  std::unique_ptr<MyContextType> ctxt(new MyContextType());
255  StatusCode status = connectCollection(ctxt.get());
256  if( !status.isSuccess() ) {
257  MsgStream log(msgSvc(), name());
258  log << MSG::ERROR << "Unable to connect Collection file \"" << m_database << "\"" << endmsg;
259  return status;
260  }
261  refpCtxt = ctxt.release();
262  return StatusCode::SUCCESS;
263 }
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
std::string m_database
Datafile name.
virtual StatusCode connectCollection(MyContextType *ctxt) const
Connect collection to selector.
StatusCode EventCollectionSelector::finalize ( )
override

Service override: Finalize Service.

Definition at line 242 of file EventCollectionSelector.cpp.

242  {
243  // release services
244  m_pAddrCreator = nullptr;
245  m_tupleSvc = nullptr;
246  return Service::finalize();
247 }
SmartIF< INTupleSvc > m_tupleSvc
Reference to Tuple service.
StatusCode finalize() override
Definition: Service.cpp:188
SmartIF< IAddressCreator > m_pAddrCreator
StatusCode EventCollectionSelector::getNextRecord ( NTuple::Tuple tuple) const
virtual

Read next record of the N-tuple.

Definition at line 173 of file EventCollectionSelector.cpp.

173  {
175  if ( tuple ) {
176  do {
177  status = m_tupleSvc->readRecord(tuple);
178  if ( status.isSuccess() ) {
179  ISelectStatement* statement = tuple->selector();
180  bool use_it = (statement) ? (*statement)(tuple) : true;
181  if ( use_it ) {
182  return status;
183  }
184  }
185  } while ( status.isSuccess() );
186  }
187  return status;
188 }
SmartIF< INTupleSvc > m_tupleSvc
Reference to Tuple service.
A select statement can either contain.
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
virtual ISelectStatement * selector()=0
Access selector.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
virtual StatusCode readRecord(NTuple::Tuple *tuple)=0
Read single record from N tuple.
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 191 of file EventCollectionSelector.cpp.

191  {
193  if ( tuple ) {
194  IRegistry* pReg = tuple->registry();
195  if ( pReg ) {
196  IOpaqueAddress* pAddr = pReg->address();
197  if ( pAddr ) {
198  long* ip = (long*)pAddr->ipar();
199  do {
200  if ( ip[1] > 1 ) {
201  ip[1] -= 2;
202  status = m_tupleSvc->readRecord(tuple);
203  if ( status.isSuccess() ) {
204  ISelectStatement* statement = tuple->selector();
205  bool use_it = (statement) ? (*statement)(tuple) : true;
206  if ( use_it ) {
207  return status;
208  }
209  }
210  }
211  else {
212  return StatusCode::FAILURE;
213  }
214  } while ( status.isSuccess() );
215  }
216  }
217  }
218  return StatusCode::FAILURE;
219 }
SmartIF< INTupleSvc > m_tupleSvc
Reference to Tuple service.
A select statement can either contain.
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
virtual ISelectStatement * selector()=0
Access selector.
IRegistry * registry() const
Get pointer to Registry.
Definition: DataObject.h:74
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition: IRegistry.h:22
virtual IOpaqueAddress * address() const =0
Retrieve opaque storage address.
virtual StatusCode readRecord(NTuple::Tuple *tuple)=0
Read single record from N tuple.
Opaque address interface definition.
virtual const unsigned long * ipar() const =0
Access to generic link parameters.
StatusCode EventCollectionSelector::initialize ( )
override

Service override: Initialize service.

Definition at line 91 of file EventCollectionSelector.cpp.

91  {
92  // Initialize base class
94  MsgStream log(msgSvc(), name());
95  if ( !status.isSuccess() ) {
96  log << MSG::ERROR << "Error initializing base class Service!" << endmsg;
97  return status;
98  }
99  m_pAddrCreator = serviceLocator()->service("EventPersistencySvc");
100  if(!m_pAddrCreator) {
101  log << MSG::ERROR << "Unable to locate IAddressCreator interface of " << "EventPersistencySvc" << endmsg;
102  return status;
103  }
104  m_tupleSvc = serviceLocator()->service(m_tupleSvcName);
105  if( !m_tupleSvc ) {
106  log << MSG::ERROR << "Unable to locate INTupleSvc interface of " << m_tupleSvcName << endmsg;
107  return status;
108  }
109  return status;
110 }
SmartIF< INTupleSvc > m_tupleSvc
Reference to Tuple service.
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
StatusCode initialize() override
Definition: Service.cpp:63
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
std::string m_tupleSvcName
Name of the event collection service name.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
SmartIF< IAddressCreator > m_pAddrCreator
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 377 of file EventCollectionSelector.cpp.

378 {
379  return StatusCode::FAILURE;
380 }
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 267 of file EventCollectionSelector.cpp.

268 {
269  return next(refCtxt, 1);
270 }
StatusCode next(Context &refCtxt) const override
Get next iteration item from the event loop context.
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 274 of file EventCollectionSelector.cpp.

275 {
276  MyContextType *ctxt = dynamic_cast<MyContextType*>(&refCtxt);
277  if ( ctxt ) {
278  *(ctxt->item) = ctxt->addressBuffer;
280  for ( int i=0; i<jump && sc.isSuccess(); ++i ) {
281  sc = getNextRecord(ctxt->tuple);
282  }
283  return sc;
284  }
285  return StatusCode::FAILURE;
286 }
virtual StatusCode getNextRecord(NTuple::Tuple *tuple) const
Read next record of the N-tuple.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
list i
Definition: ana.py:128
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 290 of file EventCollectionSelector.cpp.

291 {
292  return previous(refCtxt, 1);
293 }
StatusCode previous(Context &refCtxt) const override
Get previous iteration item from the event loop context.
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 297 of file EventCollectionSelector.cpp.

298 {
299  MyContextType *ctxt = dynamic_cast<MyContextType*>(&refCtxt);
300  if ( ctxt ) {
301  *(ctxt->item) = ctxt->addressBuffer;
303  for ( int i=0; i<jump && sc.isSuccess(); ++i ) {
304  sc = getPreviousRecord(ctxt->tuple);
305  }
306  return sc;
307  }
308  return StatusCode::FAILURE;
309 }
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
virtual StatusCode getPreviousRecord(NTuple::Tuple *tuple) const
Read next record of the N-tuple.
list i
Definition: ana.py:128
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 351 of file EventCollectionSelector.cpp.

352 {
353  MyContextType *ctxt = dynamic_cast<MyContextType*>(refCtxt);
354  if ( ctxt ) {
355  delete ctxt;
356  ctxt = nullptr;
357  return StatusCode::SUCCESS;
358  }
359  return StatusCode::FAILURE;
360 }
StatusCode EventCollectionSelector::resetCriteria ( const std::string &  cr,
Context &  refCtxt 
) 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 365 of file EventCollectionSelector.cpp.

366 {
367  MyContextType *ctxt = dynamic_cast<MyContextType*>(&refCtxt);
368  if ( ctxt ) {
369  ctxt->criteria = cr;
370  return StatusCode::SUCCESS;
371  }
372  return StatusCode::FAILURE;
373 }
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 313 of file EventCollectionSelector.cpp.

314 {
315  return StatusCode::FAILURE;
316 }

Member Data Documentation

std::string EventCollectionSelector::m_authentication
protected

Authentication string (if needed)

Definition at line 84 of file EventCollectionSelector.h.

std::string EventCollectionSelector::m_cntName
protected

Container name.

Definition at line 86 of file EventCollectionSelector.h.

std::string EventCollectionSelector::m_criteria
protected

Criteria.

Definition at line 90 of file EventCollectionSelector.h.

std::string EventCollectionSelector::m_database
protected

Datafile name.

Definition at line 92 of file EventCollectionSelector.h.

std::string EventCollectionSelector::m_dbSvc
protected

Database service (exclusive property with db type)

Definition at line 96 of file EventCollectionSelector.h.

std::string EventCollectionSelector::m_dbType
protected

Database type identifier.

Definition at line 94 of file EventCollectionSelector.h.

std::string EventCollectionSelector::m_itemName
protected

Item name.

Definition at line 88 of file EventCollectionSelector.h.

SmartIF<IAddressCreator> EventCollectionSelector::m_pAddrCreator
mutableprotected

Definition at line 80 of file EventCollectionSelector.h.

std::string EventCollectionSelector::m_statement
protected

Selector name.

Definition at line 98 of file EventCollectionSelector.h.

SmartIF<INTupleSvc> EventCollectionSelector::m_tupleSvc
mutableprotected

Reference to Tuple service.

Definition at line 79 of file EventCollectionSelector.h.

std::string EventCollectionSelector::m_tupleSvcName
protected

Name of the event collection service name.

Definition at line 82 of file EventCollectionSelector.h.


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