Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BesEmcHit Class Reference

#include <BesEmcHit.hh>

List of all members.

Public Member Functions

void AddCrystal (G4double de, G4double dl)
void AddCrystal (G4double de, G4double dl)
 BesEmcHit (const BesEmcHit &)
 BesEmcHit ()
 BesEmcHit (const BesEmcHit &)
 BesEmcHit ()
void Draw ()
void Draw ()
G4double GetEdepCasing ()
G4double GetEdepCasing ()
G4double GetEdepCrystal ()
G4double GetEdepCrystal ()
G4int GetG4Index ()
G4int GetG4Index ()
G4ThreeVector GetMomentum ()
G4ThreeVector GetMomentum ()
G4int GetNumPhiCrystal ()
G4int GetNumPhiCrystal ()
G4int GetNumThetaCrystal ()
G4int GetNumThetaCrystal ()
G4int GetPartId ()
G4int GetPartId ()
G4ThreeVector GetPosCrystal ()
G4ThreeVector GetPosCrystal ()
G4double GetTimeCrystal ()
G4double GetTimeCrystal ()
G4double GetTotalEdepCrystal ()
G4double GetTotalEdepCrystal ()
G4double GetTotalTrakCrystal ()
G4double GetTotalTrakCrystal ()
G4int GetTrackIndex ()
G4int GetTrackIndex ()
G4double GetTrakCrystal ()
G4double GetTrakCrystal ()
void operator delete (void *)
void operator delete (void *)
void * operator new (size_t)
void * operator new (size_t)
const BesEmcHitoperator= (const BesEmcHit &)
const BesEmcHitoperator= (const BesEmcHit &)
int operator== (const BesEmcHit &) const
int operator== (const BesEmcHit &) const
void Print ()
void Print (G4int)
void Print ()
void Print (G4int)
void SetEdepCasing (G4double de)
void SetEdepCasing (G4double de)
void SetEdepCrystal (G4double de)
void SetEdepCrystal (G4double de)
void SetG4Index (G4int index)
void SetG4Index (G4int index)
void SetMomentum (G4ThreeVector momen)
void SetMomentum (G4ThreeVector momen)
void SetNumCrystal (G4int id, G4int numTheta, G4int numPhi)
void SetNumCrystal (G4int id, G4int numTheta, G4int numPhi)
void SetPosCrystal (G4ThreeVector position)
void SetPosCrystal (G4ThreeVector position)
void SetTimeCrystal (G4double t)
void SetTimeCrystal (G4double t)
void SetTrackIndex (G4int index)
void SetTrackIndex (G4int index)
void SetTrakCrystal (G4double dl)
void SetTrakCrystal (G4double dl)
 ~BesEmcHit ()
 ~BesEmcHit ()

Private Attributes

G4double EdepCasing
G4double EdepCrystal
G4int g4Index
G4ThreeVector momentum
G4int NumPhi
G4int NumTheta
G4int PartId
G4ThreeVector PositionCrystal
G4double TimeCrystal
G4double TotalEdepCrystal
G4double TotalTrackLengthCrystal
G4int trackIndex
G4double TrackLengthCrystal


Constructor & Destructor Documentation

BesEmcHit::BesEmcHit  ) 
 

00024 {
00025   TotalEdepCrystal = 0.; TotalTrackLengthCrystal = 0.;
00026   EdepCrystal = 0.; TrackLengthCrystal = 0.;
00027   EdepCasing = 0.;
00028   PositionCrystal= G4ThreeVector(0,0,0);
00029   TimeCrystal=0.;
00030   PartId=0;
00031   NumTheta=0;
00032   NumPhi=0;
00033   trackIndex=0;
00034   g4Index=0;
00035   momentum = G4ThreeVector(0,0,0);
00036 }

BesEmcHit::~BesEmcHit  ) 
 

00041 {}

BesEmcHit::BesEmcHit const BesEmcHit  ) 
 

00046   : G4VHit()
00047 {
00048   EdepCrystal = right.EdepCrystal;
00049   TrackLengthCrystal = right.TrackLengthCrystal;
00050   EdepCasing = right.EdepCasing;
00051   PositionCrystal= right.PositionCrystal;
00052   TimeCrystal = right.TimeCrystal;
00053   PartId = right.PartId;
00054   NumTheta = right.NumTheta;
00055   NumPhi = right.NumPhi;
00056   trackIndex = right.trackIndex;
00057   g4Index = right.g4Index;
00058   momentum = right.momentum;
00059 }

BesEmcHit::BesEmcHit  ) 
 

BesEmcHit::~BesEmcHit  ) 
 

