LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 15 of file MCWire.h.

References Reset().

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

Definition at line 27 of file MCWire.h.

References SetStartTDC(), and SetWaveform().

28  {
29  SetStartTDC(start);
30  SetWaveform(wf);
31  }
void SetStartTDC(const unsigned int start)
Setter function for time.
Definition: MCWire.h:34
void SetWaveform(const std::vector< double > &wf)
Setter function for waveform.
Definition: MCWire.h:37

Member Function Documentation

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

For sorting.

Definition at line 48 of file MCWire.h.

References fStartTDC.

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

Definition at line 17 of file MCWire.h.

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

Referenced by MCWire().

18  {
21  }
unsigned int fStartTDC
Definition: MCWire.h:24
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 34 of file MCWire.h.

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

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

Setter function for waveform.

Definition at line 37 of file MCWire.h.

Referenced by MCWire().

38  {
39  this->resize(wf.size(), 0);
40  for (std::size_t i = 0; i < wf.size(); ++i)
41  this->at(i) = wf.at(i);
42  }
unsigned int sim::MCWire::StartTDC ( ) const
inline

Getter for start time.

Definition at line 45 of file MCWire.h.

References fStartTDC.

45 { return fStartTDC; }
unsigned int fStartTDC
Definition: MCWire.h:24

Member Data Documentation

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

STL member.

unsigned int sim::MCWire::fStartTDC
private

Definition at line 24 of file MCWire.h.

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


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