ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileRec
TileRec
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
29
#include "
TileConditions/TileCablingSvc.h
"
30
31
#include "GaudiKernel/NTuple.h"
32
#include "
AthenaBaseComps/AthAlgorithm.h
"
33
#include "
TileEvent/TileRawChannelContainer.h
"
34
#include "
StoreGate/ReadHandleKey.h
"
35
36
class
TileID
;
37
class
TileHWID
;
38
39
#include <string>
40
41
class
TileRawChannelToNtuple
:
public
AthAlgorithm
{
42
public
:
43
44
using
AthAlgorithm::AthAlgorithm
;
45
virtual
~TileRawChannelToNtuple
() =
default
;
46
47
//Gaudi Hooks
48
StatusCode
initialize
()
override
;
49
StatusCode
execute
(
const
EventContext& ctx)
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
60
SG::ReadHandleKey<TileRawChannelContainer>
m_rawChannelContainerKey
{
this
,
61
"TileRawChannelContainer"
,
"TileRawChannelCnt"
,
"Tile raw channel container name."
};
62
66
ServiceHandle<TileCablingSvc>
m_cablingSvc
{
this
,
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
AthAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TileCablingSvc.h
TileRawChannelContainer.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition
TileHWID.h:49
TileID
Helper class for TileCal offline identifiers.
Definition
TileID.h:67
TileRawChannelToNtuple
Definition
TileRawChannelToNtuple.h:41
TileRawChannelToNtuple::m_side
NTuple::Array< int > m_side
Definition
TileRawChannelToNtuple.h:79
TileRawChannelToNtuple::initialize
StatusCode initialize() override
Definition
TileRawChannelToNtuple.cxx:42
TileRawChannelToNtuple::m_tileHWID
const TileHWID * m_tileHWID
Definition
TileRawChannelToNtuple.h:88
TileRawChannelToNtuple::m_ntuplePtr
NTuple::Tuple * m_ntuplePtr
Definition
TileRawChannelToNtuple.h:69
TileRawChannelToNtuple::m_ntupleID
Gaudi::Property< std::string > m_ntupleID
Definition
TileRawChannelToNtuple.h:57
TileRawChannelToNtuple::m_time
NTuple::Array< float > m_time
Definition
TileRawChannelToNtuple.h:75
TileRawChannelToNtuple::m_pmt
NTuple::Array< int > m_pmt
Definition
TileRawChannelToNtuple.h:83
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::m_gain
NTuple::Array< int > m_gain
Definition
TileRawChannelToNtuple.h:85
TileRawChannelToNtuple::m_cablingSvc
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
Definition
TileRawChannelToNtuple.h:66
TileRawChannelToNtuple::m_tileID
const TileID * m_tileID
Definition
TileRawChannelToNtuple.h:87
TileRawChannelToNtuple::m_ntupleLoc
Gaudi::Property< std::string > m_ntupleLoc
Definition
TileRawChannelToNtuple.h:54
TileRawChannelToNtuple::~TileRawChannelToNtuple
virtual ~TileRawChannelToNtuple()=default
TileRawChannelToNtuple::m_sample
NTuple::Array< int > m_sample
Definition
TileRawChannelToNtuple.h:80
TileRawChannelToNtuple::m_tolE
NTuple::Item< double > m_tolE
Definition
TileRawChannelToNtuple.h:72
TileRawChannelToNtuple::m_detector
NTuple::Array< int > m_detector
Definition
TileRawChannelToNtuple.h:78
TileRawChannelToNtuple::m_quality
NTuple::Array< float > m_quality
Definition
TileRawChannelToNtuple.h:76
TileRawChannelToNtuple::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
TileRawChannelToNtuple::execute
StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
TileRawChannelToNtuple.cxx:100
TileRawChannelToNtuple::m_channel
NTuple::Array< int > m_channel
Definition
TileRawChannelToNtuple.h:84
TileRawChannelToNtuple::m_phi
NTuple::Array< int > m_phi
Definition
TileRawChannelToNtuple.h:82
TileRawChannelToNtuple::m_eta
NTuple::Array< int > m_eta
Definition
TileRawChannelToNtuple.h:81
TileRawChannelToNtuple::finalize
StatusCode finalize() override
Definition
TileRawChannelToNtuple.cxx:158
TileRawChannelToNtuple::m_energy
NTuple::Array< float > m_energy
Definition
TileRawChannelToNtuple.h:74
Generated on
for ATLAS Offline Software by
1.17.0