ATLAS Offline Software
TileRawChannelToNtuple.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //****************************************************************************
6 // Filename : TileRawChannelToNtuple.h
7 // Author : Zhifang
8 // Created : Nov. 2002
9 //
10 // DESCRIPTION
11 //
12 // To create RawChannel Ntuple file from RawChannel container
13 //
14 // Properties (JobOption Parameters):
15 //
16 // TileRawChannelContainer string key value of RawChannels in TDS
17 // NtupleLoc string pathname of ntuple file
18 // NtupleID int ID of ntuple
19 //
20 // BUGS:
21 //
22 // History:
23 //
24 //
25 //****************************************************************************
26 #ifndef TileRawChannelToNtuple_H
27 #define TileRawChannelToNtuple_H
28 
30 
31 #include "GaudiKernel/NTuple.h"
35 
36 class TileID;
37 class TileHWID;
38 
39 #include <string>
40 
42 public:
43 
45  virtual ~TileRawChannelToNtuple() = default;
46 
47  //Gaudi Hooks
48  StatusCode initialize() override;
49  StatusCode execute() override;
50  StatusCode finalize() override;
51 
52 private:
53 
54  Gaudi::Property<std::string> m_ntupleLoc{this,
55  "NTupleLoc", "/FILE1/TileRec", "Tile raw channel ntuple location"};
56 
57  Gaudi::Property<std::string> m_ntupleID{this,
58  "NTupleID", "h70", "Tile raw channel ntuple ID"};
59 
61  "TileRawChannelContainer", "TileRawChannelCnt", "Tile raw channel container name."};
62 
67  "TileCablingSvc", "TileCablingSvc", "The Tile cabling service"};
68 
69  NTuple::Tuple* m_ntuplePtr{nullptr};
70 
71  NTuple::Item<int> m_nchan;
72  NTuple::Item<double> m_tolE;
73 
74  NTuple::Array<float> m_energy;
75  NTuple::Array<float> m_time;
76  NTuple::Array<float> m_quality;
77 
78  NTuple::Array<int> m_detector;
79  NTuple::Array<int> m_side;
80  NTuple::Array<int> m_sample;
81  NTuple::Array<int> m_eta;
82  NTuple::Array<int> m_phi;
83  NTuple::Array<int> m_pmt;
84  NTuple::Array<int> m_channel;
85  NTuple::Array<int> m_gain;
86 
87  const TileID* m_tileID{nullptr};
88  const TileHWID* m_tileHWID{nullptr};
89 };
90 
91 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TileRawChannelToNtuple::m_sample
NTuple::Array< int > m_sample
Definition: TileRawChannelToNtuple.h:80
TileRawChannelToNtuple::m_side
NTuple::Array< int > m_side
Definition: TileRawChannelToNtuple.h:79
TileCablingSvc.h
TileRawChannelToNtuple::~TileRawChannelToNtuple
virtual ~TileRawChannelToNtuple()=default
TileRawChannelToNtuple::m_ntuplePtr
NTuple::Tuple * m_ntuplePtr
Definition: TileRawChannelToNtuple.h:69
TileRawChannelToNtuple::m_detector
NTuple::Array< int > m_detector
Definition: TileRawChannelToNtuple.h:78
SG::ReadHandleKey< TileRawChannelContainer >
TileRawChannelToNtuple::m_cablingSvc
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
Definition: TileRawChannelToNtuple.h:66
TileRawChannelToNtuple::execute
StatusCode execute() override
Definition: TileRawChannelToNtuple.cxx:100
TileRawChannelToNtuple::m_ntupleID
Gaudi::Property< std::string > m_ntupleID
Definition: TileRawChannelToNtuple.h:57
AthAlgorithm.h
TileRawChannelContainer.h
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition: TileHWID.h:49
TileRawChannelToNtuple::m_ntupleLoc
Gaudi::Property< std::string > m_ntupleLoc
Definition: TileRawChannelToNtuple.h:54
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileRawChannelToNtuple::m_phi
NTuple::Array< int > m_phi
Definition: TileRawChannelToNtuple.h:82
TileRawChannelToNtuple::m_rawChannelContainerKey
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
Definition: TileRawChannelToNtuple.h:60
TileRawChannelToNtuple::m_nchan
NTuple::Item< int > m_nchan
Definition: TileRawChannelToNtuple.h:71
TileRawChannelToNtuple
Definition: TileRawChannelToNtuple.h:41
AthAlgorithm
Definition: AthAlgorithm.h:47
TileRawChannelToNtuple::m_time
NTuple::Array< float > m_time
Definition: TileRawChannelToNtuple.h:75
TileRawChannelToNtuple::m_tolE
NTuple::Item< double > m_tolE
Definition: TileRawChannelToNtuple.h:72
TileRawChannelToNtuple::m_gain
NTuple::Array< int > m_gain
Definition: TileRawChannelToNtuple.h:85
TileRawChannelToNtuple::m_tileID
const TileID * m_tileID
Definition: TileRawChannelToNtuple.h:87
TileRawChannelToNtuple::m_quality
NTuple::Array< float > m_quality
Definition: TileRawChannelToNtuple.h:76
TileRawChannelToNtuple::finalize
StatusCode finalize() override
Definition: TileRawChannelToNtuple.cxx:158
TileRawChannelToNtuple::m_energy
NTuple::Array< float > m_energy
Definition: TileRawChannelToNtuple.h:74
TileRawChannelToNtuple::initialize
StatusCode initialize() override
Definition: TileRawChannelToNtuple.cxx:42
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
TileRawChannelToNtuple::m_eta
NTuple::Array< int > m_eta
Definition: TileRawChannelToNtuple.h:81
TileRawChannelToNtuple::m_pmt
NTuple::Array< int > m_pmt
Definition: TileRawChannelToNtuple.h:83
TileRawChannelToNtuple::m_tileHWID
const TileHWID * m_tileHWID
Definition: TileRawChannelToNtuple.h:88
TileRawChannelToNtuple::m_channel
NTuple::Array< int > m_channel
Definition: TileRawChannelToNtuple.h:84
ServiceHandle< TileCablingSvc >