ATLAS Offline Software
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 
16 
17 #include "globals.hh"
18 #include <stdexcept>
19 // Forward declarations.
20 class G4Step;
21 class PsMap;
22 class LArG4BirksLaw;
23 class G4String;
24 
26 
27 public:
28 
29  LArBarrelPresamplerCalculator(const std::string& name, ISvcLocator *pSvcLocator);
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__
LArBarrelPresamplerCalculator::m_volname
G4String m_volname
Definition: LArBarrelPresamplerCalculator.h:62
LArBarrelPresamplerCalculator::initialize
virtual StatusCode initialize() override final
Definition: LArBarrelPresamplerCalculator.cxx:46
LArBarrelPresamplerCalculator::operator=
LArBarrelPresamplerCalculator & operator=(const LArBarrelPresamplerCalculator &)=delete
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
LArBarrelPresamplerCalculator::m_testbeam
Gaudi::Property< bool > m_testbeam
Definition: LArBarrelPresamplerCalculator.h:58
LArBarrelPresamplerCalculator::LArBarrelPresamplerCalculator
LArBarrelPresamplerCalculator(const LArBarrelPresamplerCalculator &)=delete
LArBarrelPresamplerCalculator::LArBarrelPresamplerCalculator
LArBarrelPresamplerCalculator(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArBarrelPresamplerCalculator.cxx:41
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArBarrelPresamplerCalculator::OOTcut
virtual G4float OOTcut() const override final
Definition: LArBarrelPresamplerCalculator.h:38
LArBarrelPresamplerCalculator::m_psmap
const PsMap * m_psmap
Definition: LArBarrelPresamplerCalculator.h:60
LArG4Identifier.h
LArCalculatorSvcImp
Definition: LArCalculatorSvcImp.h:13
columnar::final
CM final
Definition: ColumnAccessor.h:106
LArCalculatorSvcImp.h
LArBarrelPresamplerCalculator::m_detectorName
Gaudi::Property< std::string > m_detectorName
Definition: LArBarrelPresamplerCalculator.h:56
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
LArBarrelPresamplerCalculator
Definition: LArBarrelPresamplerCalculator.h:25
LArBarrelPresamplerCalculator::m_geometry
ServiceHandle< ILArBarrelPresamplerGeometry > m_geometry
Definition: LArBarrelPresamplerCalculator.h:51
LArBarrelPresamplerCalculator::m_IflCur
Gaudi::Property< bool > m_IflCur
Definition: LArBarrelPresamplerCalculator.h:53
LArG4BirksLaw
Definition: LArG4BirksLaw.h:8
PsMap
Definition: PsMap.h:16
hitTime
float hitTime(const AFP_SIDSimHit &hit)
Definition: AFP_SIDSimHit.h:39
LArBarrelPresamplerCalculator::isInTime
virtual G4bool isInTime(G4double hitTime) const override final
Definition: LArBarrelPresamplerCalculator.h:43
LArCalculatorSvcImp::m_OOTcut
Gaudi::Property< double > m_OOTcut
Definition: LArCalculatorSvcImp.h:30
LArBarrelPresamplerCalculator::finalize
virtual StatusCode finalize() override final
Definition: LArBarrelPresamplerCalculator.cxx:87
LArBarrelPresamplerCalculator::m_birksLaw
const LArG4BirksLaw * m_birksLaw
Definition: LArBarrelPresamplerCalculator.h:61
LArBarrelPresamplerCalculator::Process
virtual G4bool Process(const G4Step *a_step, std::vector< LArHitData > &hdata) const override final
Definition: LArBarrelPresamplerCalculator.cxx:94
ServiceHandle< ILArBarrelPresamplerGeometry >
ILArBarrelPresamplerGeometry.h