/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::SimHit Class Reference

Basic information about simulated hits. More...

#include <SimHit.h>

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

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.

             : m_hc(0),
               m_hitTime(0.0),
               m_localPos(),
               m_sensDetId(0),
               m_weight(0.0),
               m_ancestor() {}
virtual DayaBay::SimHit::~SimHit ( ) [inline, virtual]

Default Destructor.

Definition at line 55 of file SimHit.h.

{}

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.

{
  s << "{ " << "hc :    " << m_hc << std::endl
            << "hitTime :       " << (float)m_hitTime << std::endl
            << "localPos :      " << m_localPos << std::endl
            << "sensDetId :     " << m_sensDetId << std::endl
            << "weight :        " << m_weight << std::endl
            << "ancestor :      " << m_ancestor << std::endl << " }";
  return s;
}
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.

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

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

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

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

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

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

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

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

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

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

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

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

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

    {
      return ::operator new (size,pObj);
    }
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.

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

    {
      ::operator delete (p, pObj);
    }

Member Data Documentation

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.

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.

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