All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
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...
 

Private Attributes

unsigned int fStartTDC
 

Additional Inherited Members

- Public Attributes inherited from std::vector< T >
elements
 STL member. More...
 

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.

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.

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.

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.

22  {
23  std::vector<double>::clear();
25  }
unsigned int fStartTDC
Definition: MCWire.h:29
const unsigned int kINVALID_UINT
Definition: MCLimits.h:14
void sim::MCWire::SetStartTDC ( const unsigned int  start)
inline

Setter function for time.

Definition at line 42 of file MCWire.h.

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.

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.

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

Member Data Documentation

unsigned int sim::MCWire::fStartTDC
private

Definition at line 29 of file MCWire.h.


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