ATLAS Offline Software
GenericTruthThinning.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // GenericTruthThinning.h, (c) ATLAS Detector software
8 
9 #ifndef DERIVATIONFRAMEWORK_GENERICTRUTHTHINNING_H
10 #define DERIVATIONFRAMEWORK_GENERICTRUTHTHINNING_H
11 
12 #include <string>
13 #include <atomic>
14 
21 #include "GaudiKernel/ToolHandle.h"
22 
24 
25 namespace DerivationFramework {
26 
28  class GenericTruthThinning : public extends<ExpressionParserUser<AthAlgTool,kGenericTruthThinningParserNum>, IThinningTool> {
29  public:
30  GenericTruthThinning(const std::string& t, const std::string& n, const IInterface* p);
31  virtual ~GenericTruthThinning();
32  virtual StatusCode initialize() override;
33  virtual StatusCode finalize() override;
34  virtual StatusCode doThinning() const override;
35 
36  private:
37  mutable std::atomic<unsigned int> m_ntotvtx, m_ntotpart, m_npassvtx, m_npasspart;
38  StringProperty m_streamName
39  { this, "StreamName", "", "Name of the stream being thinned" };
41  { this, "ParticlesKey", "TruthParticles", "" };
43  { this, "VerticesKey", "TruthVertices", "" };
44  std::string m_eventsKey;
45  std::string m_partString;
46  //std::string m_vtxString;
51  };
52 }
53 
54 #endif // DERIVATIONFRAMEWORK_GENERICTRUTHTHINNING_H
DerivationFramework::GenericTruthThinning::m_tauHandling
bool m_tauHandling
Definition: GenericTruthThinning.h:50
DerivationFramework::GenericTruthThinning
Definition: GenericTruthThinning.h:28
DerivationFramework::GenericTruthThinning::m_eventsKey
std::string m_eventsKey
Definition: GenericTruthThinning.h:44
DerivationFramework::GenericTruthThinning::m_preserveAncestors
bool m_preserveAncestors
Definition: GenericTruthThinning.h:49
DerivationFramework::GenericTruthThinning::m_ntotvtx
std::atomic< unsigned int > m_ntotvtx
Definition: GenericTruthThinning.h:37
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition: ThinningHandleKey.h:38
ExpressionParserUser.h
DerivationFramework::kGenericTruthThinningPartParser
@ kGenericTruthThinningPartParser
Definition: GenericTruthThinning.h:27
TruthVertexContainer.h
DerivationFramework::GenericTruthThinning::m_partString
std::string m_partString
Definition: GenericTruthThinning.h:45
IThinningTool.h
DerivationFramework::GenericTruthThinning::finalize
virtual StatusCode finalize() override
Definition: GenericTruthThinning.cxx:76
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::GenericTruthThinning::m_streamName
StringProperty m_streamName
Definition: GenericTruthThinning.h:39
DerivationFramework::kGenericTruthThinningParserNum
@ kGenericTruthThinningParserNum
Definition: GenericTruthThinning.h:27
DerivationFramework::GenericTruthThinning::m_verticesKey
SG::ThinningHandleKey< xAOD::TruthVertexContainer > m_verticesKey
Definition: GenericTruthThinning.h:43
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
DerivationFramework::GenericTruthThinning::m_npasspart
std::atomic< unsigned int > m_npasspart
Definition: GenericTruthThinning.h:37
AthAlgTool.h
DerivationFramework::GenericTruthThinning::m_npassvtx
std::atomic< unsigned int > m_npassvtx
Definition: GenericTruthThinning.h:37
DerivationFramework::GenericTruthThinning::m_ntotpart
std::atomic< unsigned int > m_ntotpart
Definition: GenericTruthThinning.h:37
DerivationFramework::GenericTruthThinning::m_particlesKey
SG::ThinningHandleKey< xAOD::TruthParticleContainer > m_particlesKey
Definition: GenericTruthThinning.h:41
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::GenericTruthThinning::m_preserveGeneratorDescendants
bool m_preserveGeneratorDescendants
Definition: GenericTruthThinning.h:48
DerivationFramework::GenericTruthThinning::initialize
virtual StatusCode initialize() override
Definition: GenericTruthThinning.cxx:53
DecayGraphHelper.h
DerivationFramework::GenericTruthThinning::GenericTruthThinning
GenericTruthThinning(const std::string &t, const std::string &n, const IInterface *p)
Definition: GenericTruthThinning.cxx:24
DerivationFramework::GenericTruthThinning::doThinning
virtual StatusCode doThinning() const override
Definition: GenericTruthThinning.cxx:86
DerivationFramework::GenericTruthThinning::m_preserveDescendants
bool m_preserveDescendants
Definition: GenericTruthThinning.h:47
DerivationFramework::GenericTruthThinning::~GenericTruthThinning
virtual ~GenericTruthThinning()
Definition: GenericTruthThinning.cxx:49
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
DerivationFramework::EGenericTruthThinningParser
EGenericTruthThinningParser
Definition: GenericTruthThinning.h:27
TruthEventContainer.h