VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
ExGarfield
include
SensitiveDetector.h
Go to the documentation of this file.
1
#ifndef GARFIELD_CALORIMETER_SD_H
2
#define GARFIELD_CALORIMETER_SD_H
3
4
//------------------------------------------------
5
// The Virtual Monte Carlo examples
6
// Copyright (C) 2007 - 2016 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 ExGarfield/include/SensitiveDetector.h
14
/// \brief Definition of the ExGarfield::SensitiveDetector class
15
///
16
/// Garfield garfieldpp example adapted to Virtual Monte Carlo.
17
///
18
/// \author I. Hrivnacova; IPN, Orsay
19
20
#include <TClonesArray.h>
21
#include <TNamed.h>
22
23
namespace
VMC
24
{
25
namespace
ExGarfield
26
{
27
28
class
Hit
;
29
30
/// \ingroup ExGarfield
31
/// \brief The calorimeter sensitive detector
32
///
33
/// Garfield garfieldpp example adapted to Virtual Monte Carlo.
34
///
35
/// \date 28/10/2015
36
/// \author I. Hrivnacova; IPN, Orsay
37
38
class
SensitiveDetector
:
public
TNamed
39
{
40
public
:
41
SensitiveDetector
(
const
char
* name);
42
SensitiveDetector
(
const
SensitiveDetector
& origin);
43
SensitiveDetector
();
44
virtual
~SensitiveDetector
();
45
46
// methods
47
void
Initialize
();
48
Bool_t
ProcessHits
();
49
Bool_t
UpdateFromGarfield
();
50
void
EndOfEvent
();
51
void
Register
();
52
virtual
void
Print
(Option_t* option =
""
)
const
;
53
54
// set methods
55
void
SetVerboseLevel
(Int_t level);
56
57
// get methods
58
Hit
*
GetHit
()
const
;
59
60
private
:
61
// data members
62
Hit
*
fHit
;
///< The detector hit
63
Int_t
fAbsorberVolId
;
///< The absorber volume Id
64
Int_t
fGasVolId
;
///< The gas volume Id
65
Int_t
fVerboseLevel
;
///< Verbosity level
66
67
ClassDef(
SensitiveDetector
, 1)
// SensitiveDetector
68
};
69
70
/// Set verbose level
71
/// \param level The new verbose level value
72
inline
void
SensitiveDetector::SetVerboseLevel
(Int_t level)
73
{
74
fVerboseLevel
= level;
75
}
76
77
/// Return the hits collection
78
inline
Hit
*
SensitiveDetector::GetHit
()
const
{
return
fHit
; }
79
80
}
// namespace ExGarfield
81
}
// namespace VMC
82
83
#endif
// EX02_CALORIMETER_SD_H
TNamed
VMC::ExGarfield::Hit
The calorimeter hit.
Definition
Hit.h:37
VMC::ExGarfield::SensitiveDetector::ProcessHits
Bool_t ProcessHits()
Definition
SensitiveDetector.cxx:95
VMC::ExGarfield::SensitiveDetector::SensitiveDetector
SensitiveDetector(const char *name)
Definition
SensitiveDetector.cxx:39
VMC::ExGarfield::SensitiveDetector::fGasVolId
Int_t fGasVolId
The gas volume Id.
Definition
SensitiveDetector.h:64
VMC::ExGarfield::SensitiveDetector::Initialize
void Initialize()
Definition
SensitiveDetector.cxx:84
VMC::ExGarfield::SensitiveDetector::EndOfEvent
void EndOfEvent()
Definition
SensitiveDetector.cxx:141
VMC::ExGarfield::SensitiveDetector::GetHit
Hit * GetHit() const
Return the hits collection.
Definition
SensitiveDetector.h:78
VMC::ExGarfield::SensitiveDetector::UpdateFromGarfield
Bool_t UpdateFromGarfield()
Definition
SensitiveDetector.cxx:121
VMC::ExGarfield::SensitiveDetector::SetVerboseLevel
void SetVerboseLevel(Int_t level)
Definition
SensitiveDetector.h:72
VMC::ExGarfield::SensitiveDetector::fVerboseLevel
Int_t fVerboseLevel
Verbosity level.
Definition
SensitiveDetector.h:65
VMC::ExGarfield::SensitiveDetector::fAbsorberVolId
Int_t fAbsorberVolId
The absorber volume Id.
Definition
SensitiveDetector.h:63
VMC::ExGarfield::SensitiveDetector::Register
void Register()
Definition
SensitiveDetector.cxx:156
VMC::ExGarfield::SensitiveDetector::~SensitiveDetector
virtual ~SensitiveDetector()
Definition
SensitiveDetector.cxx:72
VMC::ExGarfield::SensitiveDetector::fHit
Hit * fHit
The detector hit.
Definition
SensitiveDetector.h:62
VMC::ExGarfield::SensitiveDetector::SensitiveDetector
SensitiveDetector()
Definition
SensitiveDetector.cxx:65
VMC::ExGarfield::SensitiveDetector::Print
virtual void Print(Option_t *option="") const
Definition
SensitiveDetector.cxx:164
VMC::ExGarfield
Definition
FastSimulation.h:28
VMC
Definition
FastSimulation.h:26
Generated on
for VMC Examples by
1.17.0