BesEmcHit::BesEmcHit const BesEmcHit  ) 
 


Member Function Documentation

void BesEmcHit::AddCrystal G4double  de,
G4double  dl
[inline]
 

void BesEmcHit::AddCrystal G4double  de,
G4double  dl
[inline]
 

void BesEmcHit::Draw  ) 
 

void BesEmcHit::Draw  ) 
 

00089 {}

G4double BesEmcHit::GetEdepCasing  )  [inline]
 

00057 { return EdepCasing; };

G4double BesEmcHit::GetEdepCasing  )  [inline]
 

00057 { return EdepCasing; };

G4double BesEmcHit::GetEdepCrystal  )  [inline]
 

00056 { return EdepCrystal; };

G4double BesEmcHit::GetEdepCrystal  )  [inline]
 

00056 { return EdepCrystal; };

G4int BesEmcHit::GetG4Index  )  [inline]
 

00065 {return g4Index;}

G4int BesEmcHit::GetG4Index  )  [inline]
 

00065 {return g4Index;}

G4ThreeVector BesEmcHit::GetMomentum  )  [inline]
 

00066 {return momentum;}

G4ThreeVector BesEmcHit::GetMomentum  )  [inline]
 

00066 {return momentum;}

G4int BesEmcHit::GetNumPhiCrystal  )  [inline]
 

00063 {return NumPhi;};

G4int BesEmcHit::GetNumPhiCrystal  )  [inline]
 

00063 {return NumPhi;};

G4int BesEmcHit::GetNumThetaCrystal  )  [inline]
 

00062 {return NumTheta;};

G4int BesEmcHit::GetNumThetaCrystal  )  [inline]
 

00062 {return NumTheta;};

G4int BesEmcHit::GetPartId  )  [inline]
 

00061 {return PartId;};

G4int BesEmcHit::GetPartId  )  [inline]
 

00061 {return PartId;};

G4ThreeVector BesEmcHit::GetPosCrystal  )  [inline]
 

00059 { return PositionCrystal;};

G4ThreeVector BesEmcHit::GetPosCrystal  )  [inline]
 

00059 { return PositionCrystal;};

G4double BesEmcHit::GetTimeCrystal  )  [inline]
 

00060 {return TimeCrystal;};

G4double BesEmcHit::GetTimeCrystal  )  [inline]
 

00060 {return TimeCrystal;};

G4double BesEmcHit::GetTotalEdepCrystal  )  [inline]
 

00054 { return TotalEdepCrystal; };

G4double BesEmcHit::GetTotalEdepCrystal  )  [inline]
 

00054 { return TotalEdepCrystal; };

G4double BesEmcHit::GetTotalTrakCrystal  )  [inline]
 

00055 { return TotalTrackLengthCrystal; };

G4double BesEmcHit::GetTotalTrakCrystal  )  [inline]
 

00055 { return TotalTrackLengthCrystal; };

G4int BesEmcHit::GetTrackIndex  )  [inline]
 

00064 {return trackIndex;}

G4int BesEmcHit::GetTrackIndex  )  [inline]
 

00064 {return trackIndex;}

G4double BesEmcHit::GetTrakCrystal  )  [inline]
 

00058 { return TrackLengthCrystal; };

G4double BesEmcHit::GetTrakCrystal  )  [inline]
 

00058 { return TrackLengthCrystal; };

void BesEmcHit::operator delete void *   )  [inline]
 

void BesEmcHit::operator delete void *   )  [inline]
 

00099 {
00100   BesEmcHitAllocator.FreeSingle((BesEmcHit*) aHit);
00101 }

void* BesEmcHit::operator new size_t   )  [inline]
 

void * BesEmcHit::operator new size_t   )  [inline]
 

00090 {
00091   void* aHit;
00092   aHit = (void*) BesEmcHitAllocator.MallocSingle();
00093   return aHit;
00094 }

const BesEmcHit& BesEmcHit::operator= const BesEmcHit  ) 
 

const BesEmcHit & BesEmcHit::operator= const BesEmcHit  ) 
 

00064 {
00065   EdepCrystal = right.EdepCrystal;
00066   TrackLengthCrystal = right.TrackLengthCrystal;
00067   EdepCasing = right.EdepCasing;
00068   PositionCrystal= right.PositionCrystal;
00069   TimeCrystal = right.TimeCrystal;
00070   PartId = right.PartId;
00071   NumTheta = right.NumTheta;
00072   NumPhi = right.NumPhi;
00073   trackIndex = right.trackIndex;
00074   g4Index = right.g4Index;
00075   momentum = right.momentum;
00076   return *this;
00077 }

