VMC Examples Version 6.6
Loading...
Searching...
No Matches
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
26class Ex03CalorHit;
27class TVirtualMC;
28
29/// \ingroup E03
30/// \brief The calorimeter sensitive detector
31///
32/// \date 06/03/2003
33/// \author I. Hrivnacova; IPN, Orsay
34
36{
37 public:
38 Ex03CalorimeterSD(const char* name, Ex03DetectorConstruction* detector);
40 const Ex03CalorimeterSD& origin, Ex03DetectorConstruction* detector);
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
75inline void Ex03CalorimeterSD::SetVerboseLevel(Int_t level)
76{
77 fVerboseLevel = level;
78}
79
80#endif // EX02_CALORIMETER_SD_H
The calorimeter hit.
The calorimeter sensitive detector.
Ex03DetectorConstruction * fDetector
Detector construction.
TClonesArray * fCalCollection
Hits collection.
void SetVerboseLevel(Int_t level)
Int_t fVerboseLevel
Verbosity level.
Int_t fGapVolId
The gap volume Id.
Int_t fAbsorberVolId
The absorber volume Id.
Ex03CalorHit * GetHit(Int_t i) const
TVirtualMC * fMC
The VMC implementation.
virtual void Print(Option_t *option="") const
The detector construction (via TGeo )