SimDigitList Class Reference

#include <SimDigitList.h>

Inheritance diagram for SimDigitList:
SimSnarl

List of all members.

Public Member Functions

 SimDigitList ()
virtual ~SimDigitList ()
UInt_t Size () const
UInt_t GoodSize () const
const SimDigitGetDigit (UInt_t i) const
void AddList (SimDigitList &rhs)
void Sort (void)

Private Member Functions

 ClassDef (SimDigitList, 0)

Private Attributes

UInt_t fGoodSize

Detailed Description

Id
SimDigitList.h,v 1.2 2004/02/26 15:30:09 tagg Exp

SimDigitList Container class for SimDigit

n.tagg1@physics.ox.ac.uk

Definition at line 14 of file SimDigitList.h.


Constructor & Destructor Documentation

SimDigitList::SimDigitList (  )  [inline]

Definition at line 17 of file SimDigitList.h.

References fGoodSize.

00017 { fGoodSize = 0;};

virtual SimDigitList::~SimDigitList (  )  [inline, virtual]

Definition at line 18 of file SimDigitList.h.

00018 {};


Member Function Documentation

void SimDigitList::AddList ( SimDigitList rhs  )  [inline]

Definition at line 27 of file SimDigitList.h.

References it.

Referenced by SimDetector::SimulateElectronics(), and SimDetector::SimulateTrigger().

00027                                     {
00028     for(std::vector<SimDigit>::iterator it = rhs.begin(); it != rhs.end(); it++) {
00029       push_back(*it);
00030     }
00031   }

SimDigitList::ClassDef ( SimDigitList  ,
 
) [private]

Reimplemented in SimSnarl.

const SimDigit* SimDigitList::GetDigit ( UInt_t  i  )  const [inline]

Definition at line 23 of file SimDigitList.h.

References size.

Referenced by DetSim::Get().

00024     { if(i<size()) return &(operator[](i)); return NULL;};

UInt_t SimDigitList::GoodSize (  )  const [inline]

Definition at line 22 of file SimDigitList.h.

References fGoodSize.

Referenced by SimDetector::IsGapBurst(), and SimDetector::IsWindowBurst().

00022 { return fGoodSize; };

UInt_t SimDigitList::Size ( void   )  const [inline]

Definition at line 21 of file SimDigitList.h.

References size.

Referenced by SimDetector::AdjustTimeWithinSec(), DetSim::Get(), and SimDetector::SimulateTrigger().

00021 { return size(); };

void SimDigitList::Sort ( void   ) 

Definition at line 29 of file SimDigitList.cxx.

References fGoodSize, and size.

Referenced by SimDetector::SimulateTrigger().

00030 {
00031   fGoodSize = size();
00032   sort(begin(),end(),compareDigits());
00033   for(UInt_t i=0;i<size();i++) {
00034     if((*this)[i].GetErrors()) {
00035       fGoodSize = i;
00036       break;
00037     };
00038   }
00039 }


Member Data Documentation

UInt_t SimDigitList::fGoodSize [private]

Definition at line 36 of file SimDigitList.h.

Referenced by GoodSize(), SimDigitList(), and Sort().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1