#include <McTkrStrip.h>
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 |
| 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.
|
|
Constructors Null constructor.
Definition at line 26 of file McTkrStrip.cxx. References m_hits.
|
|
||||||||||||||||||||||||||||||||
|
constructor with plane id.
|
|
|
Destructor.
Definition at line 36 of file McTkrStrip.cxx. References Clear().
00037 {
00038 Clear();
00039 }
|
|
|
add a hit to the list if it's not already there
Definition at line 75 of file McTkrStrip.h. References m_hits.
|
|
|
Definition at line 59 of file McTkrStrip.cxx. References m_hits. Referenced by ~McTkrStrip().
00060 {
00061 m_hits.Clear();
00062 }
|
|
|
access to energy
Definition at line 68 of file McTkrStrip.h. References m_energy.
00068 {return m_energy; }
|
|
|
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); }
|
|
|
Definition at line 88 of file McTkrStrip.h. References m_deltaX.
00088 {return m_deltaX; }
|
|
|
Definition at line 89 of file McTkrStrip.h. References m_deltaY.
00089 {return m_deltaY; }
|
|
|
access to the energy, new form
Definition at line 66 of file McTkrStrip.h. References m_energy.
00066 {return m_energy; }
|
|
|
Definition at line 72 of file McTkrStrip.h. References m_hits.
00072 {return m_hits;}
|
|
|
access to the id
Definition at line 62 of file McTkrStrip.h. References m_planeId.
00062 {return m_planeId; }
|
|
|
Definition at line 70 of file McTkrStrip.h. References m_noise. Referenced by noise().
00070 {return m_noise;}
|
|
|
access to the strip number
Definition at line 64 of file McTkrStrip.h. References m_strip.
00064 {return m_strip; }
|
|
||||||||||||||||||||||||||||||||
|
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 };
|
|
|
Definition at line 69 of file McTkrStrip.h. References getNoise().
00069 {return getNoise();}
|
|
|
add to the energy
Definition at line 83 of file McTkrStrip.h. References m_energy.
00083 {m_energy += de;}
|
|
|
Definition at line 64 of file McTkrStrip.cxx. References m_energy, m_planeId, and m_strip.
|
|
|
Alignment offset of this strip.
Definition at line 108 of file McTkrStrip.h. Referenced by getDelta(), getDeltaX(), and initialize(). |
|
|
Definition at line 109 of file McTkrStrip.h. Referenced by getDelta(), getDeltaY(), and initialize(). |
|
|
total energy deposited
Definition at line 99 of file McTkrStrip.h. Referenced by energy(), getEnergy(), initialize(), operator+=(), and Print(). |
|
|
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(). |
|
|
noise bit
Definition at line 102 of file McTkrStrip.h. Referenced by getNoise(), and initialize(). |
|
|
the plane that this belongs to
Definition at line 93 of file McTkrStrip.h. Referenced by getId(), initialize(), and Print(). |
|
|
strip number
Definition at line 96 of file McTkrStrip.h. Referenced by getStripNumber(), initialize(), and Print(). |
1.3.3