ATLAS Offline Software
BucketDumperAlg.h
Go to the documentation of this file.
1 #ifndef MUONCSVDUMP_BucketDumperAlg_H
2 #define MUONCSVDUMP_BucketDumperAlg_H
3 /*
4  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5 */
6 
9 
15 
20 
24 
27 
29 #include "CLHEP/Random/RandomEngine.h"
30 
31 
32 namespace MuonR4{
34 
35  public:
37  ~BucketDumperAlg() = default;
38 
39  virtual StatusCode initialize() override final;
40  virtual StatusCode finalize() override final;
41  virtual StatusCode execute() override final;
42 
43  private:
44 
46 
47  SG::ReadHandleKey<SpacePointContainer> m_readKey{this, "ReadKey", "MuonSpacePoints", "Key to the space point container"};
48  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
49 
50  SG::ReadHandleKey<MuonR4::SegmentContainer> m_inSegmentKey{this, "SegmentKey", "R4MuonSegments"};
51 
52  SG::ReadHandleKey<ActsGeometryContext> m_geoCtxKey{this, "AlignmentKey", "ActsAlignment", "cond handle key"};
53 
54  Gaudi::Property<bool> m_isMC{this, "isMC", true};
55  Gaudi::Property<double> m_fracToKeep{this,"dataFracToKeep", 1}; // 0.055 to balanced dataset without MC
56  Gaudi::Property<std::string> m_streamName{this, "StreamName", ""};
57  ServiceHandle<IAthRNGSvc> m_rndmSvc{this, "RndmSvc", "AthRNGSvc", ""};
58  CLHEP::HepRandomEngine* getRandomEngine(const EventContext&ctx) const;
59 
60  MuonVal::MuonTesterTree m_tree{"MuonBucketDump","MuonBucketDump"};
61 
67 
70 
77 
80 
86 
92 
99 
100  size_t m_event{0};
101 
102 };
103 }
104 #endif
ReadHandleKeyArray.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
MuonR4::BucketDumperAlg::m_spoint_measuresPhi
MuonVal::VectorBranch< bool > & m_spoint_measuresPhi
Definition: BucketDumperAlg.h:88
MuonR4::BucketDumperAlg::m_spoint_measuresEta
MuonVal::VectorBranch< bool > & m_spoint_measuresEta
Definition: BucketDumperAlg.h:87
MuonR4::BucketDumperAlg::m_spoint_dimension
MuonVal::VectorBranch< unsigned int > & m_spoint_dimension
Definition: BucketDumperAlg.h:91
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition: AthHistogramAlgorithm.cxx:31
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonR4::BucketDumperAlg::getRandomEngine
CLHEP::HepRandomEngine * getRandomEngine(const EventContext &ctx) const
Definition: BucketDumperAlg.cxx:196
MuonR4::BucketDumperAlg::m_inSegmentKey
SG::ReadHandleKey< MuonR4::SegmentContainer > m_inSegmentKey
Definition: BucketDumperAlg.h:50
MuonR4::BucketDumperAlg::m_spoint_adc
MuonVal::VectorBranch< uint16_t > & m_spoint_adc
Definition: BucketDumperAlg.h:78
MuonR4::BucketDumperAlg::m_bucket_max
MuonVal::ScalarBranch< float > & m_bucket_max
Definition: BucketDumperAlg.h:63
ActsGeometryContext.h
calibdata.chamber
chamber
Definition: calibdata.py:32
MuonR4::BucketDumperAlg::m_tree
MuonVal::MuonTesterTree m_tree
Definition: BucketDumperAlg.h:60
MuonR4::BucketDumperAlg::m_spoint_covYX
MuonVal::VectorBranch< float > & m_spoint_covYX
Definition: BucketDumperAlg.h:83
MuonR4::BucketDumperAlg::execute
virtual StatusCode execute() override final
Definition: BucketDumperAlg.cxx:44
MuonR4::BucketDumperAlg::m_spoint_id
MuonVal::MuonIdentifierBranch m_spoint_id
Definition: BucketDumperAlg.h:71
MuonR4::BucketDumperAlg::m_spoint_globalPosition
MuonVal::ThreeVectorBranch m_spoint_globalPosition
Definition: BucketDumperAlg.h:69
MuonR4::BucketDumperAlg::finalize
virtual StatusCode finalize() override final
Definition: BucketDumperAlg.cxx:39
MuonVal::VectorBranch< uint16_t >
MuonTesterTree.h
ThreeVectorBranch.h
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
MuonR4::BucketDumperAlg::m_geoCtxKey
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Definition: BucketDumperAlg.h:52
MuonR4::BucketDumperAlg::m_bucket_min
MuonVal::ScalarBranch< float > & m_bucket_min
Definition: BucketDumperAlg.h:62
MuonR4::BucketDumperAlg::m_spoint_mdtLayer
MuonVal::ScalarBranch< short > & m_spoint_mdtLayer
Definition: BucketDumperAlg.h:75
MuonR4::BucketDumperAlg::m_spoint_nPhiInstances
MuonVal::VectorBranch< unsigned int > & m_spoint_nPhiInstances
Definition: BucketDumperAlg.h:90
xAOD::int16_t
setScaleOne setStatusOne setSaturated int16_t
Definition: gFexGlobalRoI_v1.cxx:55
MuonR4::BucketDumperAlg::m_rndmSvc
ServiceHandle< IAthRNGSvc > m_rndmSvc
Definition: BucketDumperAlg.h:57
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonR4::BucketDumperAlg::m_segmentPos
MuonVal::ThreeVectorBranch m_segmentPos
Definition: BucketDumperAlg.h:95
MuonR4::BucketDumperAlg::m_spoint_covXY
MuonVal::VectorBranch< float > & m_spoint_covXY
Definition: BucketDumperAlg.h:82
MuonSegmentContainer.h
MuonR4::BucketDumperAlg::m_spoint_covY
MuonVal::VectorBranch< float > & m_spoint_covY
Definition: BucketDumperAlg.h:84
AthHistogramAlgorithm.h
MuonR4::BucketDumperAlg::m_bucket_layers
MuonVal::ScalarBranch< uint16_t > & m_bucket_layers
Definition: BucketDumperAlg.h:66
AthAlgorithm.h
MuonR4::BucketDumperAlg::m_spoint_isMdt
MuonVal::VectorBranch< bool > & m_spoint_isMdt
Definition: BucketDumperAlg.h:74
MuonR4::BucketDumperAlg::m_spoint_localPosition
MuonVal::ThreeVectorBranch m_spoint_localPosition
Definition: BucketDumperAlg.h:68
MuonR4::BucketDumperAlg::m_spoint_isStrip
MuonVal::VectorBranch< bool > & m_spoint_isStrip
Definition: BucketDumperAlg.h:73
MuonGMR4
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
Definition: MdtCalibInput.h:20
MuonR4::BucketDumperAlg::~BucketDumperAlg
~BucketDumperAlg()=default
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
IdentifierBranch.h
MuonR4::BucketDumperAlg::m_isMC
Gaudi::Property< bool > m_isMC
Definition: BucketDumperAlg.h:54
MuonR4::BucketDumperAlg::m_spoint_mdtTube
MuonVal::ScalarBranch< short > & m_spoint_mdtTube
Definition: BucketDumperAlg.h:76
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonR4::BucketDumperAlg::m_fracToKeep
Gaudi::Property< double > m_fracToKeep
Definition: BucketDumperAlg.h:55
MuonPatternContainer.h
MuonDetectorManager.h
MuonSimHitContainer.h
MuonR4::BucketDumperAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: BucketDumperAlg.h:48
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
MuonR4::BucketDumperAlg::m_spoint_mat
MuonVal::MatrixBranch< int16_t > & m_spoint_mat
Definition: BucketDumperAlg.h:94
MuonR4::BucketDumperAlg::m_spoint_driftR
MuonVal::VectorBranch< float > & m_spoint_driftR
Definition: BucketDumperAlg.h:85
ReadCondHandleKey.h
MuonR4::BucketDumperAlg::initialize
virtual StatusCode initialize() override final
Definition: BucketDumperAlg.cxx:26
MuonVal::ScalarBranch< float >
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
MuonR4::BucketDumperAlg::m_spoint_layer
MuonVal::VectorBranch< uint16_t > & m_spoint_layer
Definition: BucketDumperAlg.h:72
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonVal::MuonIdentifierBranch
Class to dump the basic properties of an Identifier into an n-tuple StationName -> BIS,...
Definition: IdentifierBranch.h:21
MuonR4::BucketDumperAlg::m_spoint_tdc
MuonVal::VectorBranch< uint16_t > & m_spoint_tdc
Definition: BucketDumperAlg.h:79
MuonR4::BucketDumperAlg::m_bucket_spacePoints
MuonVal::ScalarBranch< uint16_t > & m_bucket_spacePoints
Definition: BucketDumperAlg.h:64
MuonR4::BucketDumperAlg::m_bucket_segments
MuonVal::ScalarBranch< uint16_t > & m_bucket_segments
Definition: BucketDumperAlg.h:65
MuonR4::BucketDumperAlg::m_event
size_t m_event
Definition: BucketDumperAlg.h:100
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
MuonVal::MatrixBranch< int16_t >
MuonR4::BucketDumperAlg::m_segment_numberDoF
MuonVal::VectorBranch< float > & m_segment_numberDoF
Definition: BucketDumperAlg.h:98
SpacePointContainer.h
MuonR4::BucketDumperAlg::m_segment_chiSquared
MuonVal::VectorBranch< float > & m_segment_chiSquared
Definition: BucketDumperAlg.h:97
MuonR4::BucketDumperAlg::fillChamberInfo
void fillChamberInfo(const MuonGMR4::Chamber *chamber)
ReadDecorHandle.h
Handle class for reading a decoration on an object.
MuonR4::BucketDumperAlg::m_readKey
SG::ReadHandleKey< SpacePointContainer > m_readKey
Definition: BucketDumperAlg.h:47
MuonVal::MuonTesterTree::newMatrix
MatrixBranch< T > & newMatrix(const std::string &name)
MuonR4::BucketDumperAlg::m_streamName
Gaudi::Property< std::string > m_streamName
Definition: BucketDumperAlg.h:56
MuonR4::BucketDumperAlg::m_segmentDir
MuonVal::ThreeVectorBranch m_segmentDir
Definition: BucketDumperAlg.h:96
MuonR4::BucketDumperAlg::m_spoint_nEtaInstances
MuonVal::VectorBranch< unsigned int > & m_spoint_nEtaInstances
Definition: BucketDumperAlg.h:89
MuonR4::BucketDumperAlg::m_spoint_covX
MuonVal::VectorBranch< float > & m_spoint_covX
Definition: BucketDumperAlg.h:81
MuonR4::BucketDumperAlg::m_spoint_nSegments
MuonVal::VectorBranch< uint16_t > & m_spoint_nSegments
Definition: BucketDumperAlg.h:93
IMuonIdHelperSvc.h
MuonR4::BucketDumperAlg
Definition: BucketDumperAlg.h:33
IAthRNGSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >