ATLAS Offline Software
Loading...
Searching...
No Matches
TileHitToNtuple.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5//****************************************************************************
6// Filename : TileHitToNtuple.h
7// Author : Gia
8// Created : March. 2003
9//
10// DESCRIPTION
11//
12// To create Hit Ntuple file from TileHitContainer
13//
14// Properties (JobOption Parameters):
15//
16// TileHitContainer string key value of Hits 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 TileHitToNtuple_H
27#define TileHitToNtuple_H
28
29#include "GaudiKernel/NTuple.h"
31
32class TileID;
33
34#include <string>
35
37public:
38 //Constructor
39 TileHitToNtuple(const std::string& name, ISvcLocator* pSvcLocator);
40
41 //Destructor
42 virtual ~TileHitToNtuple();
43
44 //Gaudi Hooks
45 StatusCode initialize();
46 StatusCode execute(const EventContext& ctx);
47 StatusCode finalize();
48
49private:
50 NTuple::Tuple* m_ntuplePtr{nullptr};
51 Gaudi::Property<std::string> m_ntupleID{this, "NTupleID", "h30", "ID of ntuple"};
52 Gaudi::Property<std::string> m_ntupleLoc{this, "NTupleLoc", "/FILE1/TileRec", "Pathname of ntuple file"};
53 Gaudi::Property<bool> m_commitNtuple{this, "CommitNtuple", true, "Commit ntuple in execute"};
54 Gaudi::Property<int> m_maxLength{this, "MaxLength", 4999, "Maximum number of hits in ntuple"};
55
56 NTuple::Item<int> m_nchan;
57 NTuple::Item<double> m_tolE;
58
59 NTuple::Array<float> m_energy;
60 NTuple::Array<float> m_time;
61 NTuple::Array<int> m_pmt ;
62
63 NTuple::Array<int> m_detector;
64 NTuple::Array<int> m_side;
65 NTuple::Array<int> m_sample;
66 NTuple::Array<int> m_eta;
67 NTuple::Array<int> m_phi;
68
69 Gaudi::Property<std::string> m_hitContainer{this, "TileHitContainer", "TileHitCnt", "Key value of Hits in TDS"};
70
71 const TileID* m_tileID{nullptr};
72};
73
74#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Gaudi::Property< std::string > m_hitContainer
Gaudi::Property< int > m_maxLength
NTuple::Array< int > m_detector
NTuple::Array< float > m_energy
NTuple::Array< int > m_sample
NTuple::Item< double > m_tolE
NTuple::Array< int > m_side
Gaudi::Property< std::string > m_ntupleLoc
NTuple::Array< int > m_eta
Gaudi::Property< std::string > m_ntupleID
virtual ~TileHitToNtuple()
StatusCode finalize()
TileHitToNtuple(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< bool > m_commitNtuple
StatusCode execute(const EventContext &ctx)
Execute method.
const TileID * m_tileID
NTuple::Array< int > m_phi
StatusCode initialize()
NTuple::Tuple * m_ntuplePtr
NTuple::Array< float > m_time
NTuple::Array< int > m_pmt
NTuple::Item< int > m_nchan
Helper class for TileCal offline identifiers.
Definition TileID.h:67