ATLAS Offline Software
Loading...
Searching...
No Matches
TileCellToNtuple.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 : TileCellToNtuple.h
7// Author : Zhifang
8// Created : Jan. 2003
9//
10// DESCRIPTION
11//
12// To create Cell Ntuple file from CaloCell container
13//
14// Properties (JobOption Parameters):
15//
16// TileCellContainer string key value of Cells 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 TileCellToNtuple_H
27#define TileCellToNtuple_H
28
29#include "GaudiKernel/NTuple.h"
31
32class TileID;
33class TileTBID;
34
35#include <string>
36
38public:
39 //Constructor
40 TileCellToNtuple(const std::string& name, ISvcLocator* pSvcLocator);
41
42 //Destructor
43 virtual ~TileCellToNtuple();
44
45 //Gaudi Hooks
46 StatusCode initialize();
47 StatusCode execute(const EventContext& ctx);
48 StatusCode finalize();
49
50private:
51 NTuple::Tuple* m_ntuplePtr{nullptr};
52 Gaudi::Property<std::string> m_ntupleID{this, "NTupleID", "h110", "ID of ntuple"};
53 Gaudi::Property<std::string> m_ntupleLoc{this, "NTupleLoc", "/FILE1/TileRec", "pathname of ntuple file"};
54 Gaudi::Property<bool> m_scinCells{this, "ScinCells", true, "Read scintillator (MBTS) cells from TileCellContainer"};
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_enediff;
61 NTuple::Array<float> m_time;
62 NTuple::Array<float> m_quality;
63
64 NTuple::Array<int> m_detector;
65 NTuple::Array<int> m_side;
66 NTuple::Array<int> m_sample;
67 NTuple::Array<int> m_eta;
68 NTuple::Array<int> m_phi;
69
70 NTuple::Array<int> m_type;
71 NTuple::Array<int> m_channel;
72 NTuple::Array<int> m_module;
73
74 Gaudi::Property<std::string> m_cellContainer{this, "TileCellContainer", "MBTSContainer", "key value of Cells in TDS"}; // "TileCellContainerKey";
75
76 const TileID* m_tileID{nullptr};
77 const TileTBID* m_tileTBID{nullptr};
78};
79
80#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
const TileTBID * m_tileTBID
NTuple::Array< int > m_channel
Gaudi::Property< std::string > m_ntupleID
Gaudi::Property< std::string > m_ntupleLoc
NTuple::Array< int > m_eta
TileCellToNtuple(const std::string &name, ISvcLocator *pSvcLocator)
NTuple::Array< float > m_time
NTuple::Array< int > m_side
NTuple::Array< int > m_type
NTuple::Array< float > m_quality
NTuple::Array< int > m_module
NTuple::Item< int > m_nchan
NTuple::Array< float > m_energy
NTuple::Array< int > m_phi
StatusCode initialize()
Gaudi::Property< bool > m_scinCells
Gaudi::Property< std::string > m_cellContainer
NTuple::Array< int > m_sample
NTuple::Item< double > m_tolE
NTuple::Array< float > m_enediff
const TileID * m_tileID
StatusCode execute(const EventContext &ctx)
Execute method.
NTuple::Array< int > m_detector
NTuple::Tuple * m_ntuplePtr
Helper class for TileCal offline identifiers.
Definition TileID.h:67
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.