]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4VPhysicsConstructor.cxx
Updated Linkdef and libTOF.pkg
[u/mrichter/AliRoot.git] / TGeant4 / TG4VPhysicsConstructor.cxx
1 // $Id$
2 // Category: physics
3 //
4 // Author: I. Hrivnacova
5 //
6 // Class TG4VPhysicsConstructor
7 // ------------------------------
8 // See the class description in the header file.
9 // According to ExN04IonPhysics.cc,v 1.1.2.1 2001/06/28 19:07:37 gunter Exp 
10 // GEANT4 tag Name: geant4-03-02
11
12 #include "TG4VPhysicsConstructor.h"
13 #include "TG4Globals.h"
14
15 //_____________________________________________________________________________
16 TG4VPhysicsConstructor::TG4VPhysicsConstructor(const G4String& name)
17   : G4VPhysicsConstructor(name),
18     TG4Verbose(G4String("physics" + name))
19 {
20 //
21   VerboseLevel(1);
22 }
23
24 //_____________________________________________________________________________
25 TG4VPhysicsConstructor::TG4VPhysicsConstructor(const G4String& name,
26                                                G4int verboseLevel)
27   : G4VPhysicsConstructor(name),
28     TG4Verbose(G4String("physics" + name))
29 {
30 //
31   VerboseLevel(verboseLevel);
32 }
33
34 //_____________________________________________________________________________
35 TG4VPhysicsConstructor::TG4VPhysicsConstructor(
36                                      const TG4VPhysicsConstructor& right)    
37   : TG4Verbose("") {
38 //
39   TG4Globals::Exception("TG4VPhysicsConstructor is protected from copying.");
40 }
41
42 //_____________________________________________________________________________
43 TG4VPhysicsConstructor::TG4VPhysicsConstructor()  
44   : TG4Verbose("") {
45 //
46 }
47
48 //_____________________________________________________________________________
49 TG4VPhysicsConstructor::~TG4VPhysicsConstructor() {
50 //
51 }
52
53 //
54 // public methods
55 //
56
57 //_____________________________________________________________________________
58 void TG4VPhysicsConstructor::VerboseLevel(G4int level)
59 {
60 // Sets the same value to G4VPhysicsConstructor verbose
61 // level and TG4Verbose level.
62 // ---
63
64    TG4Verbose::VerboseLevel(level);
65    
66    // verbose in G4VPhysicsConstructor 
67    SetVerboseLevel(level);
68 }
69
70
71 //_____________________________________________________________________________
72 G4int TG4VPhysicsConstructor::VerboseLevel() const
73 {
74 // Returns TG4Verbose level value.
75 // ---
76
77    return TG4Verbose::VerboseLevel();
78 }