The Gaudi Framework  v40r0 (475e45c1)
Gaudi::RootEvtSelector Class Reference

#include <GAUDIROOT/RootEvtSelector.h>

Inheritance diagram for Gaudi::RootEvtSelector:
Collaboration diagram for Gaudi::RootEvtSelector:

Public Member Functions

StatusCode initialize () override
 IService implementation: Db event selector override. More...
 
StatusCode finalize () override
 IService implementation: Service finalization. More...
 
StatusCode createContext (Context *&refpCtxt) const override
 Create a new event loop context. More...
 
StatusCode last (Context &refContext) const override
 Access last item in the iteration. 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 *&) 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...
 
- 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

RootCnvSvcm_dbMgr
 Reference to the corresponding conversion service. More...
 
CLID m_rootCLID = CLID_NULL
 Class id of root node to create opaque address. More...
 
Gaudi::Property< std::string > m_persName
 
Gaudi::Property< std::string > m_dummy { this, "DbType", "", "dummy property to fake backwards compatibility" }
 
std::string m_cnvSvcName = "Gaudi::RootCnvSvc/RootCnvSvc"
 Property; Name of the concversion service used to create opaque addresses. More...
 
std::string m_rootName
 Property: Name of the ROOT entry name. More...
 
std::string m_criteria
 Property: File criteria to define item iteration. More...
 
- 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...
 

Private Member Functions

StatusCode error (const std::string &msg) const
 Helper method to issue error messages. 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

Concrete event selector implementation to access ROOT files.

Author
M.Frank
Version
1.0
Date
20/12/2009

Definition at line 48 of file RootEvtSelector.h.

Member Function Documentation

◆ createAddress()

StatusCode RootEvtSelector::createAddress ( const Context &  refCtxt,
IOpaqueAddress *&  pAddr 
) const
override

Create new Opaque address corresponding to the current record.

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

Definition at line 262 of file RootEvtSelector.cpp.

262  {
263  const RootEvtSelectorContext* pctxt = dynamic_cast<const RootEvtSelectorContext*>( &ctxt );
264  if ( pctxt ) {
265  long ent = pctxt->entry();
266  if ( ent >= 0 ) {
267  auto fileit = pctxt->fileIterator();
268  if ( fileit != pctxt->files().end() ) {
269  const string par[2] = { pctxt->fid(), m_rootName };
270  const unsigned long ipar[2] = { 0, (unsigned long)ent };
271  return m_dbMgr->createAddress( m_dbMgr->repSvcType(), m_rootCLID, &par[0], &ipar[0], pAddr );
272  }
273  }
274  }
275  pAddr = nullptr;
276  return StatusCode::FAILURE;
277 }

◆ createContext()

StatusCode RootEvtSelector::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 162 of file RootEvtSelector.cpp.

162  {
163  refpCtxt = new RootEvtSelectorContext( this );
164  return StatusCode::SUCCESS;
165 }

◆ error()

StatusCode RootEvtSelector::error ( const std::string &  msg) const
private

Helper method to issue error messages.

Definition at line 113 of file RootEvtSelector.cpp.

113  {
114  MsgStream log( msgSvc(), name() );
115  log << MSG::ERROR << msg << endmsg;
116  return StatusCode::FAILURE;
117 }

◆ finalize()

StatusCode RootEvtSelector::finalize ( )
override

IService implementation: Service finalization.

Definition at line 154 of file RootEvtSelector.cpp.

154  {
155  // Initialize base class
156  if ( m_dbMgr ) m_dbMgr->release();
157  m_dbMgr = nullptr; // release
158  return Service::finalize();
159 }

◆ initialize()

StatusCode RootEvtSelector::initialize ( )
override

IService implementation: Db event selector override.

Definition at line 120 of file RootEvtSelector.cpp.

