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

In This Package:

DayaBay::SimHit Class Reference

Basic information about simulated hits. More...

#include <SimHit.h>

Inheritance diagram for DayaBay::SimHit:

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

Public Member Functions

 SimHit ()
 Default Constructor.
virtual ~SimHit ()
 Default Destructor.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
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

DayaBay::SimHitCollectionm_hc
 The hit collection to which this hit belongs.
double m_hitTime
 The time, relative to the primary vertex time, at which this hit occurred.
CLHEP::Hep3Vector m_localPos
 Position of hit in coordinates local to the sensitive detector.
int m_sensDetId
 Number used to identify the hit sensitive-detector in the whole detector.
float m_weight
 Arbitrary weight by which this hit should be weighted.
DayaBay::SimTrackReference m_ancestor
 The recorded particle most directly responsible for this hit.

Detailed Description

Basic information about simulated hits.

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

Definition at line 42 of file SimHit.h.


Constructor & Destructor Documentation

DayaBay::SimHit::SimHit (  )  [inline]

Default Constructor.

Definition at line 47 of file SimHit.h.

00047              : m_hc(0),
00048                m_hitTime(0.0),
00049                m_localPos(),
00050                m_sensDetId(0),
00051                m_weight(0.0),
00052                m_ancestor() {}

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

Default Destructor.

Definition at line 55 of file SimHit.h.

00055 {}


Member Function Documentation

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

Fill the ASCII output stream.

Reimplemented in DayaBay::SimPmtHit, and DayaBay::SimRpcHit.

Definition at line 169 of file SimHit.h.

00170 {
00171   s << "{ " << "hc :    " << m_hc << std::endl
00172             << "hitTime :       " << (float)m_hitTime << std::endl
00173             << "localPos :      " << m_localPos << std::endl
00174             << "sensDetId :     " << m_sensDetId << std::endl
00175             << "weight :        " << m_weight << std::endl
00176             << "ancestor :      " << m_ancestor << std::endl << " }";
00177   return s;
00178 }

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

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

Update The recorded particle most directly responsible for this hit.

Definition at line 236 of file SimHit.h.

00237 {
00238   m_ancestor = value;
00239 }

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

operator new

Reimplemented in DayaBay::SimPmtHit, and DayaBay::SimRpcHit.

Definition at line 111 of file SimHit.h.

00112     {
00113       return ( sizeof(SimHit) == size ? 
00114                boost::singleton_pool<SimHit, sizeof(SimHit)>::malloc() :
00115                ::operator new(size) );
00116     }

static void* DayaBay::SimHit::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 in DayaBay::SimPmtHit, and DayaBay::SimRpcHit.

Definition at line 121 of file SimHit.h.

00122     {
00123       return ::operator new (size,pObj);
00124     }

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

operator delete

Reimplemented in DayaBay::SimPmtHit, and DayaBay::SimRpcHit.

Definition at line 127 of file SimHit.h.

00128     {
00129       boost::singleton_pool<SimHit, sizeof(SimHit)>::is_from(p) ?
00130       boost::singleton_pool<SimHit, sizeof(SimHit)>::free(p) :
00131       ::operator delete(p);
00132     }

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

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

Reimplemented in DayaBay::SimPmtHit, and DayaBay::SimRpcHit.

Definition at line 136 of file SimHit.h.

00137     {
00138       ::operator delete (p, pObj);
00139     }


Member Data Documentation

DayaBay::SimHitCollection* DayaBay::SimHit::m_hc [private]

The hit collection to which this hit belongs.

Definition at line 145 of file SimHit.h.

double DayaBay::SimHit::m_hitTime [private]

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

Definition at line 146 of file SimHit.h.

CLHEP::Hep3Vector DayaBay::SimHit::m_localPos [private]

Position of hit in coordinates local to the sensitive detector.

Definition at line 147 of file SimHit.h.

int DayaBay::SimHit::m_sensDetId [private]

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

Definition at line 148 of file SimHit.h.

float DayaBay::SimHit::m_weight [private]

Arbitrary weight by which this hit should be weighted.

Definition at line 149 of file SimHit.h.

DayaBay::SimTrackReference DayaBay::SimHit::m_ancestor [private]

The recorded particle most directly responsible for this hit.

Definition at line 150 of file SimHit.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