Main Page | Compound List | File List | Compound Members | File Members | Related Pages

McTkrStrip Class Reference

Represent energy deposited (or charge) per Si Strip. More...

#include <McTkrStrip.h>

List of all members.

Public Member Functions

 McTkrStrip ()
 Constructors Null constructor.

 McTkrStrip (const VolumeIdentifier &id, UInt_t strip, Double_t e=0, Bool_t noise=0, Double_t deltaX=0, Double_t deltaY=0, TRefArray *hitList=0)
 constructor with plane id.

virtual ~McTkrStrip ()
 Destructor.

void initialize (const VolumeIdentifier &id, UInt_t strip, Double_t e, Bool_t noise, Double_t deltaX, Double_t deltaY, TRefArray *hitList)
 Initialize.

void Clear (Option_t *option="")
void Print (Option_t *option="") const
VolumeIdentifier getId () const
 access to the id

UInt_t getStripNumber () const
 access to the strip number

Double_t getEnergy () const
 access to the energy, new form

Double_t energy () const
 access to energy

Bool_t noise () const
Bool_t getNoise () const
const TRefArray & getHits () const
void addHit (McPositionHit *hit)
 add a hit to the list if it's not already there

void operator+= (double de)
 add to the energy

TVector3 getDelta () const
 access to alignment translation

Double_t getDeltaX () const
Double_t getDeltaY () const

Private Attributes

VolumeIdentifier m_planeId
 the plane that this belongs to

UInt_t m_strip
 strip number

Double_t m_energy
 total energy deposited

Bool_t m_noise
 noise bit

TRefArray m_hits
 list of pointers to hits constributing to this strip

Double_t m_deltaX
 Alignment offset of this strip.

Double_t m_deltaY


Detailed Description

Represent energy deposited (or charge) per Si Strip.

Author:
T. Burnett
Intermediate class for TkrDigi process.

Method Return Type Description

getVolumeId const VolumeIdentifier Returns the volume identifier
getTotalEnergy Double_t Returns the total energy deposited in a volume
getMoment1 const TVector3 Returns the first moment
getMoment2 const TVector3 Returns the second moment
getMcParticleEnergy( Particle p ) Double_t Returns energy associated with PRIMARY, ELECTRON or POSITRON

Definition at line 40 of file McTkrStrip.h.


Constructor & Destructor Documentation

McTkrStrip::McTkrStrip  ) 
 

Constructors Null constructor.

Definition at line 26 of file McTkrStrip.cxx.

References m_hits.

00027         : m_strip(0)
00028         , m_energy(0)
00029         , m_noise(false)
00030         , m_deltaX(0.)
00031         , m_deltaY(0.) 
00032 {
00033     m_hits.Clear();
00034 };

McTkrStrip::McTkrStrip const VolumeIdentifier &  id,
UInt_t  strip,
Double_t  e = 0,
Bool_t  noise = 0,
Double_t  deltaX = 0,
Double_t  deltaY = 0,
TRefArray *  hitList = 0
 

constructor with plane id.

McTkrStrip::~McTkrStrip  )  [virtual]
 

Destructor.

Definition at line 36 of file McTkrStrip.cxx.

References Clear().

00037 {
00038     Clear();
00039 }


Member Function Documentation

void McTkrStrip::addHit McPositionHit hit  )  [inline]
 

add a hit to the list if it's not already there

Definition at line 75 of file McTkrStrip.h.

References m_hits.

00075                                     {   
00076         TObject* inList = m_hits.FindObject(hit);
00077         if (inList == 0) {
00078             m_hits.Add(hit);
00079         }
00080     }

void McTkrStrip::Clear Option_t *  option = ""  ) 
 

Definition at line 59 of file McTkrStrip.cxx.

References m_hits.

Referenced by ~McTkrStrip().

00060 {
00061     m_hits.Clear();
00062 }

Double_t McTkrStrip::energy  )  const [inline]
 

access to energy

Definition at line 68 of file McTkrStrip.h.

References m_energy.

00068 {return m_energy; }

TVector3 McTkrStrip::getDelta  )  const [inline]
 

access to alignment translation

Definition at line 86 of file McTkrStrip.h.

References m_deltaX, and m_deltaY.

00086 {return TVector3(m_deltaX, m_deltaY, 0.0); }

Double_t McTkrStrip::getDeltaX  )  const [inline]
 

Definition at line 88 of file McTkrStrip.h.

