VMC Examples Version 6.6
Loading...
Searching...
No Matches
Ex02TrackerSD.h
Go to the documentation of this file.
1#ifndef EX02_TRACKER_SD_H
2#define EX02_TRACKER_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 Ex02TrackerSD.h
14/// \brief Definition of the Ex02TrackerSD class
15///
16/// Geant4 ExampleN02 adapted to Virtual Monte Carlo \n
17/// Id: ExN02TrackerSD.hh,v 1.6 2002/01/09 17:24:09 ranjard Exp \n
18/// GEANT4 tag Name: geant4-04-00-patch-02
19///
20/// \author I. Hrivnacova; IPN, Orsay
21
22#include <TClonesArray.h>
23#include <TNamed.h>
24
25class Ex02TrackerHit;
26
27/// \ingroup E02
28/// \brief The tracker sensitive detector
29///
30/// \date 21/04/2002
31/// \author I. Hrivnacova; IPN, Orsay
32
33class Ex02TrackerSD : public TNamed
34{
35 public:
36 Ex02TrackerSD(const char* name);
37 Ex02TrackerSD(const Ex02TrackerSD& origin);
39 virtual ~Ex02TrackerSD();
40
41 // methods
42 void Initialize();
43 Bool_t ProcessHits();
44 void EndOfEvent();
45 void Register();
46 virtual void Print(const Option_t* option = 0) const;
47
48 // set methods
49 void SetVerboseLevel(Int_t level);
50
51 private:
52 // methods
54
55 // data members
56 TClonesArray* fTrackerCollection; ///< Hits collection
57 Int_t fSensitiveVolumeID; ///< Sensitive volume Id
58 Int_t fVerboseLevel; ///< Verbosity level
59
60 ClassDef(Ex02TrackerSD, 1) // Ex02TrackerSD
61};
62
63/// Set verbose level
64/// \param level The new verbose level value
65inline void Ex02TrackerSD::SetVerboseLevel(Int_t level)
66{
67 fVerboseLevel = level;
68}
69
70#endif // EX02_TRACKER_SD_H
The tracker hit.
The tracker sensitive detector.
Int_t fVerboseLevel
Verbosity level.
Ex02TrackerHit * AddHit()
virtual void Print(const Option_t *option=0) const
virtual ~Ex02TrackerSD()
void SetVerboseLevel(Int_t level)
Int_t fSensitiveVolumeID
Sensitive volume Id.
TClonesArray * fTrackerCollection
Hits collection.