Public Member Functions | Private Attributes | List of all members
LBNETrackInformation Class Reference

#include <LBNETrackInformation.hh>

Inheritance diagram for LBNETrackInformation:

Public Member Functions

 LBNETrackInformation ()
 
 LBNETrackInformation (const LBNETrackInformation *aTrackInfo)
 
 LBNETrackInformation (const LBNETrackInformation &aTrackInfo)
 
 LBNETrackInformation (LBNETrackInformation *aTrackInfo)
 
 LBNETrackInformation (LBNETrackInformation &aTrackInfo)
 
virtual ~LBNETrackInformation ()
 
void * operator new (size_t)
 
void operator delete (void *aTrackInfo)
 
LBNETrackInformationoperator= (const LBNETrackInformation &right)
 
LBNETrackInformationoperator= (LBNETrackInformation &right)
 
G4int GetDecayCode () const
 
void SetDecayCode (G4int decaycode)
 
G4int GetTgen () const
 
void SetTgen (G4int tgeneration)
 
G4double GetNImpWt () const
 
void SetNImpWt (G4double nimpweight)
 
void Print () const
 
void Print (const G4Track *aTrack) const
 
G4ThreeVector GetParentMomentumAtThisProduction () const
 
void SetParentMomentumAtThisProduction (G4ThreeVector mom)
 
int GetPFFlag () const
 
void SetPFFlag (int f)
 

Private Attributes

G4int decay_code
 
G4int tgen
 
G4double Nimpwt
 
G4int fPerfectFocusingFlag
 
G4ThreeVector fParentMomentumAtThisProduction
 

Detailed Description

Definition at line 14 of file LBNETrackInformation.hh.

Constructor & Destructor Documentation

LBNETrackInformation::LBNETrackInformation ( )

Definition at line 13 of file LBNETrackInformation.cc.

14  :decay_code(0),
15  tgen(0),
16  Nimpwt(1.0),
19 {
20 // std::cerr << " Creating LBNETrackInformation.. " << (void*) this << std::endl;
21 }
G4ThreeVector fParentMomentumAtThisProduction
LBNETrackInformation::LBNETrackInformation ( const LBNETrackInformation aTrackInfo)

Definition at line 24 of file LBNETrackInformation.cc.

25 {
26  decay_code = aTrackInfo->decay_code; // Why does this work.. decay_code is private..
27  tgen = aTrackInfo->tgen;
28  Nimpwt = aTrackInfo->Nimpwt;
29  fPerfectFocusingFlag = aTrackInfo->GetPFFlag();
31  std::cerr << " LBNETrackInformation copy from const pointer done " << std::endl;
32 }
G4ThreeVector fParentMomentumAtThisProduction
QTextStream & endl(QTextStream &s)
LBNETrackInformation::LBNETrackInformation ( const LBNETrackInformation aTrackInfo)

Definition at line 33 of file LBNETrackInformation.cc.

33  :
34 G4VUserTrackInformation()
35 {
36  decay_code = aTrackInfo.GetDecayCode();
37  tgen = aTrackInfo.GetTgen();
38  Nimpwt = aTrackInfo.GetNImpWt();
39  fPerfectFocusingFlag = aTrackInfo.GetPFFlag();
41  std::cerr << " LBNETrackInformation copy constr const by ref done " << std::endl;
42 }
G4ThreeVector fParentMomentumAtThisProduction
G4double GetNImpWt() const
QTextStream & endl(QTextStream &s)
LBNETrackInformation::LBNETrackInformation ( LBNETrackInformation aTrackInfo)

Definition at line 43 of file LBNETrackInformation.cc.

44 {
45  decay_code = aTrackInfo->decay_code; // Why does this work.. decay_code is private..
46  tgen = aTrackInfo->tgen;
47  Nimpwt = aTrackInfo->Nimpwt;
48  fPerfectFocusingFlag = aTrackInfo->GetPFFlag();
50  std::cerr << " LBNETrackInformation copy from pointer done " << std::endl;
51 }
G4ThreeVector fParentMomentumAtThisProduction
QTextStream & endl(QTextStream &s)
LBNETrackInformation::LBNETrackInformation ( LBNETrackInformation aTrackInfo)

Definition at line 52 of file LBNETrackInformation.cc.

52  :
53 G4VUserTrackInformation()
54 {
55  decay_code = aTrackInfo.GetDecayCode();
56  tgen = aTrackInfo.GetTgen();
57  Nimpwt = aTrackInfo.GetNImpWt();
58  fPerfectFocusingFlag = aTrackInfo.GetPFFlag();
60  std::cerr << " LBNETrackInformation copy constr by ref done " << std::endl;
61 }
G4ThreeVector fParentMomentumAtThisProduction
G4double GetNImpWt() const
QTextStream & endl(QTextStream &s)
LBNETrackInformation::~LBNETrackInformation ( )
virtual

Definition at line 83 of file LBNETrackInformation.cc.

83 {}

Member Function Documentation

G4int LBNETrackInformation::GetDecayCode ( ) const
inline

Definition at line 29 of file LBNETrackInformation.hh.

G4double LBNETrackInformation::GetNImpWt ( ) const
inline

Definition at line 39 of file LBNETrackInformation.hh.

