| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DayaBay::SimRpcHit Class Reference

RPC specific hit information. More...

#include <SimRpcHit.h>

Inheritance diagram for DayaBay::SimRpcHit:

[legend]
Collaboration diagram for DayaBay::SimRpcHit:
[legend]
List of all members.

Public Member Functions

 SimRpcHit ()
 Default Constructor.
virtual ~SimRpcHit ()
 Default Destructor.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
double energyDep () const
 Retrieve const The energy deposited by the particle.
void setEnergyDep (double value)
 Update The energy deposited by the particle.
const DayaBay::SimHitCollectionhc () const
 Retrieve const The hit collection to which this hit belongs.
void setHc (DayaBay::SimHitCollection *value)
 Update The hit collection to which this hit belongs.
double hitTime () const
 Retrieve const The time, relative to the primary vertex time, at which this hit occurred.
void setHitTime (double value)
 Update The time, relative to the primary vertex time, at which this hit occurred.
const CLHEP::Hep3Vector & localPos () const
 Retrieve const Position of hit in coordinates local to the sensitive detector.
void setLocalPos (const CLHEP::Hep3Vector &value)
 Update Position of hit in coordinates local to the sensitive detector.
int sensDetId () const
 Retrieve const Number used to identify the hit sensitive-detector in the whole detector.
void setSensDetId (int value)
 Update Number used to identify the hit sensitive-detector in the whole detector.
float weight () const
 Retrieve const Arbitrary weight by which this hit should be weighted.
void setWeight (float value)
 Update Arbitrary weight by which this hit should be weighted.
const DayaBay::SimTrackReferenceancestor () const
 Retrieve const The recorded particle most directly responsible for this hit.
void setAncestor (const DayaBay::SimTrackReference &value)
 Update The recorded particle most directly responsible for this hit.

Static Public Member Functions

static void * operator new (size_t size)
 operator new
