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

CDXTalkHitInfo.cxx

Go to the documentation of this file.
00001 
00002 
00003 // Program name: CDXTalkHitInfo.cxx
00004 //
00005 // Package: CalDetTracker
00006 //
00007 // Purpose: 
00008 //
00009 // Contact: Chris Smith, Ryan Nichol, Leo Jenner or Jeff Hartnell
00011 
00012 #include "CalDetTracker/CDXTalkHitInfo.h"
00013 
00014 ClassImp(CDXTalkHitInfo)
00015 
00016 //......................................................................
00017 
00018 CDXTalkHitInfo::CDXTalkHitInfo()
00019 {
00020   this->SetInfo(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
00021 }
00022 
00023 //......................................................................
00024 
00025 CDXTalkHitInfo::CDXTalkHitInfo(int end,int plane,int strip,
00026                                int pixel,
00027                                int numxhits,float adc,
00028                                float siglin,
00029                                float sigcorr,float pe,float mip,
00030                                int sourceend,int sourceplane,
00031                                int sourcestrip,int sourcepixel,
00032                                int sourcespot,
00033                                float sourcecharge,double time)
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 }
00041 
00042 //......................................................................
00043 
00044 float CDXTalkHitInfo::GetCharge(CalDigitType::ECalDigitType calType) 
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 }
00054 
00055 //......................................................................
00056 
00057 float CDXTalkHitInfo::GetCharge(int opt) 
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 }
00067 
00068 //......................................................................
00069 
00070 void CDXTalkHitInfo::SetInfo(int end,int plane,int strip,int pixel,
00071                                  int numxhits,float adc,float siglin,
00072                                  float sigcorr,float pe,float mip,
00073                                  int sourceend,int sourceplane,
00074                                  int sourcestrip,
00075                                  int sourcepixel,int sourcespot,
00076                                  float sourcecharge,double time)
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 }
00096 
00097 //......................................................................
00098 
00099 
00100 
00101 
00102 
00103 
00104 
00105 
00106 

Generated on Mon Feb 15 11:06:31 2010 for loon by  doxygen 1.3.9.1