VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
E03
E03c
include
Ex03cCalorimeterSD.h
Go to the documentation of this file.
1
#ifndef EX03_CALORIMETER_SD_H
2
#define EX03_CALORIMETER_SD_H
3
4
//------------------------------------------------
5
// The Virtual Monte Carlo examples
6
// Copyright (C) 2014 - 2018 Ivana Hrivnacova
7
// All rights reserved.
8
//
9
// For the licensing terms see geant4_vmc/LICENSE.
10
// Contact: root-vmc@cern.ch
11
//-------------------------------------------------
12
13
/// \file Ex03cCalorimeterSD.h
14
/// \brief Definition of the Ex03cCalorimeterSD class
15
///
16
/// Geant4 ExampleN03 adapted to Virtual Monte Carlo: \n
17
/// Id: ExN03CalorimeterSD.hh,v 1.4 2002/01/09 17:24:11 ranjard Exp
18
/// GEANT4 tag Name: geant4-05-00
19
///
20
/// \author Benedikt Volkel, CERN
21
22
#include <TClonesArray.h>
23
#include <TNamed.h>
24
25
class
Ex03cDetectorConstruction
;
26
class
Ex03CalorHit
;
27
class
TVirtualMC;
28
29
/// \ingroup E03
30
/// \brief The calorimeter sensitive detector
31
///
32
/// A variant of the Ex03CalorimeterSD class
33
/// updated for multiple engine runs.
34
///
35
/// \date 21/08/2019
36
/// \author Benedikt Volkel, CERN
37
38
class
Ex03cCalorimeterSD
:
public
TNamed
39
{
40
public
:
41
Ex03cCalorimeterSD
(
const
char
* name,
Ex03cDetectorConstruction
* detector);
42
Ex03cCalorimeterSD
(
43
const
Ex03cCalorimeterSD
& origin,
Ex03cDetectorConstruction
* detector);
44
Ex03cCalorimeterSD
();
45
virtual
~Ex03cCalorimeterSD
();
46
47
// methods
48
void
Initialize
();
49
Bool_t
ProcessHits
();
50
void
EndOfEvent
();
51
void
Register
();
52
virtual
void
Print
(Option_t* option =
""
)
const
;
53
void
PrintTotal
()
const
;
54
55
// set methods
56
void
SetVerboseLevel
(Int_t level);
57
58
// get methods
59
Ex03CalorHit
*
GetHit
(Int_t i)
const
;
60
61
private
:
62
// methods
63
void
ResetHits
();
64
65
// data members
66
TVirtualMC*
fMC
;
///< The VMC implementation
67
Ex03cDetectorConstruction
*
fDetector
;
///< Detector construction
68
TClonesArray*
fCalCollection
;
///< Hits collection
69
Int_t
fAbsorberVolId
;
///< The absorber volume Id
70
Int_t
fGapVolId
;
///< The gap volume Id
71
Int_t
fVerboseLevel
;
///< Verbosity level
72
73
ClassDef(
Ex03cCalorimeterSD
, 1)
// Ex03cCalorimeterSD
74
};
75
76
/// Set verbose level
77
/// \param level The new verbose level value
78
inline
void
Ex03cCalorimeterSD::SetVerboseLevel
(Int_t level)
79
{
80
fVerboseLevel
= level;
81
}
82
83
#endif
// EX02_CALORIMETER_SD_H
Ex03CalorHit
The calorimeter hit.
Definition
Ex03CalorHit.h:32
Ex03cCalorimeterSD::~Ex03cCalorimeterSD
virtual ~Ex03cCalorimeterSD()
Definition
Ex03cCalorimeterSD.cxx:96
Ex03cCalorimeterSD::fAbsorberVolId
Int_t fAbsorberVolId
The absorber volume Id.
Definition
Ex03cCalorimeterSD.h:69
Ex03cCalorimeterSD::Ex03cCalorimeterSD
Ex03cCalorimeterSD(const char *name, Ex03cDetectorConstruction *detector)
Definition
Ex03cCalorimeterSD.cxx:38
Ex03cCalorimeterSD::PrintTotal
void PrintTotal() const
Definition
Ex03cCalorimeterSD.cxx:218
Ex03cCalorimeterSD::fVerboseLevel
Int_t fVerboseLevel
Verbosity level.
Definition
Ex03cCalorimeterSD.h:71
Ex03cCalorimeterSD::Ex03cCalorimeterSD
Ex03cCalorimeterSD()
Definition
Ex03cCalorimeterSD.cxx:84
Ex03cCalorimeterSD::ProcessHits
Bool_t ProcessHits()
Definition
Ex03cCalorimeterSD.cxx:153
Ex03cCalorimeterSD::fGapVolId
Int_t fGapVolId
The gap volume Id.
Definition
Ex03cCalorimeterSD.h:70
Ex03cCalorimeterSD::GetHit
Ex03CalorHit * GetHit(Int_t i) const
Definition
Ex03cCalorimeterSD.cxx:109
Ex03cCalorimeterSD::Initialize
void Initialize()
Definition
Ex03cCalorimeterSD.cxx:131
Ex03cCalorimeterSD::Register
void Register()
Definition
Ex03cCalorimeterSD.cxx:198
Ex03cCalorimeterSD::fMC
TVirtualMC * fMC
The VMC implementation.
Definition
Ex03cCalorimeterSD.h:66
Ex03cCalorimeterSD::Print
virtual void Print(Option_t *option="") const
Definition
Ex03cCalorimeterSD.cxx:206
Ex03cCalorimeterSD::SetVerboseLevel
void SetVerboseLevel(Int_t level)
Definition
Ex03cCalorimeterSD.h:78
Ex03cCalorimeterSD::fDetector
Ex03cDetectorConstruction * fDetector
Detector construction.
Definition
Ex03cCalorimeterSD.h:67
Ex03cCalorimeterSD::EndOfEvent
void EndOfEvent()
Definition
Ex03cCalorimeterSD.cxx:187
Ex03cCalorimeterSD::ResetHits
void ResetHits()
Definition
Ex03cCalorimeterSD.cxx:118
Ex03cCalorimeterSD::fCalCollection
TClonesArray * fCalCollection
Hits collection.
Definition
Ex03cCalorimeterSD.h:68
Ex03cDetectorConstruction
The detector construction (via TGeo ).
Definition
Ex03cDetectorConstruction.h:40
TNamed
Generated on
for VMC Examples by
1.17.0