ATLAS Offline Software
LArG4H6BeamSD.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 #ifndef LArG4H6BeamSD_h
6 #define LArG4H6BeamSD_h 1
7 
8 // Base class
9 #include "G4VSensitiveDetector.hh"
10 
11 // Hit colleciton
12 #include "StoreGate/WriteHandle.h"
15 
16 // #define ARRSIZE plit src/0
17 #define NUM_MWPC 10
18 
19 class G4Step;
20 class G4HCofThisEvent;
21 class G4TouchableHistory;
22 
23 class LArG4H6BeamSD : public G4VSensitiveDetector
24 {
25  public:
26  LArG4H6BeamSD(G4String name, const G4String& colname);
28 //
29  void Initialize(G4HCofThisEvent*) override final;
30  G4bool ProcessHits(G4Step*,G4TouchableHistory*) override final;
31  virtual void clear() override {};
32  virtual void DrawAll() override {};
33  virtual void PrintAll() override {};
34  inline float GetWDIM() { return WDIM;}
35  inline float GetDW() {return DW;}
36  inline float GetBPCWDIM() { return BPC_WDIM;}
37  inline float GetBPCDW() {return BPC_DW;}
38  inline float GetBPCOWDIM() { return BPC_WDIM;}
39  inline float GetBPCODW() {return BPC_DW;}
40 
41  private:
43 
44 // MWPC half width and wires step
45  static const float WDIM;
46  static const float DW;
47 // BPC half width and wires step
48  static const float BPC_WDIM;
49  static const float BPC_DW;
50 // OLD BPC half width and wires step
51  static const float BPCO_WDIM;
52  static const float BPCO_DW;
53 };
54 #endif
LArG4H6BeamSD::BPCO_DW
static const float BPCO_DW
Definition: LArG4H6BeamSD.h:52
LArG4H6BeamSD
Definition: LArG4H6BeamSD.h:24
LArG4H6BeamSD::GetBPCODW
float GetBPCODW()
Definition: LArG4H6BeamSD.h:39
LArG4H6BeamSD::GetBPCWDIM
float GetBPCWDIM()
Definition: LArG4H6BeamSD.h:36
LArG4H6BeamSD::~LArG4H6BeamSD
~LArG4H6BeamSD()
Definition: LArG4H6BeamSD.h:27
LArG4H6BeamSD::DrawAll
virtual void DrawAll() override
Definition: LArG4H6BeamSD.h:32
LArG4H6BeamSD::ProcessHits
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override final
LArG4H6BeamSD::GetBPCOWDIM
float GetBPCOWDIM()
Definition: LArG4H6BeamSD.h:38
WriteHandle.h
Handle class for recording to StoreGate.
LArG4H6BeamSD::BPC_WDIM
static const float BPC_WDIM
Definition: LArG4H6BeamSD.h:48
LArG4H6BeamSD::m_FrontCollection
SG::WriteHandle< LArG4H6FrontHitCollection > m_FrontCollection
Definition: LArG4H6BeamSD.h:42
LArG4H6BeamSD::PrintAll
virtual void PrintAll() override
Definition: LArG4H6BeamSD.h:33
LArG4H6BeamSD::WDIM
static const float WDIM
Definition: LArG4H6BeamSD.h:45
LArG4H6FrontHit.h
LArG4H6BeamSD::Initialize
void Initialize(G4HCofThisEvent *) override final
LArG4H6BeamSD::GetBPCDW
float GetBPCDW()
Definition: LArG4H6BeamSD.h:37
LArG4H6FrontHitCollection.h
LArG4H6BeamSD::DW
static const float DW
Definition: LArG4H6BeamSD.h:46
LArG4H6BeamSD::BPCO_WDIM
static const float BPCO_WDIM
Definition: LArG4H6BeamSD.h:51
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArG4H6BeamSD::GetDW
float GetDW()
Definition: LArG4H6BeamSD.h:35
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
LArG4H6BeamSD::LArG4H6BeamSD
LArG4H6BeamSD(G4String name, const G4String &colname)
LArG4H6BeamSD::GetWDIM
float GetWDIM()
Definition: LArG4H6BeamSD.h:34
LArG4H6BeamSD::BPC_DW
static const float BPC_DW
Definition: LArG4H6BeamSD.h:49
LArG4H6BeamSD::clear
virtual void clear() override
Definition: LArG4H6BeamSD.h:31