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

sim::FLSHit Class Reference

A single unit of energy deposition in the liquid scintillator. More...

#include <FLSHit.h>

List of all members.

Public Member Functions

 FLSHit ()
 ~FLSHit ()
bool operator== (const FLSHit &rhs) const
bool operator< (const FLSHit &rhs) const
void Clear ()
void SetPlane (int ip)
 Set methods.
void SetCell (int ic)
void AddEdep (float edep)
void SetPos1 (float x, float y, float z)
void SetPos2 (float x, float y, float z)
void SetT (float t)
void SetPDG (int pdg)
void SetTrackId (unsigned short trackid)
float GetEdep ()
 Get methods.
 ClassDef (FLSHit, 1)

Public Attributes

geo::CellUniqueId fId
float fEntryX
 Start of step (cm, cell frame).
float fEntryY
float fEntryZ
float fExitX
 End of step (cm, cell frame).
float fExitY
float fExitZ
float fT
 Time.
float fEdep
 Amount of energy deposited (GeV).
int fPlaneId
 Plane number.
int fCellId
 Cell number.
int fPDG
 PDG code of parent particle.
unsigned short fTrackId
 Index number of track producing hit.


Detailed Description

A single unit of energy deposition in the liquid scintillator.

Definition at line 15 of file FLSHit.h.


Constructor & Destructor Documentation

FLSHit::FLSHit  ) 
 

Definition at line 5 of file FLSHit.cxx.

00005                :
00006   fId(),
00007   fEntryX(0),
00008   fEntryY(0),
00009   fEntryZ(0),
00010   fExitX(0),
00011   fExitY(0),
00012   fExitZ(0),
00013   fT(0),
00014   fEdep(0),
00015   fPlaneId(0),
00016   fCellId(0),
00017   fPDG(0),
00018   fTrackId(0)
00019 { }

FLSHit::~FLSHit  ) 
 

Definition at line 23 of file FLSHit.cxx.

00023 { }


Member Function Documentation

void sim::FLSHit::AddEdep float  edep  )  [inline]
 

Definition at line 28 of file FLSHit.h.

Referenced by novamc::MCApplication::Stepping().

00028 { fEdep += edep; }

sim::FLSHit::ClassDef FLSHit  ,
 

void FLSHit::Clear  ) 
 

Definition at line 45 of file FLSHit.cxx.

References fCellId, fEdep, fEntryX, fEntryY, fEntryZ, fExitX, fExitY, fExitZ, fPDG, fPlaneId, fT, and fTrackId.

Referenced by novamc::MCApplication::Stepping().

00045                    {
00046   fPlaneId        = 0;
00047   fCellId         = 0;
00048   fTrackId        = 0;
00049   fEdep           = 0;
00050   fPDG            = 0;
00051   fEntryX         = 0.;
00052   fEntryY         = 0.;
00053   fEntryZ         = 0.;
00054   fExitX          = 0.;
00055   fExitY          = 0.;
00056   fExitZ          = 0.;
00057   fT          = 0.;
00058 }

float sim::FLSHit::GetEdep  )  [inline]
 

Get methods.

Definition at line 38 of file FLSHit.h.

Referenced by novamc::MCApplication::Stepping().

00038 { return fEdep; };

bool FLSHit::operator< const FLSHit rhs  )  const
 

Definition at line 35 of file FLSHit.cxx.

References fId, and fT.

00036 {
00037   if (fId<rhs.fId) return true;
00038   if (fId == rhs.fId)
00039     if (fT < rhs.fT) return true;
00040   return false;
00041 }

bool FLSHit::operator== const FLSHit rhs  )  const
 

Definition at line 27 of file FLSHit.cxx.

References fId, and fT.

00028 {
00029   if (fId == rhs.fId && fT == rhs.fT) return true;
00030   return false;
00031 }

void sim::FLSHit::SetCell int  ic  )  [inline]
 

Definition at line 27 of file FLSHit.h.

Referenced by novamc::MCApplication::Stepping().

00027 { fCellId = ic; }

void sim::FLSHit::SetPDG int  pdg  )  [inline]
 

Definition at line 34 of file FLSHit.h.

Referenced by novamc::MCApplication::Stepping().

00034 { fPDG = pdg; }

void sim::FLSHit::SetPlane int  ip  )  [inline]
 

Set methods.

Definition at line 26 of file FLSHit.h.

Referenced by novamc::MCApplication::Stepping().

00026 { fPlaneId = ip; }

