ATLAS Offline Software
TriggerGenericObjectThinningTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // TriggerGenericObjectThinningTool.h, (c) ATLAS Detector software
8 
9 //Thin collection based if a trigger has passed or not
10 //Just save an empty collection
11 
12 #ifndef DERIVATIONFRAMEWORK_TRIGGERGENERICOBJECTTHINNINGTOOL_H
13 #define DERIVATIONFRAMEWORK_TRIGGERGENERICOBJECTTHINNINGTOOL_H
14 
15 #include <string>
16 
19 
20 
22 #include "GaudiKernel/ToolHandle.h"
25 
27 
28 namespace DerivationFramework {
29 
30  class TriggerGenericObjectThinningTool : public extends<AthAlgTool, IThinningTool> {
31  public:
32  TriggerGenericObjectThinningTool(const std::string& t, const std::string& n, const IInterface* p);
34  virtual StatusCode initialize() override;
35  virtual StatusCode finalize() override;
36  virtual StatusCode doThinning() const override;
37 
38  private:
39  StringProperty m_streamName
40  { this, "StreamName", "", "Name of the stream being thinned" };
42  { this, "ContainerName", "", "" };
43 
44  private:
45  Gaudi::Property<std::vector<std::string>> m_triggerListAND{this,"TriggerListAND", {}};
46  Gaudi::Property<std::vector<std::string>> m_triggerListOR{this,"TriggerListOR", {}};
47  Gaudi::Property<std::vector<std::string>> m_triggerListORHLTOnly{this,"TriggerListORHLTOnly", {}, "Decision is based on HLT only (unseeded triggers)"};
48  PublicToolHandle<Trig::TrigDecisionTool> m_trigDec{this, "TrigDecisionTool", "Trig::TrigDecisionTool/TrigDecisionTool"};
49 
50  bool eventPassedFilter() const;
51  };
52 }
53 
54 #endif // DERIVATIONFRAMEWORK_TRIGGERSKIMMINGTOOL_H
DerivationFramework::TriggerGenericObjectThinningTool::m_streamName
StringProperty m_streamName
Definition: TriggerGenericObjectThinningTool.h:40
DerivationFramework::TriggerGenericObjectThinningTool::~TriggerGenericObjectThinningTool
~TriggerGenericObjectThinningTool()
Definition: TriggerGenericObjectThinningTool.cxx:46
DerivationFramework::TriggerGenericObjectThinningTool::m_triggerListAND
Gaudi::Property< std::vector< std::string > > m_triggerListAND
Definition: TriggerGenericObjectThinningTool.h:45
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition: ThinningHandleKey.h:38
DerivationFramework::TriggerGenericObjectThinningTool::doThinning
virtual StatusCode doThinning() const override
Definition: TriggerGenericObjectThinningTool.cxx:68
IThinningTool.h
TrigDecisionTool.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::TriggerGenericObjectThinningTool::TriggerGenericObjectThinningTool
TriggerGenericObjectThinningTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: TriggerGenericObjectThinningTool.cxx:38
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IParticleContainer.h
AthAlgTool.h
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::TriggerGenericObjectThinningTool::m_triggerListORHLTOnly
Gaudi::Property< std::vector< std::string > > m_triggerListORHLTOnly
Definition: TriggerGenericObjectThinningTool.h:47
DerivationFramework::TriggerGenericObjectThinningTool::m_SGKey
SG::ThinningHandleKey< xAOD::IParticleContainer > m_SGKey
Definition: TriggerGenericObjectThinningTool.h:42
DerivationFramework::TriggerGenericObjectThinningTool::finalize
virtual StatusCode finalize() override
Definition: TriggerGenericObjectThinningTool.cxx:61
DerivationFramework::TriggerGenericObjectThinningTool::m_triggerListOR
Gaudi::Property< std::vector< std::string > > m_triggerListOR
Definition: TriggerGenericObjectThinningTool.h:46
DerivationFramework::TriggerGenericObjectThinningTool
Definition: TriggerGenericObjectThinningTool.h:30
DerivationFramework::TriggerGenericObjectThinningTool::m_trigDec
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec
Definition: TriggerGenericObjectThinningTool.h:48
DerivationFramework::TriggerGenericObjectThinningTool::initialize
virtual StatusCode initialize() override
Definition: TriggerGenericObjectThinningTool.cxx:50
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
DerivationFramework::TriggerGenericObjectThinningTool::eventPassedFilter
bool eventPassedFilter() const
Definition: TriggerGenericObjectThinningTool.cxx:6