ATLAS Offline Software
Loading...
Searching...
No Matches
TileDigitsToNtuple.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 : TileDigitsToNtuple.h
7// Author :
8// Created :
9//
10// DESCRIPTION
11//
12// To create Digits Ntuple file from TileHitContainer
13//
14// Properties (JobOption Parameters):
15//
16// TileDigitsContainer string key value of Digits in TDS
17// NtupleLoc string pathname of ntuple file
18// NtupleID string ID of ntuple
19//
20// BUGS:
21//
22// History:
23//
24//
25//****************************************************************************
26#ifndef TILEDIGITSTONTUPLE_H
27#define TILEDIGITSTONTUPLE_H
28
30
31#include "GaudiKernel/NTuple.h"
34
35class TileID;
36class TileHWID;
37class TileTBID;
38
39#include <string>
40
42 public:
43
45 virtual ~TileDigitsToNtuple() = default;
46
47 //Gaudi Hooks
48 StatusCode initialize() override;
49 StatusCode execute() override;
50 StatusCode finalize() override;
51
52 private:
53
54 Gaudi::Property<bool> m_saveAll{this,
55 "SaveAll", true, "Save all Tile digits"};
56
57 Gaudi::Property<bool> m_saveE4prAndMBTS{this,
58 "SaveE4prAndMBTS", true, "Save Tile digits for E4 prime and MBTS"};
59
60 Gaudi::Property<int> m_saveMaxChannels{this,
61 "SaveMaxChannels", 12288, "Maximum Tile raw channels to save"};
62
63 Gaudi::Property<int> m_commitNtuple{this,
64 "CommitNtuple", true, "Commit ntuple"};
65
66 Gaudi::Property<std::string> m_infoName{this,
67 "TileInfo", "TileInfo", "Tile info name"};
68
69 Gaudi::Property<std::string> m_ntupleLoc{this,
70 "NTupleLoc", "/TILE/TileRec", "Tile digits ntuple location"};
71
72 Gaudi::Property<std::string> m_ntupleID{this,
73 "NTupleID", "h40", "Tile digits ntuple ID"};
74
76 "TileDigitsContainer", "TileDigitsCnt", "Tile digits container name."};
77
78 const TileID* m_tileID{nullptr};
79 const TileHWID* m_tileHWID{nullptr};
80 const TileTBID* m_tileTBID{nullptr};
81
82 NTuple::Tuple* m_ntuplePtr{nullptr};
83
84 NTuple::Item<short> m_nChannel;
85
86 NTuple::Array<short> m_ros;
87 NTuple::Array<short> m_drawer;
88 NTuple::Array<short> m_channel;
89 NTuple::Array<short> m_gain;
90
91 NTuple::Array<short> m_section;
92 NTuple::Array<short> m_side;
93 NTuple::Array<short> m_phi;
94 NTuple::Array<short> m_eta;
95 NTuple::Array<short> m_sample;
96 NTuple::Array<short> m_pmt;
97 NTuple::Array<short> m_adc;
98
99 NTuple::Matrix<short> m_samples;
100
101 std::string m_digitsContainer;
103};
104
105#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.
Gaudi::Property< bool > m_saveAll
NTuple::Item< short > m_nChannel
StatusCode execute() override
NTuple::Array< short > m_gain
NTuple::Array< short > m_phi
const TileTBID * m_tileTBID
NTuple::Tuple * m_ntuplePtr
SG::ReadHandleKey< TileDigitsContainer > m_digitsContainerKey
Gaudi::Property< std::string > m_ntupleID
NTuple::Array< short > m_channel
const TileHWID * m_tileHWID
NTuple::Array< short > m_drawer
Gaudi::Property< std::string > m_infoName
Gaudi::Property< std::string > m_ntupleLoc
Gaudi::Property< bool > m_saveE4prAndMBTS
NTuple::Array< short > m_section
StatusCode initialize() override
StatusCode finalize() override
NTuple::Array< short > m_ros
NTuple::Array< short > m_sample
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< int > m_commitNtuple
virtual ~TileDigitsToNtuple()=default
NTuple::Array< short > m_adc
NTuple::Array< short > m_pmt
NTuple::Matrix< short > m_samples
NTuple::Array< short > m_eta
NTuple::Array< short > m_side
const TileID * m_tileID
Gaudi::Property< int > m_saveMaxChannels
Helper class for TileCal online (hardware) identifiers.
Definition TileHWID.h:49
Helper class for TileCal offline identifiers.
Definition TileID.h:67
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.