static void * operator new (size_t size, void *pObj)
 placement operator new it is needed by libstdc++ 3.2.3 (e.g.
static void operator delete (void *p)
 operator delete
static void operator delete (void *p, void *pObj)
 placement operator delete not sure if really needed, but it does not harm

Private Attributes

double m_energyDep
 The energy deposited by the particle.

Detailed Description

RPC specific hit information.

Author:
bv@bnl.gov created Mon Apr 11 03:59:58 2011

Definition at line 43 of file SimRpcHit.h.


Constructor & Destructor Documentation

DayaBay::SimRpcHit::SimRpcHit (  )  [inline]

Default Constructor.

Definition at line 48 of file SimRpcHit.h.

00048 : m_energyDep(0.0) {}

virtual DayaBay::SimRpcHit::~SimRpcHit (  )  [inline, virtual]

Default Destructor.

Definition at line 51 of file SimRpcHit.h.

00051 {}


Member Function Documentation

std::ostream & DayaBay::SimRpcHit::fillStream ( std::ostream &  s  )  const [inline, virtual]

Fill the ASCII output stream.

Reimplemented from DayaBay::SimHit.

Definition at line 120 of file SimRpcHit.h.

00121 {
00122   SimHit::fillStream(s);
00123   s << "{ " << "energyDep :     " << (float)m_energyDep << std::endl << " }";
00124   return s;
00125 }

double DayaBay::SimRpcHit::energyDep (  )  const [inline]

Retrieve const The energy deposited by the particle.

Definition at line 128 of file SimRpcHit.h.

00129 {
00130   return m_energyDep;
00131 }

void DayaBay::SimRpcHit::setEnergyDep ( double  value  )  [inline]

Update The energy deposited by the particle.

Definition at line 133 of file SimRpcHit.h.

00134 {
00135   m_energyDep = value;
00136 }

static void* DayaBay::SimRpcHit::operator new ( size_t  size  )  [inline, static]

operator new

Reimplemented from DayaBay::SimHit.

Definition at line 67 of file SimRpcHit.h.

00068     {
00069       return ( sizeof(SimRpcHit) == size ? 
00070                boost::singleton_pool<SimRpcHit, sizeof(SimRpcHit)>::malloc() :
00071                ::operator new(size) );
00072     }

static void* DayaBay::SimRpcHit::operator new ( size_t  size,
void *  pObj 
) [inline, static]

placement operator new it is needed by libstdc++ 3.2.3 (e.g.

in std::vector) it is not needed in libstdc++ >= 3.4

Reimplemented from DayaBay::SimHit.

Definition at line 77 of file SimRpcHit.h.

00078     {
00079       return ::operator new (size,pObj);
00080     }

static void DayaBay::SimRpcHit::operator delete ( void *  p  )  [inline, static]

operator delete

Reimplemented from DayaBay::SimHit.

Definition at line 83 of file SimRpcHit.h.

00084     {
00085       boost::singleton_pool<SimRpcHit, sizeof(SimRpcHit)>::is_from(p) ?
00086       boost::singleton_pool<SimRpcHit, sizeof(SimRpcHit)>::free(p) :
00087       ::operator delete(p);
00088     }

static void DayaBay::SimRpcHit::operator delete ( void *  p,
void *  pObj 
) [inline, static]

placement operator delete not sure if really needed, but it does not harm

Reimplemented from DayaBay::SimHit.

Definition at line 92 of file SimRpcHit.h.

00093     {
00094       ::operator delete (p, pObj);
00095     }

const DayaBay::SimHitCollection * DayaBay::SimHit::hc (  )  const [inline, inherited]

Retrieve const The hit collection to which this hit belongs.

Definition at line 181 of file SimHit.h.

00182 {
00183   return m_hc;
00184 }

void DayaBay::SimHit::setHc ( DayaBay::SimHitCollection value  )  [inline, inherited]

Update The hit collection to which this hit belongs.

Definition at line 186 of file SimHit.h.

00187 {
00188   m_hc = value;
00189 }

double DayaBay::SimHit::hitTime (  )  const [inline, inherited]

Retrieve const The time, relative to the primary vertex time, at which this hit occurred.

Definition at line 191 of file SimHit.h.

00192 {
00193   return m_hitTime;
00194 }

void DayaBay::SimHit::setHitTime ( double  value  )  [inline, inherited]

Update The time, relative to the primary vertex time, at which this hit occurred.

Definition at line 196 of file SimHit.h.

00197 {
00198   m_hitTime = value;
00199 }

const CLHEP::Hep3Vector & DayaBay::SimHit::localPos (  )  const [inline, inherited]

Retrieve const Position of hit in coordinates local to the sensitive detector.

Definition at line 201 of file SimHit.h.

00202 {
00203   return m_localPos;
00204 }

void DayaBay::SimHit::setLocalPos ( const CLHEP::Hep3Vector &  value  )  [inline, inherited]

Update Position of hit in coordinates local to the sensitive detector.

Definition at line 206 of file SimHit.h.

00207 {
00208   m_localPos = value;
00209 }

int DayaBay::SimHit::sensDetId (  )  const [inline, inherited]

Retrieve const Number used to identify the hit sensitive-detector in the whole detector.

Definition at line 211 of file SimHit.h.

00212 {
00213   return m_sensDetId;
00214 }

void DayaBay::SimHit::setSensDetId ( int  value  )  [inline, inherited]

Update Number used to identify the hit sensitive-detector in the whole detector.

Definition at line 216 of file SimHit.h.

00217 {
00218   m_sensDetId = value;
00219 }

float DayaBay::SimHit::weight (  )  const [inline, inherited]

Retrieve const Arbitrary weight by which this hit should be weighted.

Definition at line 221 of file SimHit.h.

00222 {
00223   return m_weight;
00224 }

void DayaBay::SimHit::setWeight ( float  value  )  [inline, inherited]

Update Arbitrary weight by which this hit should be weighted.

Definition at line 226 of file SimHit.h.

00227 {
00228   m_weight = value;
00229 }

const DayaBay::SimTrackReference & DayaBay::SimHit::ancestor (  )  const [inline, inherited]

Retrieve const The recorded particle most directly responsible for this hit.

Definition at line 231 of file SimHit.h.

00232 {
00233   return m_ancestor;
00234 }

void DayaBay::SimHit::setAncestor ( const DayaBay::SimTrackReference value  )  [inline, inherited]

Update The recorded particle most directly responsible for this hit.

Definition at line 236 of file SimHit.h.

00237 {
00238   m_ancestor = value;
00239 }


Member Data Documentation

double DayaBay::SimRpcHit::m_energyDep [private]

The energy deposited by the particle.

Definition at line 101 of file SimRpcHit.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:31:30 2011 for SimEvent by doxygen 1.4.7