ATLAS Offline Software
Loading...
Searching...
No Matches
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
36class TileID;
37class TileHWID;
38
39#include <string>
40
42public:
43
45 virtual ~TileRawChannelToNtuple() = default;
46
47 //Gaudi Hooks
48 StatusCode initialize() override;
49 StatusCode execute() override;
50 StatusCode finalize() override;
51
52private:
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
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Property holding a SG store/key/clid from which a ReadHandle is made.
Helper class for TileCal online (hardware) identifiers.
Definition TileHWID.h:49
Helper class for TileCal offline identifiers.
Definition TileID.h:67
NTuple::Array< int > m_side
StatusCode initialize() override
Gaudi::Property< std::string > m_ntupleID
NTuple::Array< float > m_time
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
NTuple::Array< int > m_gain
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
Gaudi::Property< std::string > m_ntupleLoc
virtual ~TileRawChannelToNtuple()=default
NTuple::Array< int > m_sample
NTuple::Item< double > m_tolE
NTuple::Array< int > m_detector
NTuple::Array< float > m_quality
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
NTuple::Array< int > m_channel
NTuple::Array< float > m_energy