|
ATLAS Offline Software
|
#include <TriggerMatchingAugmentation.h>
|
| TriggerMatchingAugmentation (const std::string &t, const std::string &n, const IInterface *p) |
|
StatusCode | initialize () |
|
StatusCode | finalize () |
|
virtual StatusCode | addBranches () const |
| Pass the thinning service
More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
◆ decor_t
◆ StoreGateSvc_t
◆ TriggerMatchingAugmentation()
DerivationFramework::TriggerMatchingAugmentation::TriggerMatchingAugmentation |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ addBranches()
StatusCode DerivationFramework::TriggerMatchingAugmentation::addBranches |
( |
| ) |
const |
|
virtual |
Pass the thinning service
Implements DerivationFramework::IAugmentationTool.
Definition at line 111 of file TriggerMatchingAugmentation.cxx.
118 return StatusCode::FAILURE;
123 return StatusCode::FAILURE;
128 return StatusCode::FAILURE;
132 for (
const pair<const string, decor_t>& decorpair :
m_1eDecorList ) {
133 const auto& trigname = decorpair.first;
134 const auto& decor = decorpair.second;
139 for (
const pair<const string, decor_t>& decorpair :
m_1mDecorList ) {
140 const auto& trigname = decorpair.first;
141 const auto& decor = decorpair.second;
146 for (
const pair<const string, decor_t>& decorpair :
m_1gDecorList ) {
147 const auto& trigname = decorpair.first;
148 const auto& decor = decorpair.second;
153 for (
const pair<const string, decor_t>& decorpair :
m_2eDecorList ) {
154 const auto& trigname = decorpair.first;
155 const auto& decor = decorpair.second;
160 for (
const pair<const string, decor_t>& decorpair :
m_2mDecorList ) {
161 const auto& trigname = decorpair.first;
162 const auto& decor = decorpair.second;
167 for (
const pair<const string, decor_t>& decorpair :
m_emDecorList ) {
168 const auto& trigname = decorpair.first;
169 const auto& decor = decorpair.second;
173 return StatusCode::SUCCESS;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize()
StatusCode DerivationFramework::TriggerMatchingAugmentation::finalize |
( |
| ) |
|
◆ initialize()
StatusCode DerivationFramework::TriggerMatchingAugmentation::initialize |
( |
| ) |
|
Definition at line 51 of file TriggerMatchingAugmentation.cxx.
57 ATH_MSG_ERROR(
"No Photons collection provided for TriggerMatchingAugmentation!");
58 return StatusCode::FAILURE;
61 ATH_MSG_ERROR(
"No Electrons collection provided for TriggerMatchingAugmentation!");
62 return StatusCode::FAILURE;
65 ATH_MSG_ERROR(
"No Muon collection provided for TriggerMatchingAugmentation!");
66 return StatusCode::FAILURE;
74 pair<const string, decor_t> decorpair(trigname,decor);
75 if (trigname.find(
"HLT_e")!=std::string::npos) {
77 }
else if (trigname.find(
"HLT_m")!=std::string::npos) {
88 pair<const string, decor_t> decorpair(trigname,decor);
93 pair<const string, decor_t> decorpair(trigname,decor);
98 pair<const string, decor_t> decorpair(trigname,decor);
103 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
static const InterfaceID& DerivationFramework::IAugmentationTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
AlgTool interface methods.
Definition at line 31 of file IAugmentationTool.h.
31 {
return IID_IAugmentationTool; }
◆ matchDi()
Definition at line 198 of file TriggerMatchingAugmentation.cxx.
202 std::vector<const xAOD::IParticle*>
particles;
204 bool fired=
m_trigDec->isPassed( trigger );
205 for(
const auto *
p1 : *collection1) {
206 for(
const auto *
p2: *collection2){
208 if(!decor.isAvailable(*
p1) && !decor.isAvailable(*
p2)) {
224 return StatusCode::SUCCESS;
◆ matchSingle()
Definition at line 177 of file TriggerMatchingAugmentation.cxx.
180 std::vector<const xAOD::IParticle*>
particles;
181 bool fired=
m_trigDec->isPassed( trigger );
182 for(
const auto *
p : *collection) {
184 if(!decor.isAvailable(*
p)) {
191 else decor(*
p)=
false;
193 return StatusCode::SUCCESS;
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_1eDecorList
std::vector< std::pair<const std::string, decor_t> > DerivationFramework::TriggerMatchingAugmentation::m_1eDecorList = {} |
|
private |
◆ m_1gDecorList
std::vector< std::pair<const std::string, decor_t> > DerivationFramework::TriggerMatchingAugmentation::m_1gDecorList = {} |
|
private |
◆ m_1mDecorList
std::vector< std::pair<const std::string, decor_t> > DerivationFramework::TriggerMatchingAugmentation::m_1mDecorList = {} |
|
private |
◆ m_2eDecorList
std::vector< std::pair<const std::string, decor_t> > DerivationFramework::TriggerMatchingAugmentation::m_2eDecorList = {} |
|
private |
◆ m_2eTriggerList
std::vector< std::string > DerivationFramework::TriggerMatchingAugmentation::m_2eTriggerList = {} |
|
private |
◆ m_2mDecorList
std::vector< std::pair<const std::string, decor_t> > DerivationFramework::TriggerMatchingAugmentation::m_2mDecorList = {} |
|
private |
◆ m_2mTriggerList
std::vector< std::string > DerivationFramework::TriggerMatchingAugmentation::m_2mTriggerList = {} |
|
private |
◆ m_decorPrefix
std::string DerivationFramework::TriggerMatchingAugmentation::m_decorPrefix |
|
private |
◆ m_detStore
◆ m_electronContainerName
std::string DerivationFramework::TriggerMatchingAugmentation::m_electronContainerName |
|
private |
◆ m_emDecorList
std::vector< std::pair<const std::string, decor_t> > DerivationFramework::TriggerMatchingAugmentation::m_emDecorList = {} |
|
private |
◆ m_emTriggerList
std::vector< std::string > DerivationFramework::TriggerMatchingAugmentation::m_emTriggerList = {} |
|
private |
◆ m_evtStore
◆ m_matchTool
ToolHandle< Trig::IMatchingTool > DerivationFramework::TriggerMatchingAugmentation::m_matchTool |
|
private |
◆ m_muonContainerName
std::string DerivationFramework::TriggerMatchingAugmentation::m_muonContainerName |
|
private |
◆ m_photonContainerName
std::string DerivationFramework::TriggerMatchingAugmentation::m_photonContainerName |
|
private |
◆ m_singleTriggerList
std::vector< std::string > DerivationFramework::TriggerMatchingAugmentation::m_singleTriggerList = {} |
|
private |
◆ m_trigDec
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
std::string m_decorPrefix
def retrieve(aClass, aKey=None)
ToolHandle< Trig::IMatchingTool > m_matchTool
std::vector< std::pair< const std::string, decor_t > > m_2eDecorList
std::vector< std::string > m_2mTriggerList
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< std::pair< const std::string, decor_t > > m_1mDecorList
std::string m_muonContainerName
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< std::string > m_2eTriggerList
virtual void setOwner(IDataHandleHolder *o)=0
ToolHandle< Trig::TrigDecisionTool > m_trigDec
std::vector< std::pair< const std::string, decor_t > > m_2mDecorList
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
std::vector< std::string > m_singleTriggerList
std::string m_electronContainerName
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
std::vector< std::pair< const std::string, decor_t > > m_1gDecorList
virtual void renounce()=0
SG::AuxElement::Decorator< char > decor_t
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< std::string > m_emTriggerList
std::vector< std::pair< const std::string, decor_t > > m_1eDecorList
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::string m_photonContainerName
StatusCode matchDi(const xAOD::IParticleContainer *collection1, const xAOD::IParticleContainer *collection2, const std::string &trigger, const decor_t &decor) const
std::vector< std::pair< const std::string, decor_t > > m_emDecorList
StatusCode matchSingle(const xAOD::IParticleContainer *collection, const std::string &trigger, const decor_t &decor) const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>