ATLAS Offline Software
LArEndcapPresamplerCalculator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // LArEndcapPresamplerCalculator.hh
6 // Prepared 27-Dec-2002 Bill Seligman
7 
8 // This is a separate "calculator" class for the endcap presampler.
9 // For more information about what a "calculator" class does, see the
10 // documentation: LArG4/doc/LArG4.ps.
11 
12 #ifndef LARG4EC_LARENDCAPPRESAMPLERCALCULATOR_H
13 #define LARG4EC_LARENDCAPPRESAMPLERCALCULATOR_H
14 
15 #include "globals.hh"
16 #include "G4ThreeVector.hh"
20 #include <stdexcept>
21 // Forward declarations.
22 class G4Step;
23 class LArG4BirksLaw;
24 
25 namespace LArG4 {
26  class IECPresamplerGeometry;
27 }
28 
30 public:
31 
32  LArEndcapPresamplerCalculator(const std::string& name, ISvcLocator *pSvcLocator);
33 
34  virtual StatusCode initialize() override final;
35  virtual StatusCode finalize() override final;
36 
38 
39  virtual G4float OOTcut() const override final { return m_OOTcut; }
40 
41  // Check if the current hitTime is in-time
42  virtual G4bool isInTime(G4double hitTime) const override final
43  {
44  return !(hitTime > m_OOTcut); //FIXME should we be checking the absolute value of hitTime here?
45  }
46 
47  virtual G4bool Process(const G4Step*, std::vector<LArHitData>&) const override final;
48 
49 
50 private:
51 
52  // Pointer to geometry routine.
54 
56 
59 };
60 
61 #endif
LArEndcapPresamplerCalculator::initialize
virtual StatusCode initialize() override final
LArEndcapPresamplerCalculator::LArEndcapPresamplerCalculator
LArEndcapPresamplerCalculator(const std::string &name, ISvcLocator *pSvcLocator)
LArEndcapPresamplerCalculator::m_birksLaw
LArG4BirksLaw * m_birksLaw
Definition: LArEndcapPresamplerCalculator.h:55
LArEndcapPresamplerCalculator::OOTcut
virtual G4float OOTcut() const override final
Definition: LArEndcapPresamplerCalculator.h:39
LArEndcapPresamplerCalculator::operator=
LArEndcapPresamplerCalculator & operator=(const LArEndcapPresamplerCalculator &)
LArVG4DetectorParameters.h
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
LArEndcapPresamplerCalculator::isInTime
virtual G4bool isInTime(G4double hitTime) const override final
Definition: LArEndcapPresamplerCalculator.h:42
LArG4
Definition: LArWheelCalculatorEnums.h:8
LArEndcapPresamplerCalculator::Process
virtual G4bool Process(const G4Step *, std::vector< LArHitData > &) const override final
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArG4Identifier.h
LArEndcapPresamplerCalculator
Definition: LArEndcapPresamplerCalculator.h:29
LArCalculatorSvcImp
Definition: LArCalculatorSvcImp.h:11
LArCalculatorSvcImp.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArG4BirksLaw
Definition: LArG4BirksLaw.h:8
LArCalculatorSvcImp::m_OOTcut
double m_OOTcut
Definition: LArCalculatorSvcImp.h:28
LArEndcapPresamplerCalculator::m_geometry
ServiceHandle< LArG4::IECPresamplerGeometry > m_geometry
Definition: LArEndcapPresamplerCalculator.h:53
hitTime
float hitTime(const AFP_SIDSimHit &hit)
Definition: AFP_SIDSimHit.h:39
LArEndcapPresamplerCalculator::finalize
virtual StatusCode finalize() override final
LArEndcapPresamplerCalculator::LArEndcapPresamplerCalculator
LArEndcapPresamplerCalculator(const LArEndcapPresamplerCalculator &)
ServiceHandle< LArG4::IECPresamplerGeometry >