|
| | GoodRunsListSelectionTool (const std::string &name="GoodRunsListsSelectionTool") |
| virtual StatusCode | initialize () |
| | Initialize AlgTool.
|
| | DeclareInterfaceID (ISkimmingTool, 1, 0) |
| virtual void | print () const |
| | Print the state of the tool.
|
| ServiceHandle< StoreGateSvc > & | evtStore () |
| | The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
|
| const ServiceHandle< StoreGateSvc > & | detStore () const |
| | The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
|
| virtual StatusCode | sysInitialize () override |
| | Perform system initialization for an algorithm.
|
| virtual StatusCode | sysStart () override |
| | Handle START transition.
|
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| | Return this algorithm's input handles.
|
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| | Return this algorithm's output handles.
|
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
| virtual bool | passRunLB (const std::vector< std::string > &grlnameVec=std::vector< std::string >(), const std::vector< std::string > &brlnameVec=std::vector< std::string >()) const |
| | Check if the current event passes the selection.
|
| virtual bool | passRunLB (const xAOD::EventInfo &event, const std::vector< std::string > &grlnameVec=std::vector< std::string >(), const std::vector< std::string > &brlnameVec=std::vector< std::string >()) const |
| | Check if the event specified passes the selection.
|
| virtual 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 >()) const |
| | Check if the event specified passes the selection.
|
| virtual const Root::TGRLCollection & | getGRLCollection () const |
| | Get the good runs list used by the tool.
|
| virtual const Root::TGRLCollection & | getBRLCollection () const |
| | Get the bad runs list used by the tool.
|
| virtual bool | eventPassesFilter (const EventContext &ctx) const |
| | ISkimmingTool method: will retrieve eventInfo from storegate and use that with above methods.
|
| template<class T> |
| const T * | getProperty (const std::string &name) const |
| | Get one of the tool's properties.
|
| const std::string & | msg_level_name () const __attribute__((deprecated)) |
| | A deprecated function for getting the message level's name.
|
| const std::string & | getName (const void *ptr) const |
| | Get the name of an object that is / should be in the event store.
|
| SG::sgkey_t | getKey (const void *ptr) const |
| | Get the (hashed) key of an object that is in the event store.
|
|
| Gaudi::Property< std::vector< std::string > > | m_goodrunslistVec {this, "GoodRunsListVec", {}} |
| Gaudi::Property< std::vector< std::string > > | m_blackrunslistVec {this, "BlackRunsListVec", {}} |
| Root::TGRLCollection | m_grlcollection |
| Root::TGRLCollection | m_brlcollection |
| Gaudi::Property< int > | m_boolop {this, "BoolOperation", 0} |
| Gaudi::Property< bool > | m_passthrough {this, "PassThrough", true} |
| Gaudi::Property< bool > | m_rejectanybrl {this, "RejectBlackRunsInEventSelector", false} |
| Gaudi::Property< bool > | m_useRandomRunNumber {this, "UseRandomRunNumber", false} |
| SG::ReadDecorHandleKey< xAOD::EventInfo > | m_randomRunNumberKey {this, "RandomRunNumber", "EventInfo.RandomRunNumber"} |
| SG::ReadDecorHandleKey< xAOD::EventInfo > | m_randomLumiBlockKey {this, "RandomLumiBlock", "EventInfo.RandomLumiBlockNumber"} |
Tool implementing the GRL selection.
This tool needs to be used to select good lumiblocks for a physics or performance analysis.
$Revision$ $Date$
Definition at line 35 of file GoodRunsListSelectionTool.h.
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc and xAOD::Event both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getName
- Parameters
-
| ptr | The bare pointer to the object that the event store should know about |
- Returns
- The hashed key of the object in the store. If not found, an invalid (zero) key.
Definition at line 119 of file AsgTool.cxx.
119 {
120
121#ifdef XAOD_STANDALONE
122
123
124 return evtStore()->event()->getKey( ptr );
125#else
127 return ( proxy ==
nullptr ? 0 :
proxy->sgkey() );
128#endif
129 }
| const std::string & asg::AsgTool::getName |
( |
const void * | ptr | ) |
const |
|
inherited |
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc and xAOD::Event both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getKey
- Parameters
-
| ptr | The bare pointer to the object that the event store should know about |
- Returns
- The string name of the object in the store. If not found, an empty string.
Definition at line 106 of file AsgTool.cxx.
106 {
107
108#ifdef XAOD_STANDALONE
109
110
111 return evtStore()->event()->getName( ptr );
112#else
114 static const std::string
dummy =
"";
115 return ( proxy ==
nullptr ? dummy :
proxy->name() );
116#endif
117 }
| const std::string & asg::AsgTool::msg_level_name |
( |
| ) |
const |
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
MSG::name( msg().level() )
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
- Returns
- The string name of the current minimum message level that's printed
Definition at line 101 of file AsgTool.cxx.
101 {
102
104 }
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.