ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
G4Atlas
G4AtlasTests
src
EMBHitsTestTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
EMBHitsTestTool.h
"
6
7
#include <TH2D.h>
8
#include <TH1.h>
9
#include <TProfile.h>
10
11
EMBHitsTestTool::EMBHitsTestTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent)
12
:
LArHitsTestTool
(
type
, name, parent)
13
{
14
}
15
16
StatusCode
EMBHitsTestTool::initialize
()
17
{
18
std::string origpath=
m_path
;
19
20
m_path
+=
"LAr/EMB/"
;
21
22
// variables specific to sub detector (root histo names have to be unique!)
23
_TH1D
(
m_eta
,
"EMB_eta"
,25,-2.,2.);
24
_TH1D_WEIGHTED
(
m_time
,
"EMB_time"
,100,0,2.);
25
_TH1D
(
m_etot
,
"EMB_etot"
,100,0.,50.);
26
_TH1D_WEIGHTED
(
m_edep_eta
,
"EMB_edep_eta"
,25,-2.,2.);
27
_TH1D_WEIGHTED
(
m_edep_z
,
"EMB_edep_z"
,100,-4000.,4000.);
28
_TH1D_WEIGHTED
(
m_edep_r
,
"EMB_edep_r"
,100,1300.,2000.);
29
_TPROFILE
(
m_etot_eta
,
"EMB_etot_eta"
,25,-2.,2.);
30
31
m_path
= std::move(origpath);
32
33
return
LArHitsTestTool::initialize
();
34
}
35
EMBHitsTestTool.h
_TH1D_WEIGHTED
#define _TH1D_WEIGHTED(var, name, nbin, xmin, xmax)
Definition
SimTestHisto.h:67
_TH1D
#define _TH1D(var, name, nbin, xmin, xmax)
Definition
SimTestHisto.h:47
_TPROFILE
#define _TPROFILE(var, name, nbin, xmin, xmax)
Definition
SimTestHisto.h:39
EMBHitsTestTool::EMBHitsTestTool
EMBHitsTestTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
EMBHitsTestTool.cxx:11
EMBHitsTestTool::initialize
StatusCode initialize()
Definition
EMBHitsTestTool.cxx:16
LArHitsTestTool::m_etot_eta
TH1 * m_etot_eta
Definition
LArHitsTestTool.h:45
LArHitsTestTool::m_time
TH1 * m_time
Definition
LArHitsTestTool.h:35
LArHitsTestTool::m_etot
TH1 * m_etot
Definition
LArHitsTestTool.h:42
LArHitsTestTool::m_edep_z
TH1 * m_edep_z
Definition
LArHitsTestTool.h:44
LArHitsTestTool::LArHitsTestTool
LArHitsTestTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
LArHitsTestTool.cxx:17
LArHitsTestTool::m_eta
TH1 * m_eta
Definition
LArHitsTestTool.h:33
LArHitsTestTool::m_edep_eta
TH1 * m_edep_eta
Definition
LArHitsTestTool.h:43
LArHitsTestTool::initialize
virtual StatusCode initialize() override
Definition
LArHitsTestTool.cxx:40
LArHitsTestTool::m_edep_r
TH1 * m_edep_r
Definition
LArHitsTestTool.h:44
SimTestHisto::m_path
std::string m_path
Definition
SimTestHisto.h:34
type
Generated on
for ATLAS Offline Software by
1.14.0