VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
A01
include
A01HodoscopeSD.h
Go to the documentation of this file.
1
#ifndef A01_HODOSCOPE_SD_H
2
#define A01_HODOSCOPE_SD_H
3
4
//------------------------------------------------
5
// The Virtual Monte Carlo examples
6
// Copyright (C) 2007 - 2014 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 A01HodoscopeSD.h
14
/// \brief Definition of the A01HodoscopeSD class
15
///
16
/// Geant4 example A01 adapted to Virtual Monte Carlo: \n
17
///
18
/// \author I. Hrivnacova; IPN, Orsay
19
20
#include <TClonesArray.h>
21
#include <TNamed.h>
22
23
class
A01HodoscopeHit
;
24
25
/// \ingroup A01
26
/// \brief The calorimeter sensitive detector
27
///
28
/// \author I. Hrivnacova; IPN, Orsay
29
30
class
A01HodoscopeSD
:
public
TNamed
31
{
32
public
:
33
A01HodoscopeSD
(
const
char
* name,
const
char
* volName);
34
A01HodoscopeSD
(
const
A01HodoscopeSD
& origin);
35
A01HodoscopeSD
();
36
virtual
~A01HodoscopeSD
();
37
38
// methods
39
void
Initialize
();
40
Bool_t
ProcessHits
();
41
void
EndOfEvent
();
42
void
Register
();
43
virtual
void
Print
(Option_t* option =
""
)
const
;
44
// void PrintTotal() const;
45
46
// set methods
47
void
SetWriteHits
(Bool_t writeHits);
48
void
SetVerboseLevel
(Int_t level);
49
50
// get methods
51
A01HodoscopeHit
*
GetHit
(Int_t i)
const
;
52
53
private
:
54
// data members
55
TClonesArray*
fHitsCollection
;
///< Hits collection
56
TString
fVolName
;
///< The sensitive volume Name
57
Int_t
fVolId
;
///< The calorimeter volume Id
58
Bool_t
fWriteHits
;
///< Option to write hits
59
Int_t
fVerboseLevel
;
///< Verbosity level
60
61
ClassDef(
A01HodoscopeSD
, 1)
// A01HodoscopeSD
62
};
63
64
/// (In)Activate writing hits on file
65
/// \param writeHits The new value of the option
66
inline
void
A01HodoscopeSD::SetWriteHits
(Bool_t writeHits)
67
{
68
fWriteHits
= writeHits;
69
}
70
71
/// Set verbose level
72
/// \param level The new verbose level value
73
inline
void
A01HodoscopeSD::SetVerboseLevel
(Int_t level)
74
{
75
fVerboseLevel
= level;
76
}
77
78
#endif
// A01_HODOSCOPE_SD_H
A01HodoscopeHit
The hodoscope hit.
Definition
A01HodoscopeHit.h:31
A01HodoscopeSD::ProcessHits
Bool_t ProcessHits()
Definition
A01HodoscopeSD.cxx:121
A01HodoscopeSD::fVolName
TString fVolName
The sensitive volume Name.
Definition
A01HodoscopeSD.h:56
A01HodoscopeSD::SetWriteHits
void SetWriteHits(Bool_t writeHits)
Definition
A01HodoscopeSD.h:66
A01HodoscopeSD::A01HodoscopeSD
A01HodoscopeSD(const char *name, const char *volName)
Definition
A01HodoscopeSD.cxx:36
A01HodoscopeSD::SetVerboseLevel
void SetVerboseLevel(Int_t level)
Definition
A01HodoscopeSD.h:73
A01HodoscopeSD::fWriteHits
Bool_t fWriteHits
Option to write hits.
Definition
A01HodoscopeSD.h:58
A01HodoscopeSD::Initialize
void Initialize()
Definition
A01HodoscopeSD.cxx:110
A01HodoscopeSD::Print
virtual void Print(Option_t *option="") const
Definition
A01HodoscopeSD.cxx:194
A01HodoscopeSD::fVolId
Int_t fVolId
The calorimeter volume Id.
Definition
A01HodoscopeSD.h:57
A01HodoscopeSD::GetHit
A01HodoscopeHit * GetHit(Int_t i) const
Definition
A01HodoscopeSD.cxx:97
A01HodoscopeSD::~A01HodoscopeSD
virtual ~A01HodoscopeSD()
Definition
A01HodoscopeSD.cxx:84
A01HodoscopeSD::EndOfEvent
void EndOfEvent()
Definition
A01HodoscopeSD.cxx:172
A01HodoscopeSD::fHitsCollection
TClonesArray * fHitsCollection
Hits collection.
Definition
A01HodoscopeSD.h:55
A01HodoscopeSD::Register
void Register()
Definition
A01HodoscopeSD.cxx:183
A01HodoscopeSD::fVerboseLevel
Int_t fVerboseLevel
Verbosity level.
Definition
A01HodoscopeSD.h:59
A01HodoscopeSD::A01HodoscopeSD
A01HodoscopeSD()
Definition
A01HodoscopeSD.cxx:72
TNamed
Generated on
for VMC Examples by
1.17.0