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