Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

rawdata::RawDigit Class Reference

#include <RawDigit.h>

Inheritance diagram for rawdata::RawDigit:

recobase::CellHit clusterss::CellHitGrad recobase::RecoHit List of all members.

Public Member Functions

 RawDigit ()
 RawDigit (unsigned int channel, std::vector< short > adclist, std::vector< short > tdclist)
 ~RawDigit ()
unsigned int NADC () const
unsigned int NTDC () const
short ADC (unsigned int i) const
short TDC (unsigned int i) const
unsigned int Channel () const
void SetADC (unsigned int i, short iADC)
void SetTDC (unsigned int i, short iTDC)
void SetChannel (unsigned int iChan)
void Set (unsigned int iChan, unsigned int i, short iADC, short iTDC)
short TrackID () const
void SetTrackID (short id)

Public Attributes

unsigned int fChannel
 channel ID
std::vector< short > fADC
 list of ADC(-like) charge values
std::vector< short > fTDC
 list of TDC(-like) charge values

Private Member Functions

 ClassDef (RawDigit, 3)

Private Attributes

int fMCBits

Constructor & Destructor Documentation

RawDigit::RawDigit  ) 
 

Definition at line 21 of file RawDigit.cxx.

00021                    : TObject(), fChannel(0), fADC(0), fTDC(0), fMCBits(0)
00022 {
00023 }

RawDigit::RawDigit unsigned int  channel,
std::vector< short >  adclist,
std::vector< short >  tdclist
 

Definition at line 27 of file RawDigit.cxx.

00029                                              : TObject(),
00030                                                  fChannel(channel), 
00031                                                  fADC(adclist), 
00032                                                  fTDC(tdclist)
00033 { 
00034 }

RawDigit::~RawDigit  ) 
 

Definition at line 38 of file RawDigit.cxx.

00039 {
00040 }


Member Function Documentation

short RawDigit::ADC unsigned int  i  )  const
 

Definition at line 43 of file RawDigit.cxx.

References assert_jobc, and fADC.

Referenced by mcchk::DetAna::Ana(), evd::Display3D::DrawRawData(), clusterss::MakeClusterSS::FindAllTransverseWindows(), calib::Calibrator::GetPE(), calib::Calibrator::GetTNS(), clusterss::MakeClusterSS::MakePlaneClusters(), clusterss::CompareClusters::MatchCells(), clusterss::MakeClusterSS::PruneCellList(), cellhitmerge::CellHitMerge::Reco(), and clusterss::MakeClusterSS::SplitIntoViews().

00044 {
00045   char msg[256];
00046   sprintf(msg,"RawDigit::ADC(%d) out of range!",i);
00047   assert_jobc(i<fADC.size(),msg);
00048   return fADC[i];
00049 }

unsigned int rawdata::RawDigit::Channel  )  const [inline]
 

Definition at line 35 of file RawDigit.h.

Referenced by cmap::CMap::GetCell(), and cmap::CMap::GetPlane().

00035 { return fChannel;}

rawdata::RawDigit::ClassDef RawDigit  ,
[private]
 

unsigned int rawdata::RawDigit::NADC  )  const [inline]
 

Definition at line 31 of file RawDigit.h.

Referenced by mcchk::DetAna::Ana(), rsim::SimpleReadout::CreateRawDigits(), evd::Display3D::DrawRawData(), and calib::Calibrator::GetTNS().

00031 { return fADC.size(); }

unsigned int rawdata::RawDigit::NTDC  )  const [inline]
 

Definition at line 32 of file RawDigit.h.

00032 { return fTDC.size(); }

void RawDigit::Set unsigned int  iChan,
unsigned int  i,
short  iADC,
short  iTDC
 

Definition at line 79 of file RawDigit.cxx.

References fADC, fChannel, and fTDC.

00081 {
00082   fChannel = channel;
00083   if (fTDC.size()<i+1) fTDC.resize(i+1);
00084   fTDC[i] = tdc;
00085   if (fADC.size()<i+1) fADC.resize(i+1);
00086   fADC[i] = adc;
00087 }

void RawDigit::SetADC unsigned int  i,
short  iADC
 

Definition at line 63 of file RawDigit.cxx.

References fADC.

Referenced by rsim::SimpleReadout::FPGA_DualCorrelatedSampling(), and rsim::SimpleReadout::FPGA_MatchedFiltering().

00063                                                 {
00064   if (fADC.size()<i+1) fADC.resize(i+1);
00065   fADC[i]=iADC;
00066   return;
00067 }

void rawdata::RawDigit::SetChannel unsigned int  iChan  )  [inline]
 

Definition at line 40 of file RawDigit.h.

Referenced by rsim::SimpleReadout::CreateRawDigits().

00040 { fChannel = iChan; }

void RawDigit::SetTDC unsigned int  i,
short  iTDC
 

Definition at line 71 of file RawDigit.cxx.

References fTDC.

Referenced by rsim::SimpleReadout::FPGA_DualCorrelatedSampling(), and rsim::SimpleReadout::FPGA_MatchedFiltering().

00071                                                 {
00072   if (fTDC.size()<i+1) fTDC.resize(i+1);
00073   fTDC[i]=iTDC;
00074   return;
00075 }

void rawdata::RawDigit::SetTrackID short  id  )  [inline]
 

Definition at line 59 of file RawDigit.h.

Referenced by rsim::SimpleReadout::CreateRawDigits().

00059 { fMCBits = id; }

short RawDigit::TDC unsigned int  i  )  const
 

Definition at line 53 of file RawDigit.cxx.

References assert_jobc, and fTDC.

Referenced by rsim::SimpleReadout::CreateRawDigits(), calib::Calibrator::GetTNS(), raw_digit_sort(), and cellhitmerge::CellHitMerge::Reco().

00054 {
00055   char msg[256];
00056   sprintf(msg,"RawDigit::TDC(%d) out of range!",i);
00057   assert_jobc(i<fTDC.size(),msg);
00058   return fTDC[i];
00059 }

short rawdata::RawDigit::TrackID  )  const [inline]
 

Definition at line 58 of file RawDigit.h.

00058 { return (short)fMCBits; }


Member Data Documentation

std::vector<short> rawdata::RawDigit::fADC
 

list of ADC(-like) charge values

Definition at line 51 of file RawDigit.h.

Referenced by ADC(), Set(), and SetADC().

unsigned int rawdata::RawDigit::fChannel
 

channel ID

Definition at line 50 of file RawDigit.h.

Referenced by Set().

int rawdata::RawDigit::fMCBits [private]
 

Definition at line 62 of file RawDigit.h.

std::vector<short> rawdata::RawDigit::fTDC
 

list of TDC(-like) charge values

Definition at line 52 of file RawDigit.h.

Referenced by Set(), SetTDC(), and TDC().


The documentation for this class was generated from the following files:
Generated on Mon Nov 23 04:45:33 2009 for NOvA Offline by  doxygen 1.3.9.1