ATLAS Offline Software
LArFCALCalculatorBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // LArFCALCalculator
6 // 20-Feb-2003 Bill Seligman (from Peter Loch)
7 
8 // A base class for the calculators required for the individual
9 // modules.
10 
11 #ifndef LArFCALCalculatorBase_H
12 #define LArFCALCalculatorBase_H
13 
14 //-----------------------------------------------------------------------------
15 //
16 // Forward Calorimeter Construction in GEANT4
17 //
18 //-----------------------------------------------------------------------------
21 #include "LArReadoutGeometry/FCAL_ChannelMap.h"
22 #include "LArHV/FCALHVManager.h"
23 #include "globals.hh"
24 #include <stdexcept>
25 class LArG4BirksLaw;
26 class FCALModule;
27 
29 {
30  public:
31  // constructor
32  LArFCALCalculatorBase(const std::string& name, ISvcLocator *pSvcLocator);
33  virtual StatusCode initialize() override;
34  virtual StatusCode finalize() override;
35 
37 
38  virtual G4float OOTcut() const override final { return m_OOTcut; }
39 
40  virtual G4bool Process(const G4Step*, std::vector<LArHitData>&) 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 !(hitTime > m_OOTcut); //FIXME should we be checking the absolute value of hitTime here?
46  }
47 
49 
50 
51  protected:
52 
53  bool m_doHV;
54 
56  const FCALModule *m_posModule; // for hv access here...
57  const FCALModule *m_negModule; // for hv access here...
58  // sampling
61 
63 
66 };
67 
68 #endif // LArFCALCalculatorBase_H
LArFCALCalculatorBase::m_doHV
bool m_doHV
Definition: LArFCALCalculatorBase.h:53
FCAL_ChannelMap
This class contains the tube and tile maps for the FCAL A tile is of a set of FCAL tubes.
Definition: LArCalorimeter/LArGeoModel/LArReadoutGeometry/LArReadoutGeometry/FCAL_ChannelMap.h:34
LArFCALCalculatorBase::m_birksLaw
LArG4BirksLaw * m_birksLaw
Definition: LArFCALCalculatorBase.h:60
LArFCALCalculatorBase::LArFCALCalculatorBase
LArFCALCalculatorBase(const std::string &name, ISvcLocator *pSvcLocator)
LArFCALCalculatorBase::m_posModule
const FCALModule * m_posModule
Definition: LArFCALCalculatorBase.h:56
LArFCALCalculatorBase::operator=
LArFCALCalculatorBase operator=(const LArFCALCalculatorBase &)
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
LArFCALCalculatorBase::finalize
virtual StatusCode finalize() override
LArFCALCalculatorBase::initialize
virtual StatusCode initialize() override
LArFCALCalculatorBase::m_ChannelMap
FCAL_ChannelMap * m_ChannelMap
Definition: LArFCALCalculatorBase.h:55
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArG4Identifier.h
LArCalculatorSvcImp
Definition: LArCalculatorSvcImp.h:11
LArFCALCalculatorBase::m_FCalSampling
G4int m_FCalSampling
Definition: LArFCALCalculatorBase.h:59
LArCalculatorSvcImp.h
LArFCALCalculatorBase::m_hvdata
FCALHVManager::FCALHVData m_hvdata
Definition: LArFCALCalculatorBase.h:62
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LArFCALCalculatorBase::OOTcut
virtual G4float OOTcut() const override final
Definition: LArFCALCalculatorBase.h:38
FCALModule
Definition: FCALModule.h:33
LArFCALCalculatorBase::m_negModule
const FCALModule * m_negModule
Definition: LArFCALCalculatorBase.h:57
LArG4BirksLaw
Definition: LArG4BirksLaw.h:8
LArFCALCalculatorBase
Definition: LArFCALCalculatorBase.h:29
FCALHVManager.h
LArCalculatorSvcImp::m_OOTcut
double m_OOTcut
Definition: LArCalculatorSvcImp.h:28
LArFCALCalculatorBase::isInTime
virtual G4bool isInTime(G4double hitTime) const override final
Definition: LArFCALCalculatorBase.h:43
hitTime
float hitTime(const AFP_SIDSimHit &hit)
Definition: AFP_SIDSimHit.h:39
LArFCALCalculatorBase::LArFCALCalculatorBase
LArFCALCalculatorBase(const LArFCALCalculatorBase &)
LArFCALCalculatorBase::Process
virtual G4bool Process(const G4Step *, std::vector< LArHitData > &) const override final
FCALHVManager::FCALHVData
Definition: FCALHVManager.h:38