120  {
121  // Initialize base class
122  StatusCode status = Service::initialize();
123  if ( !status.isSuccess() ) { return error( "Error initializing base class Service!" ); }
124 
125  auto ipers = serviceLocator()->service<IPersistencySvc>( m_persName );
126  if ( !ipers ) { return error( "Unable to locate IPersistencySvc interface of " + m_persName ); }
127  IConversionSvc* cnvSvc = nullptr;
129  status = ipers->getService( itm.name(), cnvSvc );
130  if ( !status.isSuccess() ) {
131  status = ipers->getService( itm.type(), cnvSvc );
132  if ( !status.isSuccess() ) {
133  return error( "Unable to locate IConversionSvc interface of database type " + m_cnvSvcName );
134  }
135  }
136  m_dbMgr = dynamic_cast<RootCnvSvc*>( cnvSvc );
137  if ( !m_dbMgr ) {
138  cnvSvc->release();
139  return error( "Unable to localize service:" + m_cnvSvcName );
140  }
141  m_dbMgr->addRef();
142 
143  // Get DataSvc
144  auto eds = serviceLocator()->service<IDataManagerSvc>( "EventDataSvc" );
145  if ( !eds ) { return error( "Unable to localize service EventDataSvc" ); }
146  m_rootCLID = eds->rootCLID();
147  m_rootName = eds->rootName();
148  MsgStream log( msgSvc(), name() );
149  log << MSG::DEBUG << "Selection root:" << m_rootName << " CLID:" << m_rootCLID << endmsg;
150  return status;
151 }

◆ last()

StatusCode RootEvtSelector::last ( Context &  refContext) const
override

Access last item in the iteration.

Parameters
refContext[IN/OUT] Reference to the Context object.

Definition at line 168 of file RootEvtSelector.cpp.

168 { return StatusCode::FAILURE; }

◆ next() [1/2]

StatusCode RootEvtSelector::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 171 of file RootEvtSelector.cpp.

171  {
172  RootEvtSelectorContext* pCtxt = dynamic_cast<RootEvtSelectorContext*>( &ctxt );
173  if ( pCtxt ) {
174  TBranch* b = pCtxt->branch();
175  if ( !b ) {
176  auto fileit = pCtxt->fileIterator();
177  pCtxt->setBranch( nullptr );
178  pCtxt->setEntry( -1 );
179  if ( fileit != pCtxt->files().end() ) {
180  RootDataConnection* con = nullptr;
181  string in = *fileit;
183  if ( sc.isSuccess() ) {
184  string section = m_rootName[0] == '/' ? m_rootName.substr( 1 ) : m_rootName;
185  b = con->getBranch( section, m_rootName );
186  if ( b ) {
187  pCtxt->setFID( con->fid() );
188  pCtxt->setBranch( b );
189  return next( ctxt );
190  }
191  }
192  m_dbMgr->disconnect( in ).ignore();
193  pCtxt->setFileIterator( ++fileit );
194  return next( ctxt );
195  }
196  return StatusCode::FAILURE;
197  }
198  long ent = pCtxt->entry();
199  Long64_t nent = b->GetEntries();
200  if ( nent > ( ent + 1 ) ) {
201  pCtxt->setEntry( ++ent );
202  return StatusCode::SUCCESS;
203  }
204  auto fit = pCtxt->fileIterator();
205  pCtxt->setFileIterator( ++fit );
206  pCtxt->setEntry( -1 );
207  pCtxt->setBranch( nullptr );
208  pCtxt->setFID( "" );
209  return next( ctxt );
210  }
211  return StatusCode::FAILURE;
212 }

◆ next() [2/2]

StatusCode RootEvtSelector::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 215 of file RootEvtSelector.cpp.

215  {
216  if ( jump > 0 ) {
217  for ( int i = 0; i < jump; ++i ) {
218  StatusCode status = next( ctxt );
219  if ( !status.isSuccess() ) { return status; }
220  }
221  return StatusCode::SUCCESS;
222  }
223  return StatusCode::FAILURE;
224 }

◆ previous() [1/2]

StatusCode RootEvtSelector::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 227 of file RootEvtSelector.cpp.

227  {
228  return error( "EventSelector Iterator, operator -- not supported " );
229 }

◆ previous() [2/2]

StatusCode RootEvtSelector::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 232 of file RootEvtSelector.cpp.

