ATLAS Offline Software
Loading...
Searching...
No Matches
TileTBHitToNtuple.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 : TileTBHitToNtuple.h
7// Author : Anna
8// Created : June 2004
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 int ID of ntuple
19//
20// BUGS:
21//
22// History:
23//
24//
25//****************************************************************************
26#ifndef TileTBHitToNtuple_H
27#define TileTBHitToNtuple_H
28
29#include "GaudiKernel/NTuple.h"
31
32class TileTBID;
33
34#include <string>
35
37public:
38 //Constructor
39 TileTBHitToNtuple(const std::string& name, ISvcLocator* pSvcLocator);
40
41 //Destructor
42 virtual ~TileTBHitToNtuple();
43
44 //Gaudi Hooks
45 StatusCode initialize();
46 StatusCode execute();
47 StatusCode finalize();
48
49private:
50 NTuple::Tuple* m_ntuplePtr;
51 std::string m_ntupleID;
52 std::string m_ntupleLoc;
53
54 NTuple::Item<int> m_nchan;
55 NTuple::Item<double> m_tolE;
56
57 NTuple::Array<float> m_energy;
58 NTuple::Array<float> m_time;
59
60 NTuple::Array<int> m_type;
61 NTuple::Array<int> m_channel;
62 NTuple::Array<int> m_module;
63
64 std::string m_hitContainer;
65
67};
68
69#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
NTuple::Array< int > m_channel
NTuple::Array< float > m_time
const TileTBID * m_tileTBID
NTuple::Item< int > m_nchan
NTuple::Tuple * m_ntuplePtr
std::string m_hitContainer
NTuple::Array< float > m_energy
NTuple::Array< int > m_type
NTuple::Array< int > m_module
NTuple::Item< double > m_tolE
TileTBHitToNtuple(const std::string &name, ISvcLocator *pSvcLocator)
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.