Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4SDManager.h
Go to the documentation of this file.
1#ifndef TG4_SD_MANAGER_H
2#define TG4_SD_MANAGER_H
3
4//------------------------------------------------
5// The Geant4 Virtual Monte Carlo package
6// Copyright (C) 2007 - 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
17
18#include <globals.hh>
19
20#include <Rtypes.h>
21
22class TG4SDServices;
24
25class TVirtualMCSensitiveDetector;
26
32
34{
35 public:
38
39 // static methods
40 static TG4SDManager* Instance();
41
42 // methods
43 void Initialize();
44
45 // TVirtualMC methods
46 Int_t VolId(const Text_t* volName) const;
47 const char* VolName(Int_t id) const;
48 Int_t NofVolumes() const;
49 Int_t NofVolDaughters(const char* volName) const;
50 const char* VolDaughterName(const char* volName, Int_t i) const;
51 Int_t VolDaughterCopyNo(const char* volName, Int_t i) const;
52 Int_t VolId2Mate(Int_t volumeId) const;
53
55 const TString& volName, TVirtualMCSensitiveDetector* sd);
56 TVirtualMCSensitiveDetector* GetSensitiveDetector(
57 const TString& volName) const;
58 void SetExclusiveSDScoring(Bool_t exclusiveSDScoring);
59
60 // get methods
62
63 private:
68
69 // static data members
71
72 //
73 // data members
74
77
80
82 mutable G4String fNameBuffer;
83};
84
85// inline methods
86
88{
90 return fgInstance;
91}
92
98
99#endif // TG4_SD_MANAGER_H
Sensitive detector construction.
Geant4 implementation of the TVirtualMC interface methods for access to Geant4 geometry related with ...
static TG4SDManager * Instance()
Int_t NofVolDaughters(const char *volName) const
const char * VolDaughterName(const char *volName, Int_t i) const
TVirtualMCSensitiveDetector * GetSensitiveDetector(const TString &volName) const
Int_t NofVolumes() const
void SetSensitiveDetector(const TString &volName, TVirtualMCSensitiveDetector *sd)
void SetExclusiveSDScoring(Bool_t exclusiveSDScoring)
G4String fNameBuffer
buffer for volume name
Int_t VolDaughterCopyNo(const char *volName, Int_t i) const
TG4SDServices * fSDServices
services related with sensitive detectors
const char * VolName(Int_t id) const
TG4SDManager(const TG4SDManager &right)
Not implemented.
Int_t VolId(const Text_t *volName) const
TG4SDManager & operator=(const TG4SDManager &right)
Not implemented.
TG4SDConstruction * GetSDConstruction() const
static TG4SDManager * fgInstance
this instance
Int_t VolId2Mate(Int_t volumeId) const
TG4SDConstruction * fSDConstruction
sensitive detectors construction
Sensitive detectors services.