Belle II Software  release-08-01-10
SensitivePMT.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <simulation/kernel/SensitiveDetectorBase.h>
12 #include <top/geometry/TOPGeometryPar.h>
13 
14 #include <framework/datastore/StoreArray.h>
15 #include <framework/datastore/RelationArray.h>
16 #include <mdst/dataobjects/MCParticle.h>
17 #include <top/dataobjects/TOPSimHit.h>
18 #include <top/dataobjects/TOPSimPhoton.h>
19 
20 
21 namespace Belle2 {
26  namespace TOP {
31 
32  public:
33 
37  SensitivePMT();
38 
44  bool step(G4Step* aStep, G4TouchableHistory*) override;
45 
50  void setPMTReplicaDepth(int depth) {m_pmtReplicaDepth = depth;}
51 
56  void setModuleReplicaDepth(int depth) {m_moduleReplicaDepth = depth;}
57 
58  private:
59 
69  };
70  } // end of namespace TOP
72 } // end of namespace Belle2
73 
Low-level class to create/modify relations between StoreArrays.
Definition: RelationArray.h:62
Base class for all Sensitive Detectors to create hits during simulation.
Class providing SimHits.
Definition: SensitivePMT.h:30
SensitivePMT()
Constructor.
Definition: SensitivePMT.cc:34
RelationArray m_relParticleHit
relations
Definition: SensitivePMT.h:67
int m_pmtReplicaDepth
replica depth of PMT volume
Definition: SensitivePMT.h:60
TOPGeometryPar * m_topgp
geometry parameters
Definition: SensitivePMT.h:62
int m_moduleReplicaDepth
replica depth of module volume
Definition: SensitivePMT.h:61
StoreArray< MCParticle > m_mcParticles
collection of MC particles
Definition: SensitivePMT.h:64
void setModuleReplicaDepth(int depth)
Sets replica depth of module volume.
Definition: SensitivePMT.h:56
bool step(G4Step *aStep, G4TouchableHistory *) override
Process each step, fill TOPSimHits and TOPSimPhotons.
Definition: SensitivePMT.cc:50
StoreArray< TOPSimPhoton > m_simPhotons
collection of simulated photons
Definition: SensitivePMT.h:66
StoreArray< TOPSimHit > m_simHits
collection of simulated hits
Definition: SensitivePMT.h:65
void setPMTReplicaDepth(int depth)
Sets replica depth of PMT volume.
Definition: SensitivePMT.h:50
Singleton class for TOP Geometry Parameters.
static TOPGeometryPar * Instance()
Static method to obtain the pointer to its instance.
Abstract base class for different kinds of events.