int BesEmcHit::operator== const BesEmcHit  )  const
 

int BesEmcHit::operator== const BesEmcHit  )  const
 

00082 {
00083   return (this==&right) ? 1 : 0;
00084 }

void BesEmcHit::Print  ) 
 

void BesEmcHit::Print G4int   ) 
 

void BesEmcHit::Print  ) 
 

00108 {
00109   G4cout<<"time: "<<TimeCrystal<<" edep: "<<EdepCrystal<<G4endl;
00110 }

void BesEmcHit::Print G4int   ) 
 

00094 {
00095   if(verboseLevel>0)
00096     G4cout << "Hit in crystal:" <<NumTheta<<","<<NumPhi<<G4endl
00097            <<"Energy deposited:"<<G4BestUnit(EdepCrystal,"Energy") <<G4endl;
00098   if(verboseLevel>1)
00099     G4cout <<"Hit time        :"<<G4BestUnit(TimeCrystal,"Time")<<G4endl
00100            <<"    position    :"<<G4BestUnit(PositionCrystal,"Length")<<G4endl;
00101   if(verboseLevel>2)
00102     G4cout <<"Track length    :"<<G4BestUnit(TrackLengthCrystal,"Length")<<G4endl;
00103 
00104   
00105 }

void BesEmcHit::SetEdepCasing G4double  de  )  [inline]
 

00045 {EdepCasing=de;};

void BesEmcHit::SetEdepCasing G4double  de  )  [inline]
 

00045 {EdepCasing=de;};

void BesEmcHit::SetEdepCrystal G4double  de  )  [inline]
 

00044 {EdepCrystal=de;};

void BesEmcHit::SetEdepCrystal G4double  de  )  [inline]
 

00044 {EdepCrystal=de;};

void BesEmcHit::SetG4Index G4int  index  )  [inline]
 

00051 { g4Index = index;}

void BesEmcHit::SetG4Index G4int  index  )  [inline]
 

00051 { g4Index = index;}

void BesEmcHit::SetMomentum G4ThreeVector  momen  )  [inline]
 

00052 {momentum = momen;}

void BesEmcHit::SetMomentum G4ThreeVector  momen  )  [inline]
 

00052 {momentum = momen;}

void BesEmcHit::SetNumCrystal G4int  id,
G4int  numTheta,
G4int  numPhi
[inline]
 

00049 {PartId=id;NumTheta=numTheta;NumPhi=numPhi;};

void BesEmcHit::SetNumCrystal G4int  id,
G4int  numTheta,
G4int  numPhi
[inline]
 

00049 {PartId=id;NumTheta=numTheta;NumPhi=numPhi;};

void BesEmcHit::SetPosCrystal G4ThreeVector  position  )  [inline]
 

00047 {PositionCrystal=position;};

void BesEmcHit::SetPosCrystal G4ThreeVector  position  )  [inline]
 

00047 {PositionCrystal=position;};

void BesEmcHit::SetTimeCrystal G4double  t  )  [inline]
 

00048 {TimeCrystal=t;};

void BesEmcHit::SetTimeCrystal G4double  t  )  [inline]
 

00048 {TimeCrystal=t;};

void BesEmcHit::SetTrackIndex G4int  index  )  [inline]
 

00050 { trackIndex = index;}

void BesEmcHit::SetTrackIndex G4int  index  )  [inline]
 

00050 { trackIndex = index;}

void BesEmcHit::SetTrakCrystal G4double  dl  )  [inline]
 

00046 {TrackLengthCrystal=dl;};

void BesEmcHit::SetTrakCrystal G4double  dl  )  [inline]
 

00046 {TrackLengthCrystal=dl;};


Member Data Documentation

G4double BesEmcHit::EdepCasing [private]
 

G4double BesEmcHit::EdepCrystal [private]
 

G4int BesEmcHit::g4Index [private]
 

G4ThreeVector BesEmcHit::momentum [private]
 

G4int BesEmcHit::NumPhi [private]
 

G4int BesEmcHit::NumTheta [private]
 

G4int BesEmcHit::PartId [private]
 

G4ThreeVector BesEmcHit::PositionCrystal [private]
 

G4double BesEmcHit::TimeCrystal [private]
 

G4double BesEmcHit::TotalEdepCrystal [private]
 

G4double BesEmcHit::TotalTrackLengthCrystal [private]
 

G4int BesEmcHit::trackIndex [private]
 

G4double BesEmcHit::TrackLengthCrystal [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 15:52:18 2011 for BOSS6.5.5 by  doxygen 1.3.9.1