References m_deltaX.

00088 {return m_deltaX; }

Double_t McTkrStrip::getDeltaY  )  const [inline]
 

Definition at line 89 of file McTkrStrip.h.

References m_deltaY.

00089 {return m_deltaY; }

Double_t McTkrStrip::getEnergy  )  const [inline]
 

access to the energy, new form

Definition at line 66 of file McTkrStrip.h.

References m_energy.

00066 {return m_energy; }

const TRefArray& McTkrStrip::getHits  )  const [inline]
 

Definition at line 72 of file McTkrStrip.h.

References m_hits.

00072 {return m_hits;}

VolumeIdentifier McTkrStrip::getId  )  const [inline]
 

access to the id

Definition at line 62 of file McTkrStrip.h.

References m_planeId.

00062 {return m_planeId; }

Bool_t McTkrStrip::getNoise  )  const [inline]
 

Definition at line 70 of file McTkrStrip.h.

References m_noise.

Referenced by noise().

00070 {return m_noise;}

UInt_t McTkrStrip::getStripNumber  )  const [inline]
 

access to the strip number

Definition at line 64 of file McTkrStrip.h.

References m_strip.

00064 {return m_strip; }

void McTkrStrip::initialize const VolumeIdentifier &  id,
UInt_t  strip,
Double_t  e,
Bool_t  noise,
Double_t  deltaX,
Double_t  deltaY,
TRefArray *  hitList
 

Initialize.

Definition at line 41 of file McTkrStrip.cxx.

References m_deltaX, m_deltaY, m_energy, m_hits, m_noise, m_planeId, and m_strip.

00043 {
00044     m_planeId = id;
00045     m_strip   = strip;
00046     m_energy  = e;
00047     m_noise   = noise;
00048     m_deltaX  = deltaX;
00049     m_deltaY  = deltaY;
00050 
00051     m_hits.Clear();
00052     if (hitList) 
00053     {
00054         for(int idx=0; idx < hitList->GetEntries(); idx++)
00055             m_hits.Add(hitList->At(idx));
00056     }
00057 };

Bool_t McTkrStrip::noise  )  const [inline]
 

Definition at line 69 of file McTkrStrip.h.

References getNoise().

00069 {return getNoise();}

void McTkrStrip::operator+= double  de  )  [inline]
 

add to the energy

Definition at line 83 of file McTkrStrip.h.

References m_energy.

00083 {m_energy += de;}

void McTkrStrip::Print Option_t *  option = ""  )  const
 

Definition at line 64 of file McTkrStrip.cxx.

References m_energy, m_planeId, and m_strip.

00064                                              {
00065     using namespace std;
00066     TObject::Print(option);
00067     m_planeId.Print(option);
00068     std::cout.precision(2);
00069     std::cout << "Strip #" << m_strip << ", deposited energy=" << m_energy << std::endl;
00070 }


Member Data Documentation

Double_t McTkrStrip::m_deltaX [private]
 

Alignment offset of this strip.

Definition at line 108 of file McTkrStrip.h.

Referenced by getDelta(), getDeltaX(), and initialize().

Double_t McTkrStrip::m_deltaY [private]
 

Definition at line 109 of file McTkrStrip.h.

Referenced by getDelta(), getDeltaY(), and initialize().

Double_t McTkrStrip::m_energy [private]
 

total energy deposited

Definition at line 99 of file McTkrStrip.h.

Referenced by energy(), getEnergy(), initialize(), operator+=(), and Print().

TRefArray McTkrStrip::m_hits [private]
 

list of pointers to hits constributing to this strip

Definition at line 105 of file McTkrStrip.h.

Referenced by addHit(), Clear(), getHits(), initialize(), and McTkrStrip().

Bool_t McTkrStrip::m_noise [private]
 

noise bit

Definition at line 102 of file McTkrStrip.h.

Referenced by getNoise(), and initialize().

VolumeIdentifier McTkrStrip::m_planeId [private]
 

the plane that this belongs to

Definition at line 93 of file McTkrStrip.h.

Referenced by getId(), initialize(), and Print().

UInt_t McTkrStrip::m_strip [private]
 

strip number

Definition at line 96 of file McTkrStrip.h.

Referenced by getStripNumber(), initialize(), and Print().


The documentation for this class was generated from the following files:
Generated on Tue Dec 11 16:28:56 2007 by doxygen 1.3.3