232  {
233  if ( jump > 0 ) {
234  for ( int i = 0; i < jump; ++i ) {
235  StatusCode status = previous( ctxt );
236  if ( !status.isSuccess() ) { return status; }
237  }
238  return StatusCode::SUCCESS;
239  }
240  return StatusCode::FAILURE;
241 }

◆ releaseContext()

StatusCode RootEvtSelector::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 280 of file RootEvtSelector.cpp.

280  {
281  RootEvtSelectorContext* pCtxt = dynamic_cast<RootEvtSelectorContext*>( ctxt );
282  if ( pCtxt ) {
283  delete pCtxt;
284  return StatusCode::SUCCESS;
285  }
286  return StatusCode::FAILURE;
287 }

◆ resetCriteria()

StatusCode RootEvtSelector::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.

Definition at line 291 of file RootEvtSelector.cpp.

291  {
292  MsgStream log( msgSvc(), name() );
293  RootEvtSelectorContext* ctxt = dynamic_cast<RootEvtSelectorContext*>( &context );
294  string db, typ, item, sel, stmt, aut, addr;
295  if ( ctxt ) {
296  if ( criteria.compare( 0, 5, "FILE " ) == 0 ) {
297  // The format for the criteria is:
298  // FILE filename1, filename2 ...
299  db = criteria.substr( 5 );
300  } else {
301  using Parser = Gaudi::Utils::AttribStringParser;
302  for ( auto attrib : Parser( criteria ) ) {
303  string tmp = attrib.tag.substr( 0, 3 );
304  if ( tmp == "DAT" ) {
305  db = std::move( attrib.value );
306  } else if ( tmp == "OPT" ) {
307  if ( attrib.value.compare( 0, 3, "REA" ) != 0 ) {
308  log << MSG::ERROR << "Option:\"" << attrib.value << "\" not valid" << endmsg;
309  return StatusCode::FAILURE;
310  }
311  } else if ( tmp == "TYP" ) {
312  typ = std::move( attrib.value );
313  } else if ( tmp == "ADD" ) {
314  item = std::move( attrib.value );
315  } else if ( tmp == "SEL" ) {
316  sel = std::move( attrib.value );
317  } else if ( tmp == "FUN" ) {
318  stmt = std::move( attrib.value );
319  } else if ( tmp == "AUT" ) {
320  aut = std::move( attrib.value );
321  } else if ( tmp == "COL" ) {
322  addr = std::move( attrib.value );
323  }
324  }
325  }
326  // It's now time to parse the criteria for the event selection
327  // The format for the criteria is:
328  // FILE filename1, filename2 ...
329  // JOBID number1-number2, number3, ...
331  string rest = db;
332  files.clear();
333  while ( true ) {
334  int ipos = rest.find_first_not_of( " ," );
335  if ( ipos == -1 ) break;
336  rest = rest.substr( ipos, string::npos ); // remove blanks before
337  int lpos = rest.find_first_of( " ," ); // locate next blank
338 
339  files.push_back( rest.substr( 0, lpos == -1 ? string::npos : lpos ) ); // insert in list
340  if ( lpos == -1 ) break;
341  rest = rest.substr( lpos, string::npos ); // get the rest
342  }
343  ctxt->setFiles( files );
344  ctxt->setFileIterator( ctxt->files().begin() );
345  return StatusCode::SUCCESS;
346  }
347  return error( "Invalid iteration context." );
348 }

◆ rewind()

StatusCode RootEvtSelector::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 244 of file RootEvtSelector.cpp.

244  {
245  RootEvtSelectorContext* pCtxt = dynamic_cast<RootEvtSelectorContext*>( &ctxt );
246  if ( pCtxt ) {
247  auto fileit = pCtxt->fileIterator();
248  if ( fileit != pCtxt->files().end() ) {
249  string input = *fileit;
250  m_dbMgr->disconnect( input ).ignore();
251  }
252  pCtxt->setFID( "" );
253  pCtxt->setEntry( -1 );
254  pCtxt->setBranch( nullptr );
255  pCtxt->setFileIterator( pCtxt->files().begin() );
256  return StatusCode::SUCCESS;
257  }
258  return StatusCode::FAILURE;
259 }

