ATLAS Offline Software
MbtsToVectorsTool.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // MbtsToVectorsTool.h
8 // Header file for class MBTSToVectors
10 #ifndef DERIVATIONFRAMEWORK_DERIVATIONFRAMEWORKTILECAL_MBTSTOVECTORSTOOL_H
11 #define DERIVATIONFRAMEWORK_DERIVATIONFRAMEWORKTILECAL_MBTSTOVECTORSTOOL_H 1
12 
14 
15 // FrameWork includes
19 
20 // PhysicsAnalysis/DerivationFramework/DerivationFrameworkInterfaces includes
22 
23 // STL includes
24 #include <string>
25 
26 // Forward declaration
27 class TileTBID;
28 
29 namespace DerivationFramework {
30 
31  class MbtsToVectorsTool: virtual public IAugmentationTool
32  , public AthAlgTool
33  {
34 
35  public:
36 
38  MbtsToVectorsTool( const std::string& type, const std::string& name, const IInterface* parent );
39 
40  virtual StatusCode addBranches() const override final;
41  virtual StatusCode initialize() override final;
42 
43  private:
44 
45  Gaudi::Property<std::string> m_prefix{this, "Prefix", "mbts_"};
46  Gaudi::Property<bool> m_saveEtaPhi{this, "SaveEtaPhiInfo", true};
47 
48  SG::ReadHandleKey<TileCellContainer> m_cellContainerKey{this, "CellContainer", "MBTSContainer"};
49 
54  SG::WriteHandleKey<std::vector<int> > m_qualityKey{this, "Quality", "quality"};
56  SG::WriteHandleKey<std::vector<int> > m_moduleKey{this, "Module", "module"};
57  SG::WriteHandleKey<std::vector<int> > m_channelKey{this, "Channel", "channel"};
58 
59  const TileTBID* m_tileTBID = nullptr;
60 
61  static const unsigned int MAX_MBTS_COUNTER{32};
62  };
63 
64 }
65 
66 
67 #endif //> !DERIVATIONFRAMEWORK_DERIVATIONFRAMEWORKTILECAL_MBTSTOVECTORSTOOL_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::MbtsToVectorsTool::m_timeKey
SG::WriteHandleKey< std::vector< float > > m_timeKey
Definition: MbtsToVectorsTool.h:51
DerivationFramework::MbtsToVectorsTool::m_typeKey
SG::WriteHandleKey< std::vector< int > > m_typeKey
Definition: MbtsToVectorsTool.h:55
DerivationFramework::MbtsToVectorsTool::addBranches
virtual StatusCode addBranches() const override final
Pass the thinning service
Definition: MbtsToVectorsTool.cxx:64
IAugmentationTool.h
DerivationFramework::MbtsToVectorsTool::m_qualityKey
SG::WriteHandleKey< std::vector< int > > m_qualityKey
Definition: MbtsToVectorsTool.h:54
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::MbtsToVectorsTool::m_prefix
Gaudi::Property< std::string > m_prefix
Definition: MbtsToVectorsTool.h:45
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::MbtsToVectorsTool::m_etaKey
SG::WriteHandleKey< std::vector< float > > m_etaKey
Definition: MbtsToVectorsTool.h:52
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
DerivationFramework::MbtsToVectorsTool::MAX_MBTS_COUNTER
static const unsigned int MAX_MBTS_COUNTER
Definition: MbtsToVectorsTool.h:61
DerivationFramework::MbtsToVectorsTool::m_saveEtaPhi
Gaudi::Property< bool > m_saveEtaPhi
Definition: MbtsToVectorsTool.h:46
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::MbtsToVectorsTool::m_tileTBID
const TileTBID * m_tileTBID
Definition: MbtsToVectorsTool.h:59
DerivationFramework::MbtsToVectorsTool
Definition: MbtsToVectorsTool.h:33
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DerivationFramework::MbtsToVectorsTool::m_energyKey
SG::WriteHandleKey< std::vector< float > > m_energyKey
Definition: MbtsToVectorsTool.h:50
DerivationFramework::MbtsToVectorsTool::m_channelKey
SG::WriteHandleKey< std::vector< int > > m_channelKey
Definition: MbtsToVectorsTool.h:57
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
DerivationFramework::MbtsToVectorsTool::m_cellContainerKey
SG::ReadHandleKey< TileCellContainer > m_cellContainerKey
Definition: MbtsToVectorsTool.h:48
DerivationFramework::MbtsToVectorsTool::m_moduleKey
SG::WriteHandleKey< std::vector< int > > m_moduleKey
Definition: MbtsToVectorsTool.h:56
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TileTBID
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.
Definition: Calorimeter/CaloIdentifier/CaloIdentifier/TileTBID.h:65
DerivationFramework::MbtsToVectorsTool::m_phiKey
SG::WriteHandleKey< std::vector< float > > m_phiKey
Definition: MbtsToVectorsTool.h:53
AthAlgTool
Definition: AthAlgTool.h:26
TileContainer.h
DerivationFramework::MbtsToVectorsTool::MbtsToVectorsTool
MbtsToVectorsTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition: MbtsToVectorsTool.cxx:25
DerivationFramework::MbtsToVectorsTool::initialize
virtual StatusCode initialize() override final
Definition: MbtsToVectorsTool.cxx:31