void sim::FLSHit::SetPos1 float  x,
float  y,
float  z
[inline]
 

Definition at line 29 of file FLSHit.h.

Referenced by novamc::MCApplication::Stepping().

00029                                                 {
00030       fEntryX = x; fEntryY = y; fEntryZ = z; }

void sim::FLSHit::SetPos2 float  x,
float  y,
float  z
[inline]
 

Definition at line 31 of file FLSHit.h.

Referenced by novamc::MCApplication::Stepping().

00031                                                 {
00032       fExitX = x; fExitY = y; fExitZ = z; }

void sim::FLSHit::SetT float  t  )  [inline]
 

Definition at line 33 of file FLSHit.h.

Referenced by novamc::MCApplication::Stepping().

00033 { fT = t; }

void sim::FLSHit::SetTrackId unsigned short  trackid  )  [inline]
 

Definition at line 35 of file FLSHit.h.

Referenced by novamc::MCApplication::Stepping().

00035 { fTrackId = trackid; }


Member Data Documentation

int sim::FLSHit::fCellId
 

Cell number.

Definition at line 51 of file FLSHit.h.

Referenced by Clear(), evd::Display3D::DrawMCHits(), evd::SimulationDrawer::FLSHit2D(), and vali::Validator::PlotFLSH().

float sim::FLSHit::fEdep
 

Amount of energy deposited (GeV).

Definition at line 49 of file FLSHit.h.

Referenced by Clear(), evd::Display3D::DrawMCHits(), and vali::Validator::PlotFLSH().

float sim::FLSHit::fEntryX
 

Start of step (cm, cell frame).

Definition at line 42 of file FLSHit.h.

Referenced by Clear(), evd::Display3D::DrawMCHits(), evd::SimulationDrawer::FLSHit2D(), and vali::Validator::PlotFLSH().

float sim::FLSHit::fEntryY
 

Definition at line 43 of file FLSHit.h.

Referenced by Clear(), evd::Display3D::DrawMCHits(), evd::SimulationDrawer::FLSHit2D(), and vali::Validator::PlotFLSH().

float sim::FLSHit::fEntryZ
 

Definition at line 44 of file FLSHit.h.

Referenced by Clear(), evd::Display3D::DrawMCHits(), evd::SimulationDrawer::FLSHit2D(), and vali::Validator::PlotFLSH().

float sim::FLSHit::fExitX
 

End of step (cm, cell frame).

Definition at line 45 of file FLSHit.h.

Referenced by Clear(), evd::Display3D::DrawMCHits(), evd::SimulationDrawer::FLSHit2D(), and vali::Validator::PlotFLSH().

float sim::FLSHit::fExitY
 

Definition at line 46 of file FLSHit.h.

Referenced by Clear(), evd::Display3D::DrawMCHits(), evd::SimulationDrawer::FLSHit2D(), and vali::Validator::PlotFLSH().

float sim::FLSHit::fExitZ
 

Definition at line 47 of file FLSHit.h.

Referenced by Clear(), evd::Display3D::DrawMCHits(), evd::SimulationDrawer::FLSHit2D(), and vali::Validator::PlotFLSH().

geo::CellUniqueId sim::FLSHit::fId
 

Definition at line 41 of file FLSHit.h.

Referenced by main(), operator<(), operator==(), and novamc::MCApplication::Stepping().

int sim::FLSHit::fPDG
 

PDG code of parent particle.

Definition at line 52 of file FLSHit.h.

Referenced by Clear(), evd::Display3D::DrawMCHits(), evd::SimulationDrawer::FLSHit2D(), and vali::Validator::PlotFLSH().

int sim::FLSHit::fPlaneId
 

Plane number.

Definition at line 50 of file FLSHit.h.

Referenced by Clear(), evd::Display3D::DrawMCHits(), evd::SimulationDrawer::FLSHit2D(), and vali::Validator::PlotFLSH().

float sim::FLSHit::fT
 

Time.

Definition at line 48 of file FLSHit.h.

Referenced by Clear(), evd::Display3D::DrawMCHits(), operator<(), operator==(), and vali::Validator::PlotFLSH().

unsigned short sim::FLSHit::fTrackId
 

Index number of track producing hit.

Definition at line 53 of file FLSHit.h.

Referenced by Clear(), and vali::Validator::PlotFLSH().


The documentation for this class was generated from the following files:
Generated on Sun Nov 22 04:45:32 2009 for NOvA Offline by  doxygen 1.3.9.1