40  {return Nimpwt;}
G4ThreeVector LBNETrackInformation::GetParentMomentumAtThisProduction ( ) const
inline

Definition at line 47 of file LBNETrackInformation.hh.

47  {
49  }
G4ThreeVector fParentMomentumAtThisProduction
int LBNETrackInformation::GetPFFlag ( ) const
inline

Definition at line 63 of file LBNETrackInformation.hh.

G4int LBNETrackInformation::GetTgen ( ) const
inline

Definition at line 34 of file LBNETrackInformation.hh.

35  {return tgen;}
void LBNETrackInformation::operator delete ( void *  aTrackInfo)
inline

Definition at line 75 of file LBNETrackInformation.hh.

76 { aTrackInformationAllocator.FreeSingle((LBNETrackInformation*)aTrackInfo);}
G4Allocator< LBNETrackInformation > aTrackInformationAllocator
void * LBNETrackInformation::operator new ( size_t  )
inline

Definition at line 69 of file LBNETrackInformation.hh.

70 { void* aTrackInfo;
71  aTrackInfo = (void*)aTrackInformationAllocator.MallocSingle();
72  return aTrackInfo;
73 }
G4Allocator< LBNETrackInformation > aTrackInformationAllocator
LBNETrackInformation & LBNETrackInformation::operator= ( const LBNETrackInformation right)

Definition at line 62 of file LBNETrackInformation.cc.

63 {
64  decay_code = right.GetDecayCode();
65  tgen = right.GetTgen();
66  Nimpwt = right.GetNImpWt();
69  std::cerr << " LBNETrackInformation assignment from const done " << std::endl;
70  return *this;
71 }
G4ThreeVector fParentMomentumAtThisProduction
G4double GetNImpWt() const
QTextStream & endl(QTextStream &s)
LBNETrackInformation & LBNETrackInformation::operator= ( LBNETrackInformation right)

Definition at line 72 of file LBNETrackInformation.cc.

73 {
74  decay_code = right.GetDecayCode();
75  tgen = right.GetTgen();
76  Nimpwt = right.GetNImpWt();
79  std::cerr << " LBNETrackInformation assignment done " << std::endl;
80  return *this;
81 }
G4ThreeVector fParentMomentumAtThisProduction
G4double GetNImpWt() const
QTextStream & endl(QTextStream &s)
void LBNETrackInformation::Print ( ) const

Definition at line 85 of file LBNETrackInformation.cc.

86 {
87  G4cout
88  << "Decay code = " << decay_code << G4endl;
89  G4cout
90  << "tgen = " << tgen << G4endl;
91  G4cout
92  << "nimpwt = " << Nimpwt << " Perfect Focusing flag " << fPerfectFocusingFlag << G4endl;
93 }
void LBNETrackInformation::Print ( const G4Track *  aTrack) const

Definition at line 95 of file LBNETrackInformation.cc.

96 {
97  const G4String spaces = " ";
98 
99  G4cout << spaces << "Track ID = " << aTrack->GetTrackID() << G4endl
100  << spaces << "Particle Name = " << aTrack->GetDefinition()->GetParticleName() << G4endl
101  << spaces << "Parent ID = " << aTrack->GetParentID() << G4endl;
102  if(aTrack->GetVolume()) G4cout << spaces << "Current volume = " << aTrack->GetVolume()-> GetName() << G4endl;
103  else G4cout << spaces << "Current volume = NOT CURRENTLY AVAILABLE" << G4endl;
104  if(aTrack->GetCreatorProcess()) G4cout << spaces << "Creator Process = "<< aTrack->GetCreatorProcess()->GetProcessName() << G4endl;
105  else G4cout << spaces << "Creator Process = NOT CURRENTLY AVAILABLE" << G4endl;
106 
107 }
void LBNETrackInformation::SetDecayCode ( G4int  decaycode)
inline

Definition at line 31 of file LBNETrackInformation.hh.

32  {decay_code=decaycode;}
void LBNETrackInformation::SetNImpWt ( G4double  nimpweight)
inline

Definition at line 41 of file LBNETrackInformation.hh.

42  {Nimpwt=nimpweight;}
void LBNETrackInformation::SetParentMomentumAtThisProduction ( G4ThreeVector  mom)
inline

Definition at line 51 of file LBNETrackInformation.hh.

51  {
53  }
G4ThreeVector fParentMomentumAtThisProduction
void LBNETrackInformation::SetPFFlag ( int  f)
inline
void LBNETrackInformation::SetTgen ( G4int  tgeneration)
inline

Definition at line 36 of file LBNETrackInformation.hh.

37  {tgen=tgeneration;}

Member Data Documentation

G4int LBNETrackInformation::decay_code
private

Definition at line 55 of file LBNETrackInformation.hh.

G4ThreeVector LBNETrackInformation::fParentMomentumAtThisProduction
private

Definition at line 59 of file LBNETrackInformation.hh.

G4int LBNETrackInformation::fPerfectFocusingFlag
private

Definition at line 58 of file LBNETrackInformation.hh.

G4double LBNETrackInformation::Nimpwt
private

Definition at line 57 of file LBNETrackInformation.hh.

G4int LBNETrackInformation::tgen
private

Definition at line 56 of file LBNETrackInformation.hh.


The documentation for this class was generated from the following files: