The Gaudi Framework  master (594c33fa)
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 * 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::stringgetInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames. More...
 
- Public Member Functions inherited from Service
const std::stringname () 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<class T >
StatusCode service (const std::string &name, const T *&psvc, bool createIf=true) const
 Access a service by name, creating it if it doesn't already exist. More...
 
template<class T >
StatusCode service (const std::string &name, T *&psvc, bool createIf=true) const
 
template<typename IFace = IService>
SmartIF< IFace > service (const std::string &name, bool createIf=true) const
 
template<class T >
StatusCode service (const std::string &svcType, const std::string &svcName, T *&psvc) const
 Access a service by name and type, creating it if it doesn't already exist. More...
 
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, 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, TYPE &value, const std::string &doc="none")
 Helper to wrap a regular data member and use it as a regular 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...
 
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 setProperty (const std::string &name, const TYPE &value)
 set the property form the value 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::stringm_persName
 
Gaudi::Property< std::stringm_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_auditInit { this, "AuditServices", false, "[[deprecated]] unused" }
 
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
 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

Concrete event selector implementation to access ROOT files.

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

Definition at line 49 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 277 of file RootEvtSelector.cpp.

277  {
278  const RootEvtSelectorContext* pctxt = dynamic_cast<const RootEvtSelectorContext*>( &ctxt );
279  if ( pctxt ) {
280  long ent = pctxt->entry();
281  if ( ent >= 0 ) {
282  auto fileit = pctxt->fileIterator();
283  if ( fileit != pctxt->files().end() ) {
284  const string par[2] = { pctxt->fid(), m_rootName };
285  const unsigned long ipar[2] = { 0, (unsigned long)ent };
286  return m_dbMgr->createAddress( m_dbMgr->repSvcType(), m_rootCLID, &par[0], &ipar[0], pAddr );
287  }
288  }
289  }
290  pAddr = nullptr;
291  return StatusCode::FAILURE;
292 }

◆ 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 177 of file RootEvtSelector.cpp.

177  {
178  refpCtxt = new RootEvtSelectorContext( this );
179  return StatusCode::SUCCESS;
180 }

◆ error()

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

Helper method to issue error messages.

Definition at line 128 of file RootEvtSelector.cpp.

128  {
129  MsgStream log( msgSvc(), name() );
130  log << MSG::ERROR << msg << endmsg;
131  return StatusCode::FAILURE;
132 }

◆ finalize()

StatusCode RootEvtSelector::finalize ( )
override

IService implementation: Service finalization.

Definition at line 169 of file RootEvtSelector.cpp.

169  {
170  // Initialize base class
171  if ( m_dbMgr ) m_dbMgr->release();
172  m_dbMgr = nullptr; // release
173  return Service::finalize();
174 }

◆ initialize()

StatusCode RootEvtSelector::initialize ( )
override

IService implementation: Db event selector override.

Definition at line 135 of file RootEvtSelector.cpp.

135  {
136  // Initialize base class
137  StatusCode status = Service::initialize();
138  if ( !status.isSuccess() ) { return error( "Error initializing base class Service!" ); }
139 
140  auto ipers = serviceLocator()->service<IPersistencySvc>( m_persName );
141  if ( !ipers ) { return error( "Unable to locate IPersistencySvc interface of " + m_persName ); }
142  IConversionSvc* cnvSvc = nullptr;
144  status = ipers->getService( itm.name(), cnvSvc );
145  if ( !status.isSuccess() ) {
146  status = ipers->getService( itm.type(), cnvSvc );
147  if ( !status.isSuccess() ) {
148  return error( "Unable to locate IConversionSvc interface of database type " + m_cnvSvcName );
149  }
150  }
151  m_dbMgr = dynamic_cast<RootCnvSvc*>( cnvSvc );
152  if ( !m_dbMgr ) {
153  cnvSvc->release();
154  return error( "Unable to localize service:" + m_cnvSvcName );
155  }
156  m_dbMgr->addRef();
157 
158  // Get DataSvc
159  auto eds = serviceLocator()->service<IDataManagerSvc>( "EventDataSvc" );
160  if ( !eds ) { return error( "Unable to localize service EventDataSvc" ); }
161  m_rootCLID = eds->rootCLID();
162  m_rootName = eds->rootName();
163  MsgStream log( msgSvc(), name() );
164  log << MSG::DEBUG << "Selection root:" << m_rootName << " CLID:" << m_rootCLID << endmsg;
165  return status;
166 }

