VMC Examples Version 6.6
Loading...
Searching...
No Matches
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
23namespace VMC
24{
25namespace 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
35{
36 public:
37 SensitiveDetector(const char* name);
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
65inline void SensitiveDetector::SetVerboseLevel(Int_t level)
66{
67 fVerboseLevel = level;
68}
69
70/// Return energy deposit
71inline Double_t SensitiveDetector::GetEdep() const { return fEdep; }
72
73} // namespace TR
74} // namespace VMC
75
76#endif // SENSITIVE_DETECTOR_H
The absorber sensitive detector.
void SetVerboseLevel(Int_t level)
Int_t fVerboseLevel
Verbosity level.
Double_t GetEdep() const
Return energy deposit.
virtual void Print(Option_t *option="") const
Double_t fEdep
Energy deposit.
Int_t fAbsorberVolId
The absorber volume Id.