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

Basic information about PMT/RPC Pulses, based on SimHit.xml by bv@bnl.gov. More...

#include <ElecPulse.h>

Inheritance diagram for DayaBay::ElecPulse:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::ElecPulse:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ElecPulse ()
 Default Constructor.
virtual ~ElecPulse ()
 Default Destructor.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
const
DayaBay::ElecPulseCollection
pc () const
 Retrieve const The pulse collection to which this pulse belongs.
void setPc (DayaBay::ElecPulseCollection *value)
 Update The pulse collection to which this pulse belongs.
double time () const
 Retrieve const The time, relative to the collection time, at which this pulse occurred.
void setTime (double value)
 Update The time, relative to the collection time, at which this pulse occurred.
const DayaBay::ElecChannelIdchannelId () const
 Retrieve const Number used to identify the channel in the electronics / DAQ.
void setChannelId (const DayaBay::ElecChannelId &value)
 Update Number used to identify the channel in the electronics / DAQ.
float amplitude () const
 Retrieve const Relative amplitude of this pulse (relative to mean pulse height)
void setAmplitude (float value)
 Update Relative amplitude of this pulse (relative to mean pulse height)
const DayaBay::SimHitancestor () const
 Retrieve const The SimHit responsible for this pulse, if it exists.
DayaBay::SimHitancestor ()
 Retrieve The SimHit responsible for this pulse, if it exists.
void setAncestor (DayaBay::SimHit *value)
 Update The SimHit responsible for this pulse, if it exists.
int type () const
 Retrieve const The type of hit.
void setType (int value)
 Update The type of 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::ElecPulseCollectionm_pc
 The pulse collection to which this pulse belongs.
double m_time
 The time, relative to the collection time, at which this pulse occurred.
DayaBay::ElecChannelId m_channelId
 Number used to identify the channel in the electronics / DAQ.
float m_amplitude
 Relative amplitude of this pulse (relative to mean pulse height)
DayaBay::SimHitm_ancestor
 The SimHit responsible for this pulse, if it exists.
int m_type
 The type of hit.

Detailed Description

Basic information about PMT/RPC Pulses, based on SimHit.xml by bv@bnl.gov.

Author:
dandwyer@caltech.edu created Thu Dec 5 18:07:48 2013

Definition at line 42 of file ElecPulse.h.


Constructor & Destructor Documentation

DayaBay::ElecPulse::ElecPulse ( ) [inline]

Default Constructor.

Definition at line 47 of file ElecPulse.h.

                : m_pc(0),
                  m_time(0.0),
                  m_channelId(0),
                  m_amplitude(0.0),
                  m_ancestor(0),
                  m_type(0) {}
virtual DayaBay::ElecPulse::~ElecPulse ( ) [inline, virtual]

Default Destructor.

Definition at line 55 of file ElecPulse.h.

{}

Member Function Documentation

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

Fill the ASCII output stream.

Reimplemented in DayaBay::ElecPmtPulse, and DayaBay::ElecRpcPulse.

Definition at line 174 of file ElecPulse.h.

{
  s << "{ " << "pc :    " << m_pc << std::endl
            << "time :  " << (float)m_time << std::endl
            << "channelId :     " << m_channelId << std::endl
            << "amplitude :     " << m_amplitude << std::endl
            << "ancestor :      " << m_ancestor << std::endl
            << "type :  " << m_type << std::endl << " }";
  return s;
}
const DayaBay::ElecPulseCollection * DayaBay::ElecPulse::pc ( ) const [inline]

Retrieve const The pulse collection to which this pulse belongs.

Definition at line 186 of file ElecPulse.h.

{
  return m_pc;
}
void DayaBay::ElecPulse::setPc ( DayaBay::ElecPulseCollection value) [inline]

Update The pulse collection to which this pulse belongs.

Definition at line 191 of file ElecPulse.h.

{
  m_pc = value;
}
double DayaBay::ElecPulse::time ( ) const [inline]

Retrieve const The time, relative to the collection time, at which this pulse occurred.

Definition at line 196 of file ElecPulse.h.

{
  return m_time;
}
void DayaBay::ElecPulse::setTime ( double  value) [inline]

Update The time, relative to the collection time, at which this pulse occurred.

Definition at line 201 of file ElecPulse.h.

{
  m_time = value;
}
const DayaBay::ElecChannelId & DayaBay::ElecPulse::channelId ( ) const [inline]

Retrieve const Number used to identify the channel in the electronics / DAQ.

Definition at line 206 of file ElecPulse.h.

{
  return m_channelId;
}
void DayaBay::ElecPulse::setChannelId ( const DayaBay::ElecChannelId value) [inline]

Update Number used to identify the channel in the electronics / DAQ.

Definition at line 211 of file ElecPulse.h.

{
  m_channelId = value;
}
float DayaBay::ElecPulse::amplitude ( ) const [inline]

Retrieve const Relative amplitude of this pulse (relative to mean pulse height)

Definition at line 216 of file ElecPulse.h.

{
  return m_amplitude;
}
void DayaBay::ElecPulse::setAmplitude ( float  value) [inline]

Update Relative amplitude of this pulse (relative to mean pulse height)

Definition at line 221 of file ElecPulse.h.

{
  m_amplitude = value;
}
const DayaBay::SimHit * DayaBay::ElecPulse::ancestor ( ) const [inline]

Retrieve const The SimHit responsible for this pulse, if it exists.

Definition at line 226 of file ElecPulse.h.

{
  return m_ancestor;
}
DayaBay::SimHit * DayaBay::ElecPulse::ancestor ( ) [inline]

Retrieve The SimHit responsible for this pulse, if it exists.

Definition at line 231 of file ElecPulse.h.

{
  return m_ancestor;
}
void DayaBay::ElecPulse::setAncestor ( DayaBay::SimHit value) [inline]

Update The SimHit responsible for this pulse, if it exists.

Definition at line 236 of file ElecPulse.h.

{
  m_ancestor = value;
}
int DayaBay::ElecPulse::type ( ) const [inline]

Retrieve const The type of hit.

Definition at line 241 of file ElecPulse.h.

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

Update The type of hit.

Definition at line 246 of file ElecPulse.h.

{
  m_type = value;
}
static void* DayaBay::ElecPulse::operator new ( size_t  size) [inline, static]

operator new

Reimplemented in DayaBay::ElecPmtPulse, and DayaBay::ElecRpcPulse.

Definition at line 115 of file ElecPulse.h.

    {
      return ( sizeof(ElecPulse) == size ? 
               boost::singleton_pool<ElecPulse, sizeof(ElecPulse)>::malloc() :
               ::operator new(size) );
    }
static void* DayaBay::ElecPulse::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::ElecPmtPulse, and DayaBay::ElecRpcPulse.

Definition at line 125 of file ElecPulse.h.

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

operator delete

Reimplemented in DayaBay::ElecPmtPulse, and DayaBay::ElecRpcPulse.

Definition at line 131 of file ElecPulse.h.

    {
      boost::singleton_pool<ElecPulse, sizeof(ElecPulse)>::is_from(p) ?
      boost::singleton_pool<ElecPulse, sizeof(ElecPulse)>::free(p) :
      ::operator delete(p);
    }
static void DayaBay::ElecPulse::operator delete ( void *  p,
void *  pObj 
) [inline, static]

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

Reimplemented in DayaBay::ElecPmtPulse, and DayaBay::ElecRpcPulse.

Definition at line 140 of file ElecPulse.h.

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

Member Data Documentation

The pulse collection to which this pulse belongs.

Definition at line 149 of file ElecPulse.h.

double DayaBay::ElecPulse::m_time [private]

The time, relative to the collection time, at which this pulse occurred.

Definition at line 150 of file ElecPulse.h.

Number used to identify the channel in the electronics / DAQ.

Definition at line 151 of file ElecPulse.h.

Relative amplitude of this pulse (relative to mean pulse height)

Definition at line 152 of file ElecPulse.h.

The SimHit responsible for this pulse, if it exists.

Definition at line 153 of file ElecPulse.h.

The type of hit.

Definition at line 154 of file ElecPulse.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:49 for ElecEvent by doxygen 1.7.4