#include <ElecPulse.h>
Inheritance diagram for DayaBay::ElecPulse:
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::ElecChannelId & | channelId () 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::SimHit * | ancestor () const |
Retrieve const The SimHit responsible for this pulse, if it exists. | |
DayaBay::SimHit * | ancestor () |
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::ElecPulseCollection * | m_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::SimHit * | m_ancestor |
The SimHit responsible for this pulse, if it exists. | |
int | m_type |
The type of hit. |
Definition at line 42 of file ElecPulse.h.
DayaBay::ElecPulse::ElecPulse | ( | ) | [inline] |
Default Constructor.
Definition at line 47 of file ElecPulse.h.
00047 : m_pc(0), 00048 m_time(0.0), 00049 m_channelId(0), 00050 m_amplitude(0.0), 00051 m_ancestor(0), 00052 m_type(0) {}
virtual DayaBay::ElecPulse::~ElecPulse | ( | ) | [inline, virtual] |
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.
00175 { 00176 s << "{ " << "pc : " << m_pc << std::endl 00177 << "time : " << (float)m_time << std::endl 00178 << "channelId : " << m_channelId << std::endl 00179 << "amplitude : " << m_amplitude << std::endl 00180 << "ancestor : " << m_ancestor << std::endl 00181 << "type : " << m_type << std::endl << " }"; 00182 return s; 00183 }
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.
00187 { 00188 return m_pc; 00189 }
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.
00192 { 00193 m_pc = value; 00194 }
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.
00197 { 00198 return m_time; 00199 }
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.
00202 { 00203 m_time = value; 00204 }
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.
00207 { 00208 return m_channelId; 00209 }
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.
00212 { 00213 m_channelId = value; 00214 }
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.
00217 { 00218 return m_amplitude; 00219 }
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.
00222 { 00223 m_amplitude = value; 00224 }
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.
00227 { 00228 return m_ancestor; 00229 }
DayaBay::SimHit * DayaBay::ElecPulse::ancestor | ( | ) | [inline] |
Retrieve The SimHit responsible for this pulse, if it exists.
Definition at line 231 of file ElecPulse.h.
00232 { 00233 return m_ancestor; 00234 }
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.
00237 { 00238 m_ancestor = value; 00239 }
int DayaBay::ElecPulse::type | ( | ) | const [inline] |
Retrieve const The type of hit.
Definition at line 241 of file ElecPulse.h.
00242 { 00243 return m_type; 00244 }
void DayaBay::ElecPulse::setType | ( | int | value | ) | [inline] |
Update The type of hit.
Definition at line 246 of file ElecPulse.h.
00247 { 00248 m_type = value; 00249 }
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.
00116 { 00117 return ( sizeof(ElecPulse) == size ? 00118 boost::singleton_pool<ElecPulse, sizeof(ElecPulse)>::malloc() : 00119 ::operator new(size) ); 00120 }
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.
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.
00132 { 00133 boost::singleton_pool<ElecPulse, sizeof(ElecPulse)>::is_from(p) ? 00134 boost::singleton_pool<ElecPulse, sizeof(ElecPulse)>::free(p) : 00135 ::operator delete(p); 00136 }
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.
00141 { 00142 ::operator delete (p, pObj); 00143 }
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.
float DayaBay::ElecPulse::m_amplitude [private] |
Relative amplitude of this pulse (relative to mean pulse height).
Definition at line 152 of file ElecPulse.h.
DayaBay::SimHit* DayaBay::ElecPulse::m_ancestor [private] |
int DayaBay::ElecPulse::m_type [private] |