ATLAS Offline Software
TileHitToNtuple.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 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 
32 class TileID;
33 
34 #include <string>
35 
36 class TileHitToNtuple : public AthAlgorithm {
37 public:
38  //Constructor
39  TileHitToNtuple(const std::string& name, ISvcLocator* pSvcLocator);
40 
41  //Destructor
42  virtual ~TileHitToNtuple();
43 
44  //Gaudi Hooks
48 
49 private:
50  NTuple::Tuple* m_ntuplePtr;
51  std::string m_ntupleID;
52  std::string m_ntupleLoc;
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  std::string m_hitContainer;
70 
71  const TileID* m_tileID;
72 };
73 
74 #endif
TileHitToNtuple::m_energy
NTuple::Array< float > m_energy
Definition: TileHitToNtuple.h:59
TileHitToNtuple::m_ntuplePtr
NTuple::Tuple * m_ntuplePtr
Definition: TileHitToNtuple.h:50
TileHitToNtuple::initialize
StatusCode initialize()
Definition: TileHitToNtuple.cxx:59
TileHitToNtuple
Definition: TileHitToNtuple.h:36
TileHitToNtuple::finalize
StatusCode finalize()
Definition: TileHitToNtuple.cxx:188
TileHitToNtuple::m_ntupleLoc
std::string m_ntupleLoc
Definition: TileHitToNtuple.h:52
TileHitToNtuple::~TileHitToNtuple
virtual ~TileHitToNtuple()
Definition: TileHitToNtuple.cxx:51
TileHitToNtuple::m_sample
NTuple::Array< int > m_sample
Definition: TileHitToNtuple.h:65
AthAlgorithm.h
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
TileHitToNtuple::TileHitToNtuple
TileHitToNtuple(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TileHitToNtuple.cxx:35
TileHitToNtuple::m_maxLength
int m_maxLength
Definition: TileHitToNtuple.h:54
TileHitToNtuple::m_hitContainer
std::string m_hitContainer
Definition: TileHitToNtuple.h:69
TileHitToNtuple::m_time
NTuple::Array< float > m_time
Definition: TileHitToNtuple.h:60
AthAlgorithm
Definition: AthAlgorithm.h:47
TileHitToNtuple::m_nchan
NTuple::Item< int > m_nchan
Definition: TileHitToNtuple.h:56
TileHitToNtuple::m_tolE
NTuple::Item< double > m_tolE
Definition: TileHitToNtuple.h:57
TileHitToNtuple::m_phi
NTuple::Array< int > m_phi
Definition: TileHitToNtuple.h:67
TileHitToNtuple::m_side
NTuple::Array< int > m_side
Definition: TileHitToNtuple.h:64
TileHitToNtuple::m_ntupleID
std::string m_ntupleID
Definition: TileHitToNtuple.h:51
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TileHitToNtuple::m_pmt
NTuple::Array< int > m_pmt
Definition: TileHitToNtuple.h:61
TileHitToNtuple::execute
StatusCode execute()
Definition: TileHitToNtuple.cxx:113
TileHitToNtuple::m_commitNtuple
bool m_commitNtuple
Definition: TileHitToNtuple.h:53
TileHitToNtuple::m_detector
NTuple::Array< int > m_detector
Definition: TileHitToNtuple.h:63
TileHitToNtuple::m_tileID
const TileID * m_tileID
Definition: TileHitToNtuple.h:71
TileHitToNtuple::m_eta
NTuple::Array< int > m_eta
Definition: TileHitToNtuple.h:66