LArSoft  v08_35_01
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 11 of file MCWire.h.

Constructor & Destructor Documentation

sim::MCWire::MCWire ( )
inline

Default ctor.

Definition at line 16 of file MCWire.h.

References Reset().

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

Definition at line 34 of file MCWire.h.

References SetStartTDC(), and SetWaveform().

36  {
37  SetStartTDC(start);
38  SetWaveform(wf);
39  }
void SetStartTDC(const unsigned int start)
Setter function for time.
Definition: MCWire.h:42
void SetWaveform(const std::vector< double > &wf)
Setter function for waveform.
Definition: MCWire.h:48

Member Function Documentation

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

For sorting.

Definition at line 59 of file MCWire.h.

References fStartTDC.

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

Definition at line 21 of file MCWire.h.

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

Referenced by MCWire().

22  {
25  }
unsigned int fStartTDC
Definition: MCWire.h:29
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 42 of file MCWire.h.

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

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

Setter function for waveform.

Definition at line 48 of file MCWire.h.

Referenced by MCWire().

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

Getter for start time.

Definition at line 56 of file MCWire.h.

References fStartTDC.

56 { return fStartTDC; }
unsigned int fStartTDC
Definition: MCWire.h:29

Member Data Documentation

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

STL member.

unsigned int sim::MCWire::fStartTDC
private

Definition at line 29 of file MCWire.h.

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


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