ATLAS Offline Software
Truth3CollectionMaker.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Truth3CollectionMaker.h, (c) ATLAS Detector software
8 
9 #ifndef DERIVATIONFRAMEWORK_TRUTH3COLLECTIONMAKER_H
10 #define DERIVATIONFRAMEWORK_TRUTH3COLLECTIONMAKER_H
11 
12 #include <string>
13 
16 #include "GaudiKernel/ToolHandle.h"
17 
19 class IMCTruthClassifier;
20 
21 namespace DerivationFramework {
22 
23  class Truth3CollectionMaker : public ExpressionParserUser<AthAlgTool>, public IAugmentationTool {
24  public:
25  Truth3CollectionMaker(const std::string& t, const std::string& n, const IInterface* p);
27  virtual StatusCode initialize() override;
28  virtual StatusCode finalize() override;
29  virtual StatusCode addBranches() const override;
30 
31  private:
32  mutable std::atomic<unsigned int> m_ntotpart, m_npasspart;
33  std::string m_particlesKey;
34  //std::string m_verticesKey;
35  std::string m_collectionName;
36  std::string m_partString;
37  ToolHandle<IMCTruthClassifier> m_classifier;
39  };
40 }
41 
42 #endif // DERIVATIONFRAMEWORK_TRUTH3COLLECTIONMAKER_H
DerivationFramework::Truth3CollectionMaker::m_collectionName
std::string m_collectionName
Definition: Truth3CollectionMaker.h:35
DerivationFramework::Truth3CollectionMaker::m_partString
std::string m_partString
Definition: Truth3CollectionMaker.h:36
DerivationFramework::Truth3CollectionMaker::m_particlesKey
std::string m_particlesKey
Definition: Truth3CollectionMaker.h:33
IAugmentationTool.h
ExpressionParserUser.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::Truth3CollectionMaker::m_ntotpart
std::atomic< unsigned int > m_ntotpart
Definition: Truth3CollectionMaker.h:32
DerivationFramework::Truth3CollectionMaker
Definition: Truth3CollectionMaker.h:23
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::Truth3CollectionMaker::Truth3CollectionMaker
Truth3CollectionMaker(const std::string &t, const std::string &n, const IInterface *p)
Definition: Truth3CollectionMaker.cxx:20
DerivationFramework::Truth3CollectionMaker::addBranches
virtual StatusCode addBranches() const override
Pass the thinning service
Definition: Truth3CollectionMaker.cxx:86
AthAlgTool.h
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
ExpressionParserUser
Definition: ExpressionParserUser.h:107
DerivationFramework::Truth3CollectionMaker::initialize
virtual StatusCode initialize() override
Definition: Truth3CollectionMaker.cxx:49
DerivationFramework::Truth3CollectionMaker::m_npasspart
std::atomic< unsigned int > m_npasspart
Definition: Truth3CollectionMaker.h:32
IMCTruthClassifier
Definition: IMCTruthClassifier.h:92
DerivationFramework::Truth3CollectionMaker::finalize
virtual StatusCode finalize() override
Definition: Truth3CollectionMaker.cxx:76
DerivationFramework::Truth3CollectionMaker::m_runClassifier
bool m_runClassifier
Definition: Truth3CollectionMaker.h:38
DerivationFramework::Truth3CollectionMaker::~Truth3CollectionMaker
~Truth3CollectionMaker()
Definition: Truth3CollectionMaker.cxx:45
DerivationFramework::Truth3CollectionMaker::m_classifier
ToolHandle< IMCTruthClassifier > m_classifier
Definition: Truth3CollectionMaker.h:37