◆ 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 183 of file RootEvtSelector.cpp.

183 { 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 186 of file RootEvtSelector.cpp.

186  {
187  RootEvtSelectorContext* pCtxt = dynamic_cast<RootEvtSelectorContext*>( &ctxt );
188  if ( pCtxt ) {
189  TBranch* b = pCtxt->branch();
190  if ( !b ) {
191  auto fileit = pCtxt->fileIterator();
192  pCtxt->setBranch( nullptr );
193  pCtxt->setEntry( -1 );
194  if ( fileit != pCtxt->files().end() ) {
195  RootDataConnection* con = nullptr;
196  string in = *fileit;
198  if ( sc.isSuccess() ) {
199  string section = m_rootName[0] == '/' ? m_rootName.substr( 1 ) : m_rootName;
200  b = con->getBranch( section, m_rootName );
201  if ( b ) {
202  pCtxt->setFID( con->fid() );
203  pCtxt->setBranch( b );
204  return next( ctxt );
205  }
206  }
207  m_dbMgr->disconnect( in ).ignore();
208  pCtxt->setFileIterator( ++fileit );
209  return next( ctxt );
210  }
211  return StatusCode::FAILURE;
212  }
213  long ent = pCtxt->entry();
214  Long64_t nent = b->GetEntries();
215  if ( nent > ( ent + 1 ) ) {
216  pCtxt->setEntry( ++ent );
217  return StatusCode::SUCCESS;
218  }
219  auto fit = pCtxt->fileIterator();
220  pCtxt->setFileIterator( ++fit );
221  pCtxt->setEntry( -1 );
222  pCtxt->setBranch( nullptr );
223  pCtxt->setFID( "" );
224  return next( ctxt );
225  }
226  return StatusCode::FAILURE;
227 }

◆ 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 230 of file RootEvtSelector.cpp.

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

◆ 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 242 of file RootEvtSelector.cpp.

242  {
243  return error( "EventSelector Iterator, operator -- not supported " );
244 }

◆ 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 247 of file RootEvtSelector.cpp.

247  {
248  if ( jump > 0 ) {
249  for ( int i = 0; i < jump; ++i ) {
250  StatusCode status = previous( ctxt );
251  if ( !status.isSuccess() ) { return status; }
252  }
253  return StatusCode::SUCCESS;
254  }
255  return StatusCode::FAILURE;
256 }

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

295  {
296  RootEvtSelectorContext* pCtxt = dynamic_cast<RootEvtSelectorContext*>( ctxt );
297  if ( pCtxt ) {
298  delete pCtxt;
299  return StatusCode::SUCCESS;
300  }
301  return StatusCode::FAILURE;
302 }

◆ 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 306 of file RootEvtSelector.cpp.

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

◆ 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 259 of file RootEvtSelector.cpp.

259  {
260  RootEvtSelectorContext* pCtxt = dynamic_cast<RootEvtSelectorContext*>( &ctxt );
261  if ( pCtxt ) {
262  auto fileit = pCtxt->fileIterator();
263  if ( fileit != pCtxt->files().end() ) {
264  string input = *fileit;
265  m_dbMgr->disconnect( input ).ignore();
266  }
267  pCtxt->setFID( "" );
268  pCtxt->setEntry( -1 );
269  pCtxt->setBranch( nullptr );
270  pCtxt->setFileIterator( pCtxt->files().begin() );
271  return StatusCode::SUCCESS;
272  }
273  return StatusCode::FAILURE;
274 }

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 147 of file RootEvtSelector.h.

◆ m_criteria

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

Property: File criteria to define item iteration.

Definition at line 151 of file RootEvtSelector.h.

◆ m_dbMgr

RootCnvSvc* Gaudi::RootEvtSelector::m_dbMgr
mutableprotected

Reference to the corresponding conversion service.

Definition at line 138 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 144 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 142 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 140 of file RootEvtSelector.h.

◆ m_rootName

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

Property: Name of the ROOT entry name.

Definition at line 149 of file RootEvtSelector.h.


The documentation for this class was generated from the following files:
MSG::DEBUG
@ DEBUG
Definition: IMessageSvc.h:25
Service::initialize
StatusCode initialize() override
Definition: Service.cpp:118
Gaudi::RootEvtSelectorContext::setFileIterator
void setFileIterator(Files::const_iterator i)
Set file iterator.
Definition: RootEvtSelector.cpp:95
Gaudi.Configuration.log
log
Definition: Configuration.py:28
IDataManagerSvc
Definition: IDataManagerSvc.h:55
Gaudi::RootEvtSelector::m_rootName
std::string m_rootName
Property: Name of the ROOT entry name.
Definition: RootEvtSelector.h:149
std::move
T move(T... args)
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:93
Gaudi::RootCnvSvc
Definition: RootCnvSvc.h:62
std::vector< std::string >
Gaudi::RootEvtSelector::error
StatusCode error(const std::string &msg) const
Helper method to issue error messages.
Definition: RootEvtSelector.cpp:128
Gaudi::RootEvtSelectorContext
Definition: RootEvtSelector.cpp:61
GaudiMP.FdsRegistry.msg
msg
Definition: FdsRegistry.py:19
Gaudi::RootEvtSelectorContext::fid
const std::string & fid() const
Access connection fid.
Definition: RootEvtSelector.cpp:103
std::string::find_first_not_of
T find_first_not_of(T... args)
Service::finalize
StatusCode finalize() override
Definition: Service.cpp:222
std::vector::clear
T clear(T... args)
AvalancheSchedulerErrorTest.msgSvc
msgSvc
Definition: AvalancheSchedulerErrorTest.py:80
Gaudi::RootDataConnection
Definition: RootDataConnection.h:112
std::vector::push_back
T push_back(T... args)
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:242
Gaudi::RootEvtSelectorContext::entry
long entry() const
Access to the current event entry number.
Definition: RootEvtSelector.cpp:97
Gaudi::RootEvtSelectorContext::setBranch
void setBranch(TBranch *b)
Set the top level branch (typically /Event) used to iterate.
Definition: RootEvtSelector.cpp:107
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:20
Gaudi::RootEvtSelectorContext::setEntry
void setEntry(long e)
Set current event entry number.
Definition: RootEvtSelector.cpp:99
Service::name
const std::string & name() const override
Retrieve name of the service
Definition: Service.cpp:332
StatusCode
Definition: StatusCode.h:65
Gaudi::RootEvtSelector::m_dbMgr
RootCnvSvc * m_dbMgr
Reference to the corresponding conversion service.
Definition: RootEvtSelector.h:138
Gaudi::RootEvtSelectorContext::setFID
void setFID(const std::string &fid)
Set connection FID.
Definition: RootEvtSelector.cpp:101
Gaudi::IDataConnection::READ
@ READ
Definition: IIODataManager.h:49
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
Gaudi::RootEvtSelector::m_persName
Gaudi::Property< std::string > m_persName
Definition: RootEvtSelector.h:142
MsgStream
Definition: MsgStream.h:34
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:105
Gaudi::RootEvtSelectorContext::files
const Files & files() const
Access to the file container.
Definition: RootEvtSelector.cpp:84
StatusCode::ignore
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
Definition: StatusCode.h:139
std::string::substr
T substr(T... args)
IPersistencySvc
Definition: IPersistencySvc.h:29
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
std::vector::begin
T begin(T... args)
MSG::ERROR
@ ERROR
Definition: IMessageSvc.h:25
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:63
std::string::find_first_of
T find_first_of(T... args)
Gaudi::RootEvtSelector::m_cnvSvcName
std::string m_cnvSvcName
Property; Name of the concversion service used to create opaque addresses.
Definition: RootEvtSelector.h:147
Gaudi::RootEvtSelectorContext::setFiles
void setFiles(const Files &f)
Set the file container.
Definition: RootEvtSelector.cpp:86
std::vector::end
T end(T... args)
Gaudi::RootEvtSelector::m_rootCLID
CLID m_rootCLID
Class id of root node to create opaque address.
Definition: RootEvtSelector.h:140
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
IInterface::release
virtual unsigned long release()=0
Release Interface instance.
Gaudi::RootEvtSelector::next
StatusCode next(Context &refCtxt) const override
Get next iteration item from the event loop context.
Definition: RootEvtSelector.cpp:186
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:40
ConversionSvc::repSvcType
long repSvcType() const override
Retrieve the class type of the data store the converter uses.
Definition: ConversionSvc.cpp:286
Service::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator
Definition: Service.cpp:335
IConversionSvc
Definition: IConversionSvc.h:47