|
ATLAS Offline Software
|
#include <LArHitsTestTool.h>
Definition at line 12 of file LArHitsTestTool.h.
◆ LArHitsTestTool()
LArHitsTestTool::LArHitsTestTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ getPrimary()
◆ initialize()
StatusCode LArHitsTestTool::initialize |
( |
| ) |
|
|
overridevirtual |
Reimplemented from SimTestToolBase.
Reimplemented in EMBHitsTestTool, EMECHitsTestTool, FCALHitsTestTool, and HECHitsTestTool.
Definition at line 40 of file LArHitsTestTool.cxx.
75 _SET_TITLE(
m_log_edep,
"logarithm of energy deposits",
"log(edep [MeV])",
"dN/dlog(E) [1/log(MeV)]");
99 _SET_TITLE(
m_etot,
"distribution total energy deposit per event",
"E_tot [MeV]",
"1/dE");
109 _SET_TITLE(
m_etot_eta,
"tot energy deposited per Event vs generator truth",
"eta",
"1/N dE/deta [MeV]");
111 _SET_TITLE(
m_etot_phi,
"tot energy deposited per Event vs generator truth",
"phi",
"1/N dE/dphi [MeV]");
113 return StatusCode::SUCCESS;
◆ processEvent()
StatusCode LArHitsTestTool::processEvent |
( |
| ) |
|
|
overridevirtual |
Definition at line 116 of file LArHitsTestTool.cxx.
126 for(
const LArHit* larHit : *hitContainer) {
129 double eta = ddElement->
eta();
130 double phi = ddElement->
phi();
131 double radius = ddElement->
r();
132 double z = ddElement->
z();
134 double energy = larHit->energy();
164 m_time_cut1->Fill( larHit->time(), larHit->energy());
177 const std::string lArkey_fast=
"LArHit"+
m_detname+
"_Fast";
181 (evtStore()->retrieve(iter_fast,lArkey_fast)).isSuccess())
183 ATH_MSG_DEBUG (
"Read hit info from FastCaloSim Container" );
184 for(hi_fast=(*iter_fast).begin();hi_fast!=(*iter_fast).end();++hi_fast)
186 const LArHit* larHit = *hi_fast;
188 double eta=ddElement->
eta();
189 double phi=ddElement->
phi();
191 double z=ddElement->
z();
222 m_time_cut1->Fill((*hi_fast)->time(),(*hi_fast)->energy());
238 return StatusCode::SUCCESS;
◆ m_caloMgrKey
Initial value:{ this
, "CaloDetDescrManager"
, "CaloDetDescrManager"
, "SG Key for CaloDetDescrManager in the Condition Store" }
Definition at line 48 of file LArHitsTestTool.h.
◆ m_detname
std::string LArHitsTestTool::m_detname |
|
protected |
◆ m_edep
TH1 * LArHitsTestTool::m_edep |
|
protected |
◆ m_edep_cut
double LArHitsTestTool::m_edep_cut |
|
protected |
◆ m_edep_cut1
TH1 * LArHitsTestTool::m_edep_cut1 |
|
protected |
◆ m_edep_eta
TH1* LArHitsTestTool::m_edep_eta |
|
protected |
◆ m_edep_phi
TH1 * LArHitsTestTool::m_edep_phi |
|
protected |
◆ m_edep_r
TH1 * LArHitsTestTool::m_edep_r |
|
protected |
◆ m_edep_z
TH1* LArHitsTestTool::m_edep_z |
|
protected |
◆ m_edep_zr
TH2* LArHitsTestTool::m_edep_zr |
|
protected |
◆ m_edep_zr_cut1
TH2* LArHitsTestTool::m_edep_zr_cut1 |
|
protected |
◆ m_eta
TH1* LArHitsTestTool::m_eta |
|
protected |
◆ m_eta_cut1
TH1* LArHitsTestTool::m_eta_cut1 |
|
protected |
◆ m_etaphi
TH2 * LArHitsTestTool::m_etaphi |
|
protected |
◆ m_etaphi_cut1
TH2 * LArHitsTestTool::m_etaphi_cut1 |
|
protected |
◆ m_etot
TH1* LArHitsTestTool::m_etot |
|
protected |
◆ m_etot_eta
TH1* LArHitsTestTool::m_etot_eta |
|
protected |
◆ m_etot_phi
TH1 * LArHitsTestTool::m_etot_phi |
|
protected |
◆ m_histSvc
◆ m_key
std::string SimTestToolBase::m_key |
|
protectedinherited |
◆ m_lar_edep_zr
TH2* LArHitsTestTool::m_lar_edep_zr |
|
protected |
◆ m_lar_eta
TH1* LArHitsTestTool::m_lar_eta |
|
protected |
◆ m_lar_etaphi
TH2 * LArHitsTestTool::m_lar_etaphi |
|
protected |
◆ m_lar_phi
TH1 * LArHitsTestTool::m_lar_phi |
|
protected |
◆ m_lar_zr
TH2* LArHitsTestTool::m_lar_zr |
|
protected |
◆ m_log_edep
TH1 * LArHitsTestTool::m_log_edep |
|
protected |
◆ m_path
std::string SimTestHisto::m_path {"/truth/"} |
|
protectedinherited |
◆ m_phi
TH1 * LArHitsTestTool::m_phi |
|
protected |
◆ m_phi_cut1
TH1 * LArHitsTestTool::m_phi_cut1 |
|
protected |
◆ m_time
TH1* LArHitsTestTool::m_time |
|
protected |
◆ m_time_cut1
TH1* LArHitsTestTool::m_time_cut1 |
|
protected |
◆ m_zr
TH2* LArHitsTestTool::m_zr |
|
protected |
◆ m_zr_cut1
TH2* LArHitsTestTool::m_zr_cut1 |
|
protected |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
#define _TPROFILE(var, name, nbin, xmin, xmax)
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
#define _SET_TITLE(var, title, xaxis, yaxis)
#define _TH1D(var, name, nbin, xmin, xmax)
boost::transform_iterator< make_const, typename CONT::const_iterator > const_iterator
bool is_simulation_particle(const T &p)
Method to establish if a particle (or barcode) was created during the simulation (TODO update to be s...
#define _TH2D(var, name, nbinx, xmin, xmax, nbiny, ymin, ymax)
#define _TH2D_WEIGHTED(var, name, nbinx, xmin, xmax, nbiny, ymin, ymax)
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
Identifier cellID() const
#define _TH1D_WEIGHTED(var, name, nbin, xmin, xmax)
StatusCode initialize(bool used=true)
Class to store hit energy and time in LAr cell from G4 simulation.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
This class provides the client interface for accessing the detector description information common to...
float eta() const
cell eta
float phi() const
cell phi
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.