ATLAS Offline Software
Loading...
Searching...
No Matches
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
28namespace 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
HandleKey object for adding thinning to an object.
Gaudi::Property< std::vector< std::string > > m_triggerListOR
TriggerGenericObjectThinningTool(const std::string &t, const std::string &n, const IInterface *p)
Gaudi::Property< std::vector< std::string > > m_triggerListAND
SG::ThinningHandleKey< xAOD::IParticleContainer > m_SGKey
Gaudi::Property< std::vector< std::string > > m_triggerListORHLTOnly
HandleKey object for adding thinning to an object.
THE reconstruction tool.