Belle II Software development
SensitiveBar.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/TOPBarHit.h>
18
19
20namespace Belle2 {
25 namespace TOP {
26
32
33 public:
34
39
45 bool step(G4Step* aStep, G4TouchableHistory*) override;
46
51 void setReplicaDepth(int depth) {m_replicaDepth = depth;}
52
53 private:
54
57 std::vector<int> m_trackIDs;
63 };
64
65 } // end of namespace top
67} // end of namespace Belle2
68
69
Low-level class to create/modify relations between StoreArrays.
Definition: RelationArray.h:62
Base class for all Sensitive Detectors to create hits during simulation.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Class providing information on MCParticles hitting the bars.
Definition: SensitiveBar.h:31
bool step(G4Step *aStep, G4TouchableHistory *) override
Process each step and fill TOPBarHits.
Definition: SensitiveBar.cc:54
void setReplicaDepth(int depth)
Sets replica depth of module volume.
Definition: SensitiveBar.h:51
int m_replicaDepth
replica depth of module volume
Definition: SensitiveBar.h:55
std::vector< int > m_trackIDs
track ID's
Definition: SensitiveBar.h:57
RelationArray m_relParticleHit
relations
Definition: SensitiveBar.h:61
SensitiveBar()
Constructor.
Definition: SensitiveBar.cc:35
TOPGeometryPar * m_topgp
geometry parameters
Definition: SensitiveBar.h:56
StoreArray< MCParticle > m_mcParticles
collection of MC particles
Definition: SensitiveBar.h:59
StoreArray< TOPBarHit > m_barHits
collection of entrance-to-bar hits
Definition: SensitiveBar.h:60
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.