ATLAS Offline Software
TileCalorimeter
TileSimUtils
TileSimUtils
TileCalibHitNtuple.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TILESIMUTILS_TILECALIBHITNTUPLE_H
6
#define TILESIMUTILS_TILECALIBHITNTUPLE_H
7
8
/********************************************************************
9
*
10
* NAME: TileCalibHitNtuple
11
* PACKAGE: offline/TileCalorimeter/TileSimUtils
12
*
13
* AUTHOR : A. Solodkov
14
* CREATED: Nov 08, 2012
15
*
16
* PURPOSE: Store coordinates of every
17
* single calibration hit in ntuple
18
*
19
* Input: event number, DM cell ID, hit coordiates
20
* Output: ntuple
21
* Parameters: stream name, ntuple name, max tree size
22
*
23
********************************************************************/
24
25
// Atlas includes
26
#include "
AthenaBaseComps/AthAlgTool.h
"
27
#include "GaudiKernel/ServiceHandle.h"
28
#include "GaudiKernel/ITHistSvc.h"
29
30
#include <string>
31
#include <vector>
32
33
#include <inttypes.h>
34
39
class
TileCalibHitNtuple
:
public
AthAlgTool
{
40
41
public
:
42
TileCalibHitNtuple
(
const
std::string&
type
,
const
std::string&
name
,
const
IInterface*
parent
);
43
44
virtual
~TileCalibHitNtuple
();
45
46
virtual
StatusCode
initialize
();
47
virtual
StatusCode
finalize
();
48
49
static
const
InterfaceID&
interfaceID
();
50
51
void
storeHit
(
int
det
,
int
mod
,
int
tow,
int
samp,
int
reg,
int
calc
,
int
evt
,
float
x
,
float
y
,
float
z
,
float
e
,
52
const
char
*volume = 0,
int
pid
= 0,
float
ekine = 0.,
float
xLocal = 0.,
float
yLocal = 0.,
53
float
zLocal = 0.,
float
phiLocal = 0.);
54
55
private
:
56
57
// handle to THistSvc
58
ServiceHandle<ITHistSvc>
m_thistSvc
;
59
60
// NTuple parameters
61
std::string
m_streamName
;
62
std::string
m_ntupleID
;
63
int64_t
m_treeSize
;
64
65
// The ntuple
66
TTree*
m_ntuplePtr
;
67
68
int
m_level
;
69
70
// ntuple variables
71
short
m_det
;
72
short
m_mod
;
73
short
m_tow
;
74
short
m_samp
;
75
short
m_reg
;
76
short
m_calc
;
77
short
m_evt
;
78
float
m_xPos
;
79
float
m_yPos
;
80
float
m_zPos
;
81
float
m_ener
;
82
char
m_volume
[100];
83
short
m_pid
;
84
float
m_ekine
;
85
float
m_xLocal
;
86
float
m_yLocal
;
87
float
m_zLocal
;
88
float
m_phiLocal
;
89
90
};
91
92
#endif
TileCalibHitNtuple
This class creates ntuple with calibration hits info.
Definition:
TileCalibHitNtuple.h:39
AllowedVariables::e
e
Definition:
AsgElectronSelectorTool.cxx:37
TileCalibHitNtuple::initialize
virtual StatusCode initialize()
intialize method
Definition:
TileCalibHitNtuple.cxx:73
TileCalibHitNtuple::m_xPos
float m_xPos
Definition:
TileCalibHitNtuple.h:78
TileCalibHitNtuple::m_streamName
std::string m_streamName
Definition:
TileCalibHitNtuple.h:61
TRTCalib_Extractor.det
det
Definition:
TRTCalib_Extractor.py:36
TileCalibHitNtuple::m_xLocal
float m_xLocal
Definition:
TileCalibHitNtuple.h:85
TileCalibHitNtuple::m_phiLocal
float m_phiLocal
Definition:
TileCalibHitNtuple.h:88
TileCalibHitNtuple::m_zLocal
float m_zLocal
Definition:
TileCalibHitNtuple.h:87
TileCalibHitNtuple::TileCalibHitNtuple
TileCalibHitNtuple(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
Definition:
TileCalibHitNtuple.cxx:25
LArG4FSStartPointFilter.evt
evt
Definition:
LArG4FSStartPointFilter.py:42
TileCalibHitNtuple::m_det
short m_det
Definition:
TileCalibHitNtuple.h:71
x
#define x
TileCalibHitNtuple::finalize
virtual StatusCode finalize()
finalize method
Definition:
TileCalibHitNtuple.cxx:115
TileCalibHitNtuple::m_ntuplePtr
TTree * m_ntuplePtr
Definition:
TileCalibHitNtuple.h:66
TileCalibHitNtuple::~TileCalibHitNtuple
virtual ~TileCalibHitNtuple()
Destructor.
Definition:
TileCalibHitNtuple.cxx:67
TileCalibHitNtuple::m_ekine
float m_ekine
Definition:
TileCalibHitNtuple.h:84
maskDeadModules.mod
mod
Definition:
maskDeadModules.py:36
z
#define z
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileCalibHitNtuple::m_mod
short m_mod
Definition:
TileCalibHitNtuple.h:72
TileCalibHitNtuple::m_volume
char m_volume[100]
Definition:
TileCalibHitNtuple.h:82
AthAlgTool.h
TileCalibHitNtuple::interfaceID
static const InterfaceID & interfaceID()
AlgTool InterfaceID.
Definition:
TileCalibHitNtuple.cxx:18
ParticleGun_EoverP_Config.pid
pid
Definition:
ParticleGun_EoverP_Config.py:62
TileCalibHitNtuple::m_tow
short m_tow
Definition:
TileCalibHitNtuple.h:73
TileCalibHitNtuple::m_ener
float m_ener
Definition:
TileCalibHitNtuple.h:81
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
TileCalibHitNtuple::m_calc
short m_calc
Definition:
TileCalibHitNtuple.h:76
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
TileCalibHitNtuple::m_reg
short m_reg
Definition:
TileCalibHitNtuple.h:75
TileCalibHitNtuple::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition:
TileCalibHitNtuple.h:58
TileCalibHitNtuple::storeHit
void storeHit(int det, int mod, int tow, int samp, int reg, int calc, int evt, float x, float y, float z, float e, const char *volume=0, int pid=0, float ekine=0., float xLocal=0., float yLocal=0., float zLocal=0., float phiLocal=0.)
Definition:
TileCalibHitNtuple.cxx:122
y
#define y
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
TileCalibHitNtuple::m_pid
short m_pid
Definition:
TileCalibHitNtuple.h:83
TileCalibHitNtuple::m_treeSize
int64_t m_treeSize
Definition:
TileCalibHitNtuple.h:63
TileCalibHitNtuple::m_level
int m_level
Definition:
TileCalibHitNtuple.h:68
TileCalibHitNtuple::m_ntupleID
std::string m_ntupleID
Definition:
TileCalibHitNtuple.h:62
TileCalibHitNtuple::m_yPos
float m_yPos
Definition:
TileCalibHitNtuple.h:79
TileCalibHitNtuple::m_yLocal
float m_yLocal
Definition:
TileCalibHitNtuple.h:86
TileCalibHitNtuple::m_evt
short m_evt
Definition:
TileCalibHitNtuple.h:77
AthAlgTool
Definition:
AthAlgTool.h:26
beamspotnt.calc
calc
Definition:
bin/beamspotnt.py:1252
TileCalibHitNtuple::m_samp
short m_samp
Definition:
TileCalibHitNtuple.h:74
TileCalibHitNtuple::m_zPos
float m_zPos
Definition:
TileCalibHitNtuple.h:80
ServiceHandle< ITHistSvc >
Generated on Fri Jan 10 2025 21:19:03 for ATLAS Offline Software by
1.8.18