]>
Commit | Line | Data |
---|---|---|
2817d3e2 | 1 | // $Id$ |
0375ab40 | 2 | // Category: global |
2817d3e2 | 3 | // |
e5967ab3 | 4 | // Author: I. Hrivnacova |
5 | // | |
6 | // Class TG4G3CutVector | |
7 | // -------------------- | |
2817d3e2 | 8 | // Vector of kinetic energy cut values with |
e5967ab3 | 9 | // convenient set/get methods. |
2817d3e2 | 10 | |
0375ab40 | 11 | #ifndef TG4_G3_CUT_VECTOR_H |
12 | #define TG4_G3_CUT_VECTOR_H | |
2817d3e2 | 13 | |
14 | #include "TG4Globals.h" | |
0375ab40 | 15 | #include "TG4G3Cut.h" |
2817d3e2 | 16 | |
17 | class G4Track; | |
18 | ||
0375ab40 | 19 | class TG4G3CutVector |
2817d3e2 | 20 | { |
21 | public: | |
0375ab40 | 22 | TG4G3CutVector(); |
23 | TG4G3CutVector(const TG4G3CutVector& right); | |
24 | virtual ~TG4G3CutVector(); | |
2817d3e2 | 25 | |
26 | // operators | |
0375ab40 | 27 | TG4G3CutVector& operator=(const TG4G3CutVector& right); |
2817d3e2 | 28 | G4double operator[](G4int index) const; |
e5967ab3 | 29 | |
30 | // static methods | |
31 | static G4double Tolerance(); | |
32 | static TG4G3Cut GetCut(const G4String& cutName); | |
33 | static const G4String& GetCutName(TG4G3Cut cut); | |
34 | ||
2817d3e2 | 35 | // set methods |
e5967ab3 | 36 | void SetCut(TG4G3Cut cut, G4double cutValue); |
2817d3e2 | 37 | void SetG3Defaults(); |
e5967ab3 | 38 | G4bool Update(const TG4G3CutVector& vector); |
39 | void SetDeltaRaysOn(G4bool value); | |
2817d3e2 | 40 | |
e5967ab3 | 41 | // methods |
42 | void Print() const; | |
43 | ||
2817d3e2 | 44 | // get methods |
2817d3e2 | 45 | G4double GetMinEkineForGamma(const G4Track& track) const; |
46 | G4double GetMinEkineForElectron(const G4Track& track) const; | |
e5967ab3 | 47 | G4double GetMinEkineForEplus(const G4Track& track) const; |
48 | G4double GetMinEkineForChargedHadron(const G4Track& track) const; | |
2817d3e2 | 49 | G4double GetMinEkineForNeutralHadron(const G4Track& track) const; |
50 | G4double GetMinEkineForMuon(const G4Track& track) const; | |
51 | G4double GetMinEkineForOther(const G4Track& track) const; | |
e5967ab3 | 52 | G4bool IsCut() const; |
2817d3e2 | 53 | |
54 | private: | |
e5967ab3 | 55 | // static methods |
56 | static void FillCutNameVector(); | |
57 | ||
58 | // static data members | |
59 | static const G4double fgkDCUTEOff; //cut for delta rays by e- (if off) | |
60 | static const G4double fgkDCUTMOff; //cut for delta rays by mu (if off) | |
61 | static const G4double fgkTolerance; //tolerance for comparing cuts | |
62 | static TG4StringVector fgCutNameVector; //vector of cut parameters names | |
63 | ||
2817d3e2 | 64 | // data members |
e5967ab3 | 65 | TG4doubleVector fCutVector; //vector of kinetic energy cut values |
66 | G4bool fDeltaRaysOn;//delta rays process control | |
2817d3e2 | 67 | }; |
68 | ||
e5967ab3 | 69 | // inline methods |
70 | ||
71 | inline G4double TG4G3CutVector::Tolerance() | |
72 | { return fgkTolerance; } | |
73 | ||
74 | inline void TG4G3CutVector::SetDeltaRaysOn(G4bool value) | |
75 | { fDeltaRaysOn = value; } | |
76 | ||
2817d3e2 | 77 | #endif //TG4_CUT_VECTOR_H |
78 | ||
79 | ||
80 |