VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
E03
E03a
include
Ex03CalorimeterSD.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 Ex03CalorimeterSD.h
14
/// \brief Definition of the Ex03CalorimeterSD 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 I. Hrivnacova; IPN, Orsay
21
22
#include <TClonesArray.h>
23
#include <TNamed.h>
24
25
class
Ex03DetectorConstruction
;
26
class
Ex03CalorHit
;
27
class
TVirtualMC;
28
29
/// \ingroup E03
30
/// \brief The calorimeter sensitive detector
31
///
32
/// \date 06/03/2003
33
/// \author I. Hrivnacova; IPN, Orsay
34
35
class
Ex03CalorimeterSD
:
public
TNamed
36
{
37
public
:
38
Ex03CalorimeterSD
(
const
char
* name,
Ex03DetectorConstruction
* detector);
39
Ex03CalorimeterSD
(
40
const
Ex03CalorimeterSD
& origin,
Ex03DetectorConstruction
* detector);
41
Ex03CalorimeterSD
();
42
virtual
~Ex03CalorimeterSD
();
43
44
// methods
45
void
Initialize
();
46
Bool_t
ProcessHits
();
47
void
EndOfEvent
();
48
void
Register
();
49
virtual
void
Print
(Option_t* option =
""
)
const
;
50
void
PrintTotal
()
const
;
51
52
// set methods
53
void
SetVerboseLevel
(Int_t level);
54
55
// get methods
56
Ex03CalorHit
*
GetHit
(Int_t i)
const
;
57
58
private
:
59
// methods
60
void
ResetHits
();
61
62
// data members
63
TVirtualMC*
fMC
;
///< The VMC implementation
64
Ex03DetectorConstruction
*
fDetector
;
///< Detector construction
65
TClonesArray*
fCalCollection
;
///< Hits collection
66
Int_t
fAbsorberVolId
;
///< The absorber volume Id
67
Int_t
fGapVolId
;
///< The gap volume Id
68
Int_t
fVerboseLevel
;
///< Verbosity level
69
70
ClassDef(
Ex03CalorimeterSD
, 1)
// Ex03CalorimeterSD
71
};
72
73
/// Set verbose level
74
/// \param level The new verbose level value
75
inline
void
Ex03CalorimeterSD::SetVerboseLevel
(Int_t level)
76
{
77
fVerboseLevel
= level;
78
}
79
80
#endif
// EX02_CALORIMETER_SD_H
Ex03CalorHit
The calorimeter hit.
Definition
Ex03CalorHit.h:32
Ex03CalorimeterSD::fDetector
Ex03DetectorConstruction * fDetector
Detector construction.
Definition
Ex03CalorimeterSD.h:64
Ex03CalorimeterSD::fCalCollection
TClonesArray * fCalCollection
Hits collection.
Definition
Ex03CalorimeterSD.h:65
Ex03CalorimeterSD::EndOfEvent
void EndOfEvent()
Definition
Ex03CalorimeterSD.cxx:181
Ex03CalorimeterSD::SetVerboseLevel
void SetVerboseLevel(Int_t level)
Definition
Ex03CalorimeterSD.h:75
Ex03CalorimeterSD::ProcessHits
Bool_t ProcessHits()
Definition
Ex03CalorimeterSD.cxx:147
Ex03CalorimeterSD::fVerboseLevel
Int_t fVerboseLevel
Verbosity level.
Definition
Ex03CalorimeterSD.h:68
Ex03CalorimeterSD::~Ex03CalorimeterSD
virtual ~Ex03CalorimeterSD()
Definition
Ex03CalorimeterSD.cxx:95
Ex03CalorimeterSD::fGapVolId
Int_t fGapVolId
The gap volume Id.
Definition
Ex03CalorimeterSD.h:67
Ex03CalorimeterSD::ResetHits
void ResetHits()
Definition
Ex03CalorimeterSD.cxx:117
Ex03CalorimeterSD::Register
void Register()
Definition
Ex03CalorimeterSD.cxx:192
Ex03CalorimeterSD::fAbsorberVolId
Int_t fAbsorberVolId
The absorber volume Id.
Definition
Ex03CalorimeterSD.h:66
Ex03CalorimeterSD::GetHit
Ex03CalorHit * GetHit(Int_t i) const
Definition
Ex03CalorimeterSD.cxx:108
Ex03CalorimeterSD::fMC
TVirtualMC * fMC
The VMC implementation.
Definition
Ex03CalorimeterSD.h:63
Ex03CalorimeterSD::PrintTotal
void PrintTotal() const
Definition
Ex03CalorimeterSD.cxx:212
Ex03CalorimeterSD::Ex03CalorimeterSD
Ex03CalorimeterSD(const char *name, Ex03DetectorConstruction *detector)
Definition
Ex03CalorimeterSD.cxx:37
Ex03CalorimeterSD::Initialize
void Initialize()
Definition
Ex03CalorimeterSD.cxx:130
Ex03CalorimeterSD::Print
virtual void Print(Option_t *option="") const
Definition
Ex03CalorimeterSD.cxx:200
Ex03CalorimeterSD::Ex03CalorimeterSD
Ex03CalorimeterSD()
Definition
Ex03CalorimeterSD.cxx:83
Ex03DetectorConstruction
The detector construction (via TGeo ).
Definition
Ex03DetectorConstruction.h:35
TNamed
Generated on
for VMC Examples by
1.17.0