ATLAS Offline Software
Simulation
G4Atlas
G4AtlasTests
src
HECHitsTestTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
HECHitsTestTool.h
"
6
7
#include <TH2D.h>
8
#include <TH1.h>
9
#include <TProfile.h>
10
11
HECHitsTestTool::HECHitsTestTool
(
const
std::string&
type
,
const
std::string&
name
,
const
IInterface*
parent
)
12
:
LArHitsTestTool
(
type
,
name
,
parent
)
13
{
14
}
15
16
StatusCode
HECHitsTestTool::initialize
()
17
{
18
std::string origpath=
m_path
;
19
20
m_path
+=
"LAr/HEC/"
;
21
22
// variables specific to sub detector (root histo names have to be unique!)
23
_TH1D
(
m_eta
,
"HEC_eta"
,25,-3.5,3.5);
24
_TH1D_WEIGHTED
(
m_time
,
"HEC_time"
,100,0,10);
25
_TH1D
(
m_edep
,
"HEC_edep"
,100,0.,4.);
26
_TH1D
(
m_etot
,
"HEC_etot"
,100,0.,20.);
27
_TH1D_WEIGHTED
(
m_edep_eta
,
"HEC_edep_eta"
,25,-3.5,3.5);
28
//_TH1D_WEIGHTED(m_edep_z,"HEC_edep_z",100,-5200.,5200.);
29
_TH1D_WEIGHTED
(
m_edep_r
,
"HEC_edep_r"
,100,300.,2200.);
30
_TPROFILE
(
m_etot_eta
,
"HEC_etot_eta"
,25,-3.,3.);
31
32
m_path
= origpath;
33
34
return
LArHitsTestTool::initialize
();
35
}
36
_TPROFILE
#define _TPROFILE(var, name, nbin, xmin, xmax)
Definition:
SimTestHisto.h:39
LArHitsTestTool::m_edep
TH1 * m_edep
Definition:
LArHitsTestTool.h:35
LArHitsTestTool::m_edep_r
TH1 * m_edep_r
Definition:
LArHitsTestTool.h:44
LArHitsTestTool
Definition:
LArHitsTestTool.h:12
LArHitsTestTool::m_etot_eta
TH1 * m_etot_eta
Definition:
LArHitsTestTool.h:45
_TH1D
#define _TH1D(var, name, nbin, xmin, xmax)
Definition:
SimTestHisto.h:47
HECHitsTestTool::initialize
StatusCode initialize()
Definition:
HECHitsTestTool.cxx:16
LArHitsTestTool::m_edep_eta
TH1 * m_edep_eta
Definition:
LArHitsTestTool.h:43
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
LArHitsTestTool::m_eta
TH1 * m_eta
Definition:
LArHitsTestTool.h:33
_TH1D_WEIGHTED
#define _TH1D_WEIGHTED(var, name, nbin, xmin, xmax)
Definition:
SimTestHisto.h:67
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
HECHitsTestTool.h
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
LArHitsTestTool::initialize
virtual StatusCode initialize() override
Definition:
LArHitsTestTool.cxx:40
SimTestHisto::m_path
std::string m_path
Definition:
SimTestHisto.h:34
LArHitsTestTool::m_time
TH1 * m_time
Definition:
LArHitsTestTool.h:35
LArHitsTestTool::m_etot
TH1 * m_etot
Definition:
LArHitsTestTool.h:42
HECHitsTestTool::HECHitsTestTool
HECHitsTestTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
HECHitsTestTool.cxx:11
Generated on Thu Nov 7 2024 21:16:06 for ATLAS Offline Software by
1.8.18