Member Data Documentation

◆ m_cnvSvcName

std::string Gaudi::RootEvtSelector::m_cnvSvcName = "Gaudi::RootCnvSvc/RootCnvSvc"
protected

Property; Name of the concversion service used to create opaque addresses.

Definition at line 146 of file RootEvtSelector.h.

◆ m_criteria

std::string Gaudi::RootEvtSelector::m_criteria
protected

Property: File criteria to define item iteration.

Definition at line 150 of file RootEvtSelector.h.

◆ m_dbMgr

RootCnvSvc* Gaudi::RootEvtSelector::m_dbMgr
mutableprotected

Reference to the corresponding conversion service.

Definition at line 137 of file RootEvtSelector.h.

◆ m_dummy

Gaudi::Property<std::string> Gaudi::RootEvtSelector::m_dummy { this, "DbType", "", "dummy property to fake backwards compatibility" }
protected

Definition at line 143 of file RootEvtSelector.h.

◆ m_persName

Gaudi::Property<std::string> Gaudi::RootEvtSelector::m_persName
protected
Initial value:
{ this, "EvtPersistencySvc", "EventPersistencySvc",
"Name of the persistency service to search for conversion service" }

Definition at line 141 of file RootEvtSelector.h.

◆ m_rootCLID

CLID Gaudi::RootEvtSelector::m_rootCLID = CLID_NULL
protected

Class id of root node to create opaque address.

Definition at line 139 of file RootEvtSelector.h.

◆ m_rootName

std::string Gaudi::RootEvtSelector::m_rootName
protected

Property: Name of the ROOT entry name.

Definition at line 148 of file RootEvtSelector.h.


