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

In This Package:

DayaBay::SimPmtHit Class Reference

PMT specific hit information. More...

#include <SimPmtHit.h>

Inheritance diagram for DayaBay::SimPmtHit:

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

Public Member Functions

 SimPmtHit ()
 Default Constructor.
virtual ~SimPmtHit ()
 Default Destructor.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
const CLHEP::Hep3Vector & dir () const
 Retrieve const The direction of the photon in local PMT coordinates.
void setDir (const CLHEP::Hep3Vector &value)
 Update The direction of the photon in local PMT coordinates.
const CLHEP::Hep3Vector & pol () const
 Retrieve const The polarization of the photon.
void setPol (const CLHEP::Hep3Vector &value)
 Update The polarization of the photon.
double wavelength () const
 Retrieve const The wavelength of the photon.
void setWavelength (double value)
 Update The wavelength of the photon.
int type () const
 Retrieve const The type of hit.
void setType (int value)
 Update The type of hit.
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

CLHEP::Hep3Vector m_dir
 The direction of the photon in local PMT coordinates.
CLHEP::Hep3Vector m_pol
 The polarization of the photon.
double m_wavelength
 The wavelength of the photon.
int m_type
 The type of hit.

Detailed Description

PMT specific hit information.

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

Definition at line 44 of file SimPmtHit.h.


Constructor & Destructor Documentation

DayaBay::SimPmtHit::SimPmtHit (  )  [inline]

Default Constructor.

Definition at line 49 of file SimPmtHit.h.

00049                 : m_dir(),
00050                   m_pol(),
00051                   m_wavelength(0.0),
00052                   m_type(0) {}

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

Default Destructor.

Definition at line 55 of file SimPmtHit.h.

00055 {}


Member Function Documentation

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

Fill the ASCII output stream.

Reimplemented from DayaBay::SimHit.

Definition at line 151 of file SimPmtHit.h.

00152 {
00153   SimHit::fillStream(s);
00154   s << "{ " << "dir :   " << m_dir << std::endl
00155             << "pol :   " << m_pol << std::endl
00156             << "wavelength :    " << (float)m_wavelength << std::endl
00157             << "type :  " << m_type << std::endl << " }";
00158   return s;
00159 }

const CLHEP::Hep3Vector & DayaBay::SimPmtHit::dir (  )  const [inline]

Retrieve const The direction of the photon in local PMT coordinates.

Definition at line 162 of file SimPmtHit.h.

00163 {
00164   return m_dir;
00165 }

void DayaBay::SimPmtHit::setDir ( const CLHEP::Hep3Vector &  value  )  [inline]

Update The direction of the photon in local PMT coordinates.

Definition at line 167 of file SimPmtHit.h.

00168 {
00169   m_dir = value;
00170 }

const CLHEP::Hep3Vector & DayaBay::SimPmtHit::pol (  )  const [inline]

Retrieve const The polarization of the photon.

Definition at line 172 of file SimPmtHit.h.

00173 {
00174   return m_pol;
00175 }

void DayaBay::SimPmtHit::setPol ( const CLHEP::Hep3Vector &  value  )  [inline]

Update The polarization of the photon.

Definition at line 177 of file SimPmtHit.h.

00178 {
00179   m_pol = value;
00180 }

double DayaBay::SimPmtHit::wavelength (  )  const [inline]

Retrieve const The wavelength of the photon.

Definition at line 182 of file SimPmtHit.h.

00183 {
00184   return m_wavelength;
00185 }

void DayaBay::SimPmtHit::setWavelength ( double  value  )  [inline]

Update The wavelength of the photon.

Definition at line 187 of file SimPmtHit.h.

00188 {
00189   m_wavelength = value;
00190 }

int DayaBay::SimPmtHit::type (  )  const [inline]

Retrieve const The type of hit.

Definition at line 192 of file SimPmtHit.h.

00193 {
00194   return m_type;
00195 }

void DayaBay::SimPmtHit::setType ( int  value  )  [inline]

Update The type of hit.

Definition at line 197 of file SimPmtHit.h.

00198 {
00199   m_type = value;
00200 }

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

operator new

Reimplemented from DayaBay::SimHit.

Definition at line 95 of file SimPmtHit.h.

00096     {
00097       return ( sizeof(SimPmtHit) == size ? 
00098                boost::singleton_pool<SimPmtHit, sizeof(SimPmtHit)>::malloc() :
00099                ::operator new(size) );
00100     }

static void* DayaBay::SimPmtHit::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 105 of file SimPmtHit.h.

00106     {
00107       return ::operator new (size,pObj);
00108     }

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

operator delete

Reimplemented from DayaBay::SimHit.

Definition at line 111 of file SimPmtHit.h.

00112     {
00113       boost::singleton_pool<SimPmtHit, sizeof(SimPmtHit)>::is_from(p) ?
00114       boost::singleton_pool<SimPmtHit, sizeof(SimPmtHit)>::free(p) :
00115       ::operator delete(p);
00116     }

static void DayaBay::SimPmtHit::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 120 of file SimPmtHit.h.

00121     {
00122       ::operator delete (p, pObj);
00123     }

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

CLHEP::Hep3Vector DayaBay::SimPmtHit::m_dir [private]

The direction of the photon in local PMT coordinates.

Definition at line 129 of file SimPmtHit.h.

CLHEP::Hep3Vector DayaBay::SimPmtHit::m_pol [private]

The polarization of the photon.

Definition at line 130 of file SimPmtHit.h.

double DayaBay::SimPmtHit::m_wavelength [private]

The wavelength of the photon.

Definition at line 131 of file SimPmtHit.h.

int DayaBay::SimPmtHit::m_type [private]

The type of hit.

Definition at line 132 of file SimPmtHit.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