This file contains the class definition for the GoodRunsListSelectorTool class. More...
#include <GoodRunsListSelectorTool.h>
Public Member Functions | |
GoodRunsListSelectorTool (const std::string &, const std::string &, const IInterface *) | |
StatusCode | queryInterface (const InterfaceID &riid, void **ppvIf) |
To allow access to the IGoodRunsListSelectorTool interface. | |
StatusCode | initialize () |
Initialize AlgTool. | |
bool | passEvent (const EventInfo *pEvent) |
called for each event by EventSelector to decide if the event should be passed | |
StatusCode | finalize () |
Finalize AlgTool. | |
bool | passRunLB (int runNumber, int lumiBlockNr, const std::vector< std::string > &grlnameVec=std::vector< std::string >(), const std::vector< std::string > &brlnameVec=std::vector< std::string >()) |
called for each event by GoodRunsListSelectorAlg to decide if the event should be passed | |
bool | passThisRunLB (const std::vector< std::string > &grlnameVec=std::vector< std::string >(), const std::vector< std::string > &brlnameVec=std::vector< std::string >()) |
called for each event by GoodRunsListSelectorAlg to decide if the event should be passed | |
bool | registerGRLSelector (const std::string &name, const std::vector< std::string > &grlnameVec, const std::vector< std::string > &brlnameVec) |
register grl/brl combination | |
const std::map< std::string, vvPair > & | getGRLSelectorRegistry () |
get GRL selector registry | |
const Root::TGRLCollection * | getGRLCollection () const |
get grl/brl collection | |
const Root::TGRLCollection * | getBRLCollection () const |
Protected Member Functions | |
bool | fileExists (const char *fileName) |
Protected Attributes | |
std::vector< std::string > | m_goodrunslistVec |
std::vector< std::string > | m_blackrunslistVec |
std::vector< std::string > | m_dqflagsqueryVec |
Root::TGRLCollection * | m_grlcollection |
Root::TGRLCollection * | m_brlcollection |
Root::TGoodRunsListReader * | m_reader |
std::map< std::string, TFormula * > | m_dqformula |
int | m_boolop |
bool | m_passthrough |
bool | m_usecool |
bool | m_verbose |
bool | m_rejectanybrl |
bool | m_eventselectormode |
const IDetStatusSvc * | m_detstatussvc |
StoreGateSvc * | m_storeGate |
std::map< std::string, vvPair > | m_registry |
std::string | m_runrangeexpr |
Root::RegularFormula | m_inrunrange |
This file contains the class definition for the GoodRunsListSelectorTool class.
bool GoodRunsListSelectorTool::fileExists | ( | const char * | fileName | ) | [protected] |
stat() is able to get the file attributes, so the file obviously exists if filesize==0 assume the copying failed.
stat() is not able to get the file attributes, so the file obviously does not exist.
StatusCode GoodRunsListSelectorTool::initialize | ( | void | ) |
Initialize AlgTool.
reset pass-through mode
warn about pass-thru mode
checking existence of goodrunslists / blacklists
start reading xml files
this merge accounts for same identical metadata, version, name, etc.
this merge accounts for same identical metadata, version, name, etc.
get StoreGateSvc interface, crashes in preeventselector 15.6.x
get DetStatusSvc interface
parse dqflags queries for cool
parse any run-range expression
bool GoodRunsListSelectorTool::passEvent | ( | const EventInfo * | pEvent | ) |
called for each event by EventSelector to decide if the event should be passed
now make query decision ...
decide from XML files
Cool based decision
check if run is in runrange, only done for Cool decision
loop over all status words, print those which are bad
decide based on COOL
bool GoodRunsListSelectorTool::passRunLB | ( | int | runNumber, | |
int | lumiBlockNr, | |||
const std::vector< std::string > & | grlnameVec = std::vector<std::string>() , |
|||
const std::vector< std::string > & | brlnameVec = std::vector<std::string>() | |||
) | [virtual] |
called for each event by GoodRunsListSelectorAlg to decide if the event should be passed
pass through
decision based on merged blackrunslist
decision based on specific blackrunlists
decision based on specific goodrunlists
decision based on merged goodrunslist
Implements IGoodRunsListSelectorTool.
bool GoodRunsListSelectorTool::passThisRunLB | ( | const std::vector< std::string > & | grlnameVec = std::vector<std::string>() , |
|
const std::vector< std::string > & | brlnameVec = std::vector<std::string>() | |||
) | [virtual] |
called for each event by GoodRunsListSelectorAlg to decide if the event should be passed
now make query decision ...
decide from XML files
Cool based decision
check if run is in runrange, only done for Cool decision
loop over all status words, print those which are bad
decide based on COOL
Implements IGoodRunsListSelectorTool.
bool GoodRunsListSelectorTool::registerGRLSelector | ( | const std::string & | name, | |
const std::vector< std::string > & | grlnameVec, | |||
const std::vector< std::string > & | brlnameVec | |||
) | [virtual] |
register grl/brl combination
check if brl names are really known
check if grl names are really known
Implements IGoodRunsListSelectorTool.