LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
sim::MCWire Class Reference

#include "MCWire.h"

Inheritance diagram for sim::MCWire:

Public Member Functions

 MCWire ()
 Default ctor. More...
 
void Reset ()
 
 MCWire (const unsigned int start, const std::vector< double > &wf)
 
void SetStartTDC (const unsigned int start)
 Setter function for time. More...
 
void SetWaveform (const std::vector< double > &wf)
 Setter function for waveform. More...
 
unsigned int StartTDC () const
 Getter for start time. More...
 
bool operator< (const MCWire &rhs) const
 For sorting. More...
 

Public Attributes

elements
 STL member. More...
 

Private Attributes

unsigned int fStartTDC
 

Detailed Description

Definition at line 13 of file MCWire.h.

Constructor & Destructor Documentation

sim::MCWire::MCWire ( )
inline

Default ctor.

Definition at line 18 of file MCWire.h.

References Reset().

19  {
20  Reset();
21  }
void Reset()
Definition: MCWire.h:23
sim::MCWire::MCWire ( const unsigned int  start,
const std::vector< double > &  wf 
)
inline

Definition at line 36 of file MCWire.h.

References SetStartTDC(), and SetWaveform().

38  {
39  SetStartTDC(start);
40  SetWaveform(wf);
41  }
void SetStartTDC(const unsigned int start)
Setter function for time.
Definition: MCWire.h:44
void SetWaveform(const std::vector< double > &wf)
Setter function for waveform.
Definition: MCWire.h:50

Member Function Documentation

bool sim::MCWire::operator< ( const MCWire rhs) const
inline

For sorting.

Definition at line 61 of file MCWire.h.

References fStartTDC.

61 { return fStartTDC < rhs.fStartTDC; }
unsigned int fStartTDC
Definition: MCWire.h:31
void sim::MCWire::Reset ( )
inline

Definition at line 23 of file MCWire.h.

References clear(), fStartTDC, and sim::kINVALID_UINT.

Referenced by MCWire().

24  {
27  }
unsigned int fStartTDC
Definition: MCWire.h:31
const unsigned int kINVALID_UINT
Definition: MCLimits.h:14
vec_iX clear()
void sim::MCWire::SetStartTDC ( const unsigned int  start)
inline

Setter function for time.

Definition at line 44 of file MCWire.h.

Referenced by MCWire(), and hit::MCHitFinder::produce().

45  {
46  fStartTDC = start;
47  }
unsigned int fStartTDC
Definition: MCWire.h:31
void sim::MCWire::SetWaveform ( const std::vector< double > &  wf)
inline

Setter function for waveform.

Definition at line 50 of file MCWire.h.

Referenced by MCWire().

51  {
52  this->resize(wf.size(),0);
53  for(std::size_t i=0; i<wf.size(); ++i)
54  this->at(i) = wf.at(i);
55  }
unsigned int sim::MCWire::StartTDC ( ) const
inline

Getter for start time.

Definition at line 58 of file MCWire.h.

References fStartTDC.

58 { return fStartTDC; }
unsigned int fStartTDC
Definition: MCWire.h:31

Member Data Documentation

T std::vector< T >::elements
inherited

STL member.

unsigned int sim::MCWire::fStartTDC
private

Definition at line 31 of file MCWire.h.

Referenced by operator<(), Reset(), and StartTDC().


The documentation for this class was generated from the following file: