LArSoft  v08_54_00
Liquid Argon Software toolkit -
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

 STL member. More...

Private Attributes

unsigned int fStartTDC

Detailed Description

Definition at line 11 of file MCWire.h.

Constructor & Destructor Documentation

sim::MCWire::MCWire ( )

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 

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

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 ( )

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)

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)

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) =;
53  }
unsigned int sim::MCWire::StartTDC ( ) const

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

STL member.

unsigned int sim::MCWire::fStartTDC

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: