ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArG4
LArG4Barrel
src
LArBarrelPresamplerCalculator.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// LArBarrelPresamplerCalculator.hh
6
// Prepared 05-Dec-2002 Bill Seligman
7
8
// A first pass at determing hit cell ID in the LAr barrel presampler.
9
10
#ifndef LARG4BARREL_LARBARRELPRESAMPLERCALCULATOR_H
11
#define LARG4BARREL_LARBARRELPRESAMPLERCALCULATOR_H
12
13
#include "
LArG4Code/LArG4Identifier.h
"
14
#include "
LArG4Code/LArCalculatorSvcImp.h
"
15
#include "
ILArBarrelPresamplerGeometry.h
"
16
17
#include "globals.hh"
18
#include <stdexcept>
19
// Forward declarations.
20
class
G4Step;
21
class
PsMap
;
22
class
LArG4BirksLaw
;
23
class
G4String;
24
25
class
LArBarrelPresamplerCalculator
:
public
LArCalculatorSvcImp
{
26
27
public
:
28
29
LArBarrelPresamplerCalculator
(
const
std::string& name, ISvcLocator *pSvcLocator);
30
LArBarrelPresamplerCalculator
(
const
LArBarrelPresamplerCalculator
&) =
delete
;
31
LArBarrelPresamplerCalculator
&
operator=
(
const
LArBarrelPresamplerCalculator
&) =
delete
;
32
33
virtual
StatusCode
initialize
() override final;
34
virtual StatusCode
finalize
() override final;
35
37
38
virtual G4float
OOTcut
()
const
override final {
return
m_OOTcut
; }
39
40
virtual
G4bool
Process
(
const
G4Step* a_step, std::vector<LArHitData>& hdata)
const
override
final
;
41
42
// Check if the current hitTime is in-time
43
virtual
G4bool
isInTime
(G4double
hitTime
)
const
override
final
44
{
45
return
!(std::fabs(
hitTime
) >
m_OOTcut
);
46
}
47
48
private
:
49
50
// Class for calculating the identifier.
51
ServiceHandle<ILArBarrelPresamplerGeometry>
m_geometry
{
this
,
"GeometryCalculator"
,
"LArBarrelPresamplerGeometry"
};
52
53
Gaudi::Property<bool>
m_IflCur
{
this
,
"IflCur"
,
true
};
54
55
// detector name, for translated geometry
56
Gaudi::Property<std::string>
m_detectorName
{
this
,
"DetectorName"
,
"LArMgr"
};
57
58
Gaudi::Property<bool>
m_testbeam
{
this
,
"isTestbeam"
,
false
};
59
60
const
PsMap
*
m_psmap
{
nullptr
};
61
const
LArG4BirksLaw
*
m_birksLaw
{
nullptr
};
62
G4String
m_volname
{
"LArMgr::LAr::Barrel::Presampler"
};
63
};
64
65
#endif
// __LArBarrelPresamplerCalculator_H__
hitTime
float hitTime(const AFP_SIDSimHit &hit)
Definition
AFP_SIDSimHit.h:39
ILArBarrelPresamplerGeometry.h
LArCalculatorSvcImp.h
LArG4Identifier.h
LArBarrelPresamplerCalculator::m_psmap
const PsMap * m_psmap
Definition
LArBarrelPresamplerCalculator.h:60
LArBarrelPresamplerCalculator::m_detectorName
Gaudi::Property< std::string > m_detectorName
Definition
LArBarrelPresamplerCalculator.h:56
LArBarrelPresamplerCalculator::m_volname
G4String m_volname
Definition
LArBarrelPresamplerCalculator.h:62
LArBarrelPresamplerCalculator::m_birksLaw
const LArG4BirksLaw * m_birksLaw
Definition
LArBarrelPresamplerCalculator.h:61
LArBarrelPresamplerCalculator::m_testbeam
Gaudi::Property< bool > m_testbeam
Definition
LArBarrelPresamplerCalculator.h:58
LArBarrelPresamplerCalculator::m_geometry
ServiceHandle< ILArBarrelPresamplerGeometry > m_geometry
Definition
LArBarrelPresamplerCalculator.h:51
LArBarrelPresamplerCalculator::Process
virtual G4bool Process(const G4Step *a_step, std::vector< LArHitData > &hdata) const override final
Definition
LArBarrelPresamplerCalculator.cxx:93
LArBarrelPresamplerCalculator::finalize
virtual StatusCode finalize() override final
Definition
LArBarrelPresamplerCalculator.cxx:86
LArBarrelPresamplerCalculator::LArBarrelPresamplerCalculator
LArBarrelPresamplerCalculator(const LArBarrelPresamplerCalculator &)=delete
LArBarrelPresamplerCalculator::m_IflCur
Gaudi::Property< bool > m_IflCur
Definition
LArBarrelPresamplerCalculator.h:53
LArBarrelPresamplerCalculator::OOTcut
virtual G4float OOTcut() const override final
Definition
LArBarrelPresamplerCalculator.h:38
LArBarrelPresamplerCalculator::initialize
virtual StatusCode initialize() override final
Definition
LArBarrelPresamplerCalculator.cxx:46
LArBarrelPresamplerCalculator::isInTime
virtual G4bool isInTime(G4double hitTime) const override final
Definition
LArBarrelPresamplerCalculator.h:43
LArBarrelPresamplerCalculator::operator=
LArBarrelPresamplerCalculator & operator=(const LArBarrelPresamplerCalculator &)=delete
LArBarrelPresamplerCalculator::LArBarrelPresamplerCalculator
LArBarrelPresamplerCalculator(const std::string &name, ISvcLocator *pSvcLocator)
Definition
LArBarrelPresamplerCalculator.cxx:41
LArCalculatorSvcImp::LArCalculatorSvcImp
LArCalculatorSvcImp(const std::string &name, ISvcLocator *pSvcLocator)
Definition
LArCalculatorSvcImp.h:15
LArCalculatorSvcImp::m_OOTcut
Gaudi::Property< double > m_OOTcut
Definition
LArCalculatorSvcImp.h:30
LArG4BirksLaw
Definition
LArG4BirksLaw.h:8
PsMap
Definition
PsMap.h:16
ServiceHandle
Definition
ClusterMakerTool.h:36
const
Generated on
for ATLAS Offline Software by
1.17.0