The documentation for this class was generated from the following files:
MSG::DEBUG
@ DEBUG
Definition: IMessageSvc.h:22
Service::initialize
StatusCode initialize() override
Definition: Service.cpp:118
Gaudi::RootEvtSelectorContext::setFileIterator
void setFileIterator(Files::const_iterator i)
Set file iterator.
Definition: RootEvtSelector.cpp:93
Gaudi.Configuration.log
log
Definition: Configuration.py:28
IDataManagerSvc
Definition: IDataManagerSvc.h:47
Gaudi::RootEvtSelector::m_rootName
std::string m_rootName
Property: Name of the ROOT entry name.
Definition: RootEvtSelector.h:148
StatusCode::isSuccess
bool isSuccess() const
Definition: StatusCode.h:314
Gaudi::RootCnvSvc::connectDatabase
StatusCode connectDatabase(const std::string &dataset, int mode, RootDataConnection **con)
Connect the output file to the service with open mode.
Definition: RootCnvSvc.cpp:210
Gaudi::RootEvtSelectorContext::fileIterator
Files::const_iterator fileIterator() const
Access to the file iterator.
Definition: RootEvtSelector.cpp:91
Gaudi::RootCnvSvc
Definition: RootCnvSvc.h:61
Gaudi::RootEvtSelector::error
StatusCode error(const std::string &msg) const
Helper method to issue error messages.
Definition: RootEvtSelector.cpp:113
Gaudi::RootEvtSelectorContext
Definition: RootEvtSelector.cpp:59
GaudiMP.FdsRegistry.msg
msg
Definition: FdsRegistry.py:19
Gaudi::RootEvtSelectorContext::fid
const std::string & fid() const
Access connection fid.
Definition: RootEvtSelector.cpp:101
Service::finalize
StatusCode finalize() override
Definition: Service.cpp:223
AvalancheSchedulerErrorTest.msgSvc
msgSvc
Definition: AvalancheSchedulerErrorTest.py:80
Gaudi::RootDataConnection
Definition: RootDataConnection.h:112
compareOutputFiles.par
par
Definition: compareOutputFiles.py:477
Gaudi::RootEvtSelector::previous
StatusCode previous(Context &refCtxt) const override
Get previous iteration item from the event loop context.
Definition: RootEvtSelector.cpp:227
Gaudi::RootEvtSelectorContext::entry
long entry() const
Access to the current event entry number.
Definition: RootEvtSelector.cpp:95
Gaudi::RootEvtSelectorContext::setBranch
void setBranch(TBranch *b)
Set the top level branch (typically /Event) used to iterate.
Definition: RootEvtSelector.cpp:105
Gaudi::RootCnvSvc::createAddress
StatusCode createAddress(long svc_type, const CLID &clid, const std::string *par, const unsigned long *ip, IOpaqueAddress *&refpAddress) override
IAddressCreator implementation: Address creation.
Definition: RootCnvSvc.cpp:357
Gaudi::Utils::TypeNameString
Helper class to parse a string of format "type/name".
Definition: TypeNameString.h:19
Gaudi::RootEvtSelectorContext::setEntry
void setEntry(long e)
Set current event entry number.
Definition: RootEvtSelector.cpp:97
Service::name
const std::string & name() const override
Retrieve name of the service
Definition: Service.cpp:333
StatusCode
Definition: StatusCode.h:64
Gaudi::RootEvtSelector::m_dbMgr
RootCnvSvc * m_dbMgr
Reference to the corresponding conversion service.
Definition: RootEvtSelector.h:137
Gaudi::RootEvtSelectorContext::setFID
void setFID(const std::string &fid)
Set connection FID.
Definition: RootEvtSelector.cpp:99
Gaudi::IDataConnection::READ
@ READ
Definition: IIODataManager.h:48
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:198
Gaudi::RootEvtSelector::m_persName
Gaudi::Property< std::string > m_persName
Definition: RootEvtSelector.h:141
MsgStream
Definition: MsgStream.h:29
IOTest.sel
sel
Definition: IOTest.py:106
Gaudi::RootEvtSelectorContext::branch
TBranch * branch() const
Access to the top level branch (typically /Event) used to iterate.
Definition: RootEvtSelector.cpp:103
Gaudi::RootEvtSelectorContext::files
const Files & files() const
Access to the file container.
Definition: RootEvtSelector.cpp:82
StatusCode::ignore
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
Definition: StatusCode.h:139
IPersistencySvc
Definition: IPersistencySvc.h:25
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:99
MSG::ERROR
@ ERROR
Definition: IMessageSvc.h:22
Gaudi::RootCnvSvc::disconnect
virtual StatusCode disconnect(const std::string &dbName)
Disconnect from an existing data stream.
Definition: RootCnvSvc.cpp:351
Gaudi::IDataConnection::fid
const std::string & fid() const
Access file id.
Definition: IIODataManager.h:62
Gaudi::RootEvtSelector::m_cnvSvcName
std::string m_cnvSvcName
Property; Name of the concversion service used to create opaque addresses.
Definition: RootEvtSelector.h:146
Gaudi::RootEvtSelectorContext::setFiles
void setFiles(const Files &f)
Set the file container.
Definition: RootEvtSelector.cpp:84
Gaudi::RootEvtSelector::m_rootCLID
CLID m_rootCLID
Class id of root node to create opaque address.
Definition: RootEvtSelector.h:139
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:100
Gaudi::RootEvtSelector::next
StatusCode next(Context &refCtxt) const override
Get next iteration item from the event loop context.
Definition: RootEvtSelector.cpp:171
Gaudi::RootDataConnection::getBranch
TBranch * getBranch(std::string_view section, std::string_view branch_name)
Access data branch by name: Get existing branch in read only mode.
Definition: RootDataConnection.h:326
Gaudi::Utils::AttribStringParser
Parse attribute strings allowing iteration over the various attributes.
Definition: AttribStringParser.h:39
ConversionSvc::repSvcType
long repSvcType() const override
Retrieve the class type of the data store the converter uses.
Definition: ConversionSvc.cpp:286
Gaudi::RootEvtSelectorContext::Files
std::vector< std::string > Files
Definition of the file container.
Definition: RootEvtSelector.cpp:62
IInterface::release
virtual unsigned long release() const =0
Release Interface instance.
Service::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator
Definition: Service.cpp:336
IConversionSvc
Definition: IConversionSvc.h:43