CDXTalkHitInfo Class Reference

#include <CDXTalkHitInfo.h>

List of all members.

Public Member Functions

 CDXTalkHitInfo ()
 CDXTalkHitInfo (int, int, int, int, int, float, float, float, float, float, int, int, int, int, int, float, double)
void SetInfo (int, int, int, int, int, float, float, float, float, float, int, int, int, int, int, float, double)
int GetEnd ()
int GetPlane ()
int GetStrip ()
int GetPixel ()
int GetNumxhits ()
float GetCharge ()
float GetCharge (CalDigitType::ECalDigitType calType)
float GetCharge (int opt)
int GetSourceEnd ()
int GetSourcePlane ()
int GetSourceStrip ()
int GetSourcePixel ()
int GetSourceSpot ()
float GetSourceCharge ()
double GetTime ()

Private Attributes

int fend
int fplane
int fstrip
int fpixel
int fnumxhits
float fadc
float fpe
float fmip
float fsiglin
float fsigcorr
int fsourceend
int fsourceplane
int fsourcestrip
int fsourcepixel
int fsourcespot
float fsourcecharge
double ftime

Detailed Description

Definition at line 19 of file CDXTalkHitInfo.h.


Constructor & Destructor Documentation

CDXTalkHitInfo::CDXTalkHitInfo (  ) 

Definition at line 18 of file CDXTalkHitInfo.cxx.

