/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Static Public Member Functions | Private Attributes
DayaBay::SimPmtHit Class Reference

PMT specific hit information. More...

#include <SimPmtHit.h>

Inheritance diagram for DayaBay::SimPmtHit:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::SimPmtHit:
Collaboration graph
[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 Thu Dec 5 18:05:53 2013

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.

                : m_dir(),
                  m_pol(),
                  m_wavelength(0.0),
                  m_type(0) {}
virtual DayaBay::SimPmtHit::~SimPmtHit ( ) [inline, virtual]

Default Destructor.

Definition at line 55 of file SimPmtHit.h.

{}

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.

{
  SimHit::fillStream(s);
  s << "{ " << "dir :   " << m_dir << std::endl
            << "pol :   " << m_pol << std::endl
            << "wavelength :    " << (float)m_wavelength << std::endl
            << "type :  " << m_type << std::endl << " }";
  return s;
}
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.

{
  return m_dir;
}
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.

{
  m_dir = value;
}
const CLHEP::Hep3Vector & DayaBay::SimPmtHit::pol ( ) const [inline]

Retrieve const The polarization of the photon.

Definition at line 172 of file SimPmtHit.h.

{
  return m_pol;
}
void DayaBay::SimPmtHit::setPol ( const CLHEP::Hep3Vector &  value) [inline]

Update The polarization of the photon.

Definition at line 177 of file SimPmtHit.h.

{
  m_pol = value;
}
double DayaBay::SimPmtHit::wavelength ( ) const [inline]

Retrieve const The wavelength of the photon.

Definition at line 182 of file SimPmtHit.h.

{
  return m_wavelength;
}
void DayaBay::SimPmtHit::setWavelength ( double  value) [inline]

Update The wavelength of the photon.

Definition at line 187 of file SimPmtHit.h.

{
  m_wavelength = value;
}
int DayaBay::SimPmtHit::type ( ) const [inline]

Retrieve const The type of hit.

Definition at line 192 of file SimPmtHit.h.

{
  return m_type;
}
void DayaBay::SimPmtHit::setType ( int  value) [inline]

Update The type of hit.

Definition at line 197 of file SimPmtHit.h.

{
  m_type = value;
}
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.

    {
      return ( sizeof(SimPmtHit) == size ? 
               boost::singleton_pool<SimPmtHit, sizeof(SimPmtHit)>::malloc() :
               ::operator new(size) );
    }
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.

    {
      return ::operator new (size,pObj);
    }
static void DayaBay::SimPmtHit::operator delete ( void *  p) [inline, static]

operator delete

Reimplemented from DayaBay::SimHit.

Definition at line 111 of file SimPmtHit.h.

    {
      boost::singleton_pool<SimPmtHit, sizeof(SimPmtHit)>::is_from(p) ?
      boost::singleton_pool<SimPmtHit, sizeof(SimPmtHit)>::free(p) :
      ::operator delete(p);
    }
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.

    {
      ::operator delete (p, pObj);
    }
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.

{
  return m_hc;
}
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.

{
  m_hc = value;
}
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.

{
  return m_hitTime;
}
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.

{
  m_hitTime = value;
}
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.

{
  return m_localPos;
}
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.

{
  m_localPos = value;
}
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.

{
  return m_sensDetId;
}
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.

{
  m_sensDetId = value;
}
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.

{
  return m_weight;
}
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.

{
  m_weight = value;
}
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.

{
  return m_ancestor;
}
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.

{
  m_ancestor = value;
}

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.

The wavelength of the photon.

Definition at line 131 of file SimPmtHit.h.

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 Fri May 16 2014 10:05:28 for SimEvent by doxygen 1.7.4