ATLAS Offline Software
LArBarrelPresamplerCalculator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 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);
30  virtual StatusCode initialize() override final;
31  virtual StatusCode finalize() override final;
32 
34 
35  virtual G4float OOTcut() const override final { return m_OOTcut; }
36 
37  virtual G4bool Process(const G4Step* a_step, std::vector<LArHitData>& hdata) const override final;
38 
39  // Check if the current hitTime is in-time
40  virtual G4bool isInTime(G4double hitTime) const override final
41  {
42  return !(std::fabs(hitTime) > m_OOTcut);
43  }
44 
45 private:
46 
47  //copy constructor
48  LArBarrelPresamplerCalculator(const LArBarrelPresamplerCalculator&);//coverity issue fix. Declared, but not implemented
49  LArBarrelPresamplerCalculator& operator=(const LArBarrelPresamplerCalculator&);//coverity issue fix. Declared, but not implemented
50  //
51  // Class for calculating the identifier.
53 
54  const PsMap* m_psmap;
55 
56  bool m_IflCur;
57 
59 
60  // detector name, for translated geometry
61  std::string m_detectorName;
62 
63  bool m_testbeam;
64 
65  G4String m_volname;
66 
67 };
68 
69 #endif // __LArBarrelPresamplerCalculator_H__
LArBarrelPresamplerCalculator::m_IflCur
bool m_IflCur
Definition: LArBarrelPresamplerCalculator.h:56
LArBarrelPresamplerCalculator::m_volname
G4String m_volname
Definition: LArBarrelPresamplerCalculator.h:65
LArBarrelPresamplerCalculator::initialize
virtual StatusCode initialize() override final
Definition: LArBarrelPresamplerCalculator.cxx:57
LArBarrelPresamplerCalculator::operator=
LArBarrelPresamplerCalculator & operator=(const LArBarrelPresamplerCalculator &)
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
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:35
LArBarrelPresamplerCalculator::m_psmap
const PsMap * m_psmap
Definition: LArBarrelPresamplerCalculator.h:54
LArG4Identifier.h
LArCalculatorSvcImp
Definition: LArCalculatorSvcImp.h:11
LArCalculatorSvcImp.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LArBarrelPresamplerCalculator::m_detectorName
std::string m_detectorName
Definition: LArBarrelPresamplerCalculator.h:61
LArBarrelPresamplerCalculator::LArBarrelPresamplerCalculator
LArBarrelPresamplerCalculator(const LArBarrelPresamplerCalculator &)
LArBarrelPresamplerCalculator
Definition: LArBarrelPresamplerCalculator.h:25
LArBarrelPresamplerCalculator::m_geometry
ServiceHandle< ILArBarrelPresamplerGeometry > m_geometry
Definition: LArBarrelPresamplerCalculator.h:52
LArG4BirksLaw
Definition: LArG4BirksLaw.h:8
LArCalculatorSvcImp::m_OOTcut
double m_OOTcut
Definition: LArCalculatorSvcImp.h:28
LArBarrelPresamplerCalculator::m_testbeam
bool m_testbeam
Definition: LArBarrelPresamplerCalculator.h:63
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:40
LArBarrelPresamplerCalculator::finalize
virtual StatusCode finalize() override final
Definition: LArBarrelPresamplerCalculator.cxx:98
LArBarrelPresamplerCalculator::m_birksLaw
const LArG4BirksLaw * m_birksLaw
Definition: LArBarrelPresamplerCalculator.h:58
LArBarrelPresamplerCalculator::Process
virtual G4bool Process(const G4Step *a_step, std::vector< LArHitData > &hdata) const override final
Definition: LArBarrelPresamplerCalculator.cxx:105
ServiceHandle< ILArBarrelPresamplerGeometry >
ILArBarrelPresamplerGeometry.h