00019 {
00020   this->SetInfo(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
00021 }

CDXTalkHitInfo::CDXTalkHitInfo ( int  end,
int  plane,
int  strip,
int  pixel,
int  numxhits,
float  adc,
float  siglin,
float  sigcorr,
float  pe,
float  mip,
int  sourceend,
int  sourceplane,
int  sourcestrip,
int  sourcepixel,
int  sourcespot,
float  sourcecharge,
double  time 
)

Definition at line 25 of file CDXTalkHitInfo.cxx.

References SetInfo().

00034 {
00035   this->SetInfo(end,plane,strip,pixel,numxhits,adc,siglin,sigcorr,
00036                 pe,mip,
00037                 sourceend,sourceplane,sourcestrip,sourcepixel,
00038                 sourcespot,
00039                 sourcecharge,time);
00040 }


Member Function Documentation

float CDXTalkHitInfo::GetCharge ( int  opt  ) 

Definition at line 57 of file CDXTalkHitInfo.cxx.

References fadc, fmip, fpe, fsigcorr, and fsiglin.

00058 {
00059   if(opt==0) return fadc;
00060   else if(opt==1) return fsiglin;
00061   else if(opt==2) return fsigcorr;
00062   else if(opt==3) return fpe;
00063   else if(opt==4) return fmip;
00064   return -1;
00065 
00066 }

float CDXTalkHitInfo::GetCharge ( CalDigitType::ECalDigitType  calType  ) 

Definition at line 44 of file CDXTalkHitInfo.cxx.

References fadc, fmip, fpe, fsigcorr, fsiglin, CalDigitType::kNone, CalDigitType::kPE, CalDigitType::kSigCorr, and CalDigitType::kSigLin.

00045 {
00046   if(calType==CalDigitType::kNone) return fadc;
00047   else if(calType==CalDigitType::kSigLin) return fsiglin;
00048   else if(calType==CalDigitType::kSigCorr) return fsigcorr;
00049   else if(calType==CalDigitType::kPE) return fpe;
00050   else if(calType==4) return fmip;
00051   return -1;
00052 
00053 }

float CDXTalkHitInfo::GetCharge (  )  [inline]
int CDXTalkHitInfo::GetEnd (  )  [inline]
int CDXTalkHitInfo::GetNumxhits (  )  [inline]

Definition at line 34 of file CDXTalkHitInfo.h.

References fnumxhits.

Referenced by CDAnalysis::ValidateXTalkHits().

00034 {return fnumxhits;}

int CDXTalkHitInfo::GetPixel (  )  [inline]

Definition at line 33 of file CDXTalkHitInfo.h.

References fpixel.

Referenced by CDAnalysis::ValidateXTalkHits().

00033 {return fpixel;}

int CDXTalkHitInfo::GetPlane (  )  [inline]
float CDXTalkHitInfo::GetSourceCharge (  )  [inline]

Definition at line 43 of file CDXTalkHitInfo.h.

References fsourcecharge.

Referenced by CDAnalysis::ValidateXTalkHits().

00043 {return fsourcecharge;}

int CDXTalkHitInfo::GetSourceEnd (  )  [inline]

Definition at line 38 of file CDXTalkHitInfo.h.

References fsourceend.

Referenced by CDAnalysis::ValidateXTalkHits().

00038 {return fsourceend;}

int CDXTalkHitInfo::GetSourcePixel (  )  [inline]

Definition at line 41 of file CDXTalkHitInfo.h.

References fsourcepixel.

Referenced by CDAnalysis::ValidateXTalkHits().

00041 {return fsourcepixel;}

int CDXTalkHitInfo::GetSourcePlane (  )  [inline]

Definition at line 39 of file CDXTalkHitInfo.h.

References fsourceplane.

Referenced by CDAnalysis::ValidateXTalkHits().

00039 {return fsourceplane;}

int CDXTalkHitInfo::GetSourceSpot (  )  [inline]

Definition at line 42 of file CDXTalkHitInfo.h.

References fsourcespot.

Referenced by CDAnalysis::ValidateXTalkHits().

00042 {return fsourcespot;}

int CDXTalkHitInfo::GetSourceStrip (  )  [inline]

Definition at line 40 of file CDXTalkHitInfo.h.

References fsourcestrip.

Referenced by CDAnalysis::ValidateXTalkHits().

00040 {return fsourcestrip;}

int CDXTalkHitInfo::GetStrip (  )  [inline]
double CDXTalkHitInfo::GetTime (  )  [inline]

Definition at line 44 of file CDXTalkHitInfo.h.

References ftime.

Referenced by CDAnalysis::ReadInHitInfo(), and CDAnalysis::ValidateXTalkHits().

00044 {return ftime;}

void CDXTalkHitInfo::SetInfo ( int  end,
int  plane,
int  strip,
int  pixel,
int  numxhits,
float  adc,
float  siglin,
float  sigcorr,
float  pe,
float  mip,
int  sourceend,
int  sourceplane,
int  sourcestrip,
int  sourcepixel,
int  sourcespot,
float  sourcecharge,
double  time 
)

Definition at line 70 of file CDXTalkHitInfo.cxx.

References fadc, fend, fmip, fnumxhits, fpe, fpixel, fplane, fsigcorr, fsiglin, fsourcecharge, fsourceend, fsourcepixel, fsourceplane, fsourcespot, fsourcestrip, fstrip, and ftime.

Referenced by CDXTalkHitInfo().

00077 {
00078   fend=end; 
00079   fplane=plane; 
00080   fstrip=strip;
00081   fpixel=pixel;
00082   fnumxhits=numxhits;
00083   fadc=adc;
00084   fsiglin=siglin;
00085   fsigcorr=sigcorr;
00086   fpe=pe;
00087   fmip=mip;
00088   fsourceend=sourceend;
00089   fsourceplane=sourceplane;
00090   fsourcestrip=sourcestrip;
00091   fsourcepixel=sourcepixel;
00092   fsourcespot=sourcespot;
00093   fsourcecharge=sourcecharge;
00094   ftime=time;
00095 }


Member Data Documentation

float CDXTalkHitInfo::fadc [private]

Definition at line 53 of file CDXTalkHitInfo.h.

Referenced by GetCharge(), and SetInfo().

int CDXTalkHitInfo::fend [private]

Definition at line 48 of file CDXTalkHitInfo.h.

Referenced by GetEnd(), and SetInfo().

float CDXTalkHitInfo::fmip [private]

Definition at line 55 of file CDXTalkHitInfo.h.

Referenced by GetCharge(), and SetInfo().

Definition at line 52 of file CDXTalkHitInfo.h.

Referenced by GetNumxhits(), and SetInfo().

float CDXTalkHitInfo::fpe [private]

Definition at line 54 of file CDXTalkHitInfo.h.

Referenced by GetCharge(), and SetInfo().

int CDXTalkHitInfo::fpixel [private]

Definition at line 51 of file CDXTalkHitInfo.h.

Referenced by GetPixel(), and SetInfo().

int CDXTalkHitInfo::fplane [private]

Definition at line 49 of file CDXTalkHitInfo.h.

Referenced by GetPlane(), and SetInfo().

float CDXTalkHitInfo::fsigcorr [private]

Definition at line 57 of file CDXTalkHitInfo.h.

Referenced by GetCharge(), and SetInfo().

float CDXTalkHitInfo::fsiglin [private]

Definition at line 56 of file CDXTalkHitInfo.h.

Referenced by GetCharge(), and SetInfo().

Definition at line 63 of file CDXTalkHitInfo.h.

Referenced by GetSourceCharge(), and SetInfo().

Definition at line 58 of file CDXTalkHitInfo.h.

Referenced by GetSourceEnd(), and SetInfo().

Definition at line 61 of file CDXTalkHitInfo.h.

Referenced by GetSourcePixel(), and SetInfo().

Definition at line 59 of file CDXTalkHitInfo.h.

Referenced by GetSourcePlane(), and SetInfo().

Definition at line 62 of file CDXTalkHitInfo.h.

Referenced by GetSourceSpot(), and SetInfo().

Definition at line 60 of file CDXTalkHitInfo.h.

Referenced by GetSourceStrip(), and SetInfo().

int CDXTalkHitInfo::fstrip [private]

Definition at line 50 of file CDXTalkHitInfo.h.

Referenced by GetStrip(), and SetInfo().

double CDXTalkHitInfo::ftime [private]

Definition at line 64 of file CDXTalkHitInfo.h.

Referenced by GetTime(), and SetInfo().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1