BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnVacWall.h
Go to the documentation of this file.
1
#ifndef BMNVACWALL_H
2
#define BMNVACWALL_H
3
4
#include "BmnZdcGeo.h"
5
#include "FairDetector.h"
6
#include "FairMCPoint.h"
7
#include "
TClonesArray.h
"
8
#include "
TLorentzVector.h
"
9
#include "
TVector3.h
"
10
11
class
BmnVacWall
:
public
FairDetector
12
{
13
public
:
14
/** Default constructor **/
15
BmnVacWall
();
16
17
/** Standard constructor.
18
*@param name Detector name
19
*@param active Sensitivity flag
20
**/
21
BmnVacWall
(
const
char
* name,
Bool_t
active);
22
23
/** Destructor **/
24
virtual
~BmnVacWall
();
25
26
/** Initialises detector and FairRun **/
27
virtual
void
Initialize
();
28
29
/** Processes hits and creates FairMCPoints.
30
*@param vol Pointer to the active volume
31
*@return kTRUE if the volume is sensitive and a hit is processed, otherwise kFALSE
32
**/
33
virtual
Bool_t
ProcessHits
(FairVolume* vol =
nullptr
);
34
35
/** Called at the end of each event **/
36
virtual
void
EndOfEvent
();
37
38
/** Called at the beginning of each event **/
39
virtual
void
BeginEvent
();
40
41
/** Registers the hit collection in the ROOT manager **/
42
virtual
void
Register
();
43
44
/** Accessor to the hit collection
45
*@param iColl Index of the collection
46
*@return Pointer to the hit collection
47
**/
48
virtual
TClonesArray
*
GetCollection
(
Int_t
iColl)
const
;
49
50
/** Screen output of hit collection **/
51
virtual
void
Print
(
Option_t
*)
const
;
52
53
/** Clears the hit collection **/
54
virtual
void
Reset
();
55
56
/** Constructs geometry from files **/
57
virtual
void
ConstructGeometry
();
58
59
/** Checks whether a volume is sensitive based on its name.
60
*@param name Volume name
61
*@return kTRUE if the volume is sensitive, otherwise kFALSE
62
**/
63
virtual
Bool_t
CheckIfSensitive
(std::string name);
64
65
/** Adds the hit to hits collection.
66
*@param point FairMCPoint
67
*@return Pointer to the hit
68
**/
69
FairMCPoint
*
AddHit
(
FairMCPoint
* point);
70
71
/** Remove hit from hits collection by index.
72
*@param index hit index
73
**/
74
void
RemoveHit
(
Int_t
index);
75
76
private
:
77
BmnZdcGeo
*
fGeoHandler
;
78
TClonesArray
*
fCollection
;
// Output collection
79
80
ClassDef
(
BmnVacWall
, 7)
81
};
82
83
#endif
Bool_t
bool Bool_t
Int_t
int Int_t
Option_t
const char Option_t
ClassDef
#define ClassDef(name, id)
TClonesArray.h
TLorentzVector.h
TVector3.h
BmnVacWall::BeginEvent
virtual void BeginEvent()
Called at the beginning of each event.
Definition
BmnVacWall.cxx:49
BmnVacWall::fCollection
TClonesArray * fCollection
Definition
BmnVacWall.h:78
BmnVacWall::~BmnVacWall
virtual ~BmnVacWall()
Destructor.
Definition
BmnVacWall.cxx:31
BmnVacWall::ProcessHits
virtual Bool_t ProcessHits(FairVolume *vol=nullptr)
Processes hits and creates FairMCPoints.
Definition
BmnVacWall.cxx:54
BmnVacWall::Reset
virtual void Reset()
Clears the hit collection.
Definition
BmnVacWall.cxx:120
BmnVacWall::ConstructGeometry
virtual void ConstructGeometry()
Constructs geometry from files.
Definition
BmnVacWall.cxx:126
BmnVacWall::fGeoHandler
BmnZdcGeo * fGeoHandler
Definition
BmnVacWall.h:77
BmnVacWall::CheckIfSensitive
virtual Bool_t CheckIfSensitive(std::string name)
Checks whether a volume is sensitive based on its name.
Definition
BmnVacWall.cxx:148
BmnVacWall::RemoveHit
void RemoveHit(Int_t index)
Remove hit from hits collection by index.
Definition
BmnVacWall.cxx:163
BmnVacWall::AddHit
FairMCPoint * AddHit(FairMCPoint *point)
Adds the hit to hits collection.
Definition
BmnVacWall.cxx:156
BmnVacWall::Initialize
virtual void Initialize()
Initialises detector and FairRun.
Definition
BmnVacWall.cxx:41
BmnVacWall::BmnVacWall
BmnVacWall()
Default constructor.
Definition
BmnVacWall.cxx:15
BmnVacWall::GetCollection
virtual TClonesArray * GetCollection(Int_t iColl) const
Accessor to the hit collection.
Definition
BmnVacWall.cxx:101
BmnVacWall::EndOfEvent
virtual void EndOfEvent()
Called at the end of each event.
Definition
BmnVacWall.cxx:85
BmnVacWall::Register
virtual void Register()
Registers the hit collection in the ROOT manager.
Definition
BmnVacWall.cxx:92
BmnVacWall::Print
virtual void Print(Option_t *) const
Screen output of hit collection.
Definition
BmnVacWall.cxx:107
BmnZdcGeo
Definition
BmnZdcGeo.h:17
FairDetector
FairMCPoint
TClonesArray
detectors
vacwall
BmnVacWall.h
Generated on
for BmnRoot by
1.17.0