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

UberHit Class Reference

#include <UberHit.h>

List of all members.

Public Member Functions

 UberHit ()
virtual ~UberHit ()
void SetPlaneStrip (UShort_t p, UShort_t s)
void AddValues (StripEnd::StripEnd_t se, Int_t adc, Float_t siglin, Float_t npe, Float_t mip, Float_t time, Int_t pmtagg)
virtual void Print (Option_t *option="") const
const UShort_t GetPlane () const
const UShort_t GetStrip () const
const Int_t GetPosADC () const
const Int_t GetNegADC () const
const Float_t GetPosSigLin () const
const Float_t GetNegSigLin () const
const Float_t GetPosNPE () const
const Float_t GetNegNPE () const
const Float_t GetPosMIP () const
const Float_t GetNegMIP () const
const Float_t GetPosTime () const
const Float_t GetNegTime () const
const Int_t GetPosPMTagg () const
const Int_t GetNegPMTagg () const
const UInt_t GetPosBckt () const
const UInt_t GetNegBckt () const

Static Public Member Functions

Int_t GetNUberHit ()

Private Attributes

UShort_t plane
UShort_t strip
Int_t padc
Int_t nadc
Float_t psiglin
Float_t nsiglin
Float_t pnpe
Float_t nnpe
Float_t pmip
Float_t nmip
Float_t ptime
Float_t ntime
Int_t pagg
Int_t nagg
UInt_t pbckt
UInt_t nbckt

Static Private Attributes

Int_t nuberhit = 0


Constructor & Destructor Documentation

UberHit::UberHit  ) 
 

Definition at line 11 of file UberHit.cxx.

References MSG.

00011                 :
00012   plane(0),
00013   strip(0),
00014   padc(0),
00015   nadc(0),
00016   psiglin(0.),
00017   nsiglin(0.),
00018   pnpe(0.),
00019   nnpe(0.),
00020   pmip(0.),
00021   nmip(0.),
00022   ptime(0.),
00023   ntime(0.),
00024   pagg(0),
00025   nagg(0),
00026   pbckt(0),
00027   nbckt(0)
00028 {
00029   MSG("UberHit",Msg::kDebug)<<"In UberHit creator"<<endl;
00030   nuberhit++;
00031 }//end UberHit(UShort_t, UShort_t)
//_______________________________________________________________________________

UberHit::~UberHit  )  [virtual]
 

Definition at line 33 of file UberHit.cxx.

References nuberhit.

00034 {nuberhit--;}//end ~UberHit()


Member Function Documentation

void UberHit::AddValues StripEnd::StripEnd_t  se,
Int_t  adc,
Float_t  siglin,
Float_t  npe,
Float_t  mip,
Float_t  time,
Int_t  pmtagg
 

Definition at line 43 of file UberHit.cxx.

References MSG, nadc, nagg, nbckt, nmip, nnpe, nsiglin, ntime, padc, pagg, pbckt, pmip, pnpe, psiglin, and ptime.

Referenced by UberRecordLite::AddNextHitValues(), UberRecord::AddNextHitValues(), and UberEvent::AddNextHitValues().

00046 {//se is stripend, rest of parameters are obvious
00047   //for near detector electronics, we want to do a +=, except for time,
00048   //which we will take to be the first time.
00049 
00050   MSG("UberHit",Msg::kDebug)<<"In UberHit AddValues"<<endl;
00051   if(se==StripEnd::kPositive){ //if se==+, fill the p values
00052     if(padc==0){//if we havent filled padc yet, we want to fill time with the 
00053                 //time of this hit
00054       ptime = time;
00055       pagg = pmtagg;
00056     }
00057     //added 9-29-2003
00058     if(time<ptime){
00059        ptime = time;
00060     }
00061     padc += adc;
00062     psiglin += siglin;
00063     pnpe += npe;
00064     pmip += mip;
00065     pbckt++;
00066     // ptime += time;
00067     //pagg += pmtagg;
00068   }
00069   else if(se==StripEnd::kNegative){ //if se==-, fill n values
00070     if(nadc==0){//if we havent filled nadc yet, we want to fill time with the 
00071                 //time of this hit
00072       ntime = time;
00073       nagg = pmtagg;
00074     }
00075     //added 9-29-2003
00076     if(time<ntime){
00077        ntime = time;
00078     }
00079     nadc += adc;
00080     nsiglin += siglin;
00081     nnpe += npe;
00082     nmip += mip;
00083     nbckt++;
00084     //    ntime += time;
00085     //   nagg += pmtagg;
00086   }
00087   else{//somethings gone wrong
00088     MSG("UberUberHit",Msg::kWarning)<<"Strip end unknown, not filling"<<endl;
00089   }
00090 
00091   return;
00092 }//end AddValues()

const Int_t UberHit::GetNegADC  )  const [inline]
 

Definition at line 70 of file UberHit.h.

Referenced by CalDet2003PlotsModule::Ana().

00070 {return nadc;}

const UInt_t UberHit::GetNegBckt  )  const [inline]
 

Definition at line 82 of file UberHit.h.

00082 {return nbckt;}

const Float_t UberHit::GetNegMIP  )  const [inline]
 

Definition at line 76 of file UberHit.h.

Referenced by UberPlotsModule::Ana(), CalDet2003PlotsModule::Ana(), DCHit::DCHit(), and MSTCalcAna::FillHitSets().

00076 {return nmip;}

const Float_t UberHit::GetNegNPE  )  const [inline]
 

Definition at line 74 of file UberHit.h.

Referenced by UberPlotsModule::Ana().

00074 {return nnpe;}

const Int_t UberHit::GetNegPMTagg  )  const [inline]
 

Definition at line 80 of file UberHit.h.

00080 {return nagg;}

const Float_t UberHit::GetNegSigLin  )  const [inline]
 

Definition at line 71 of file UberHit.h.

00071 {return nsiglin;}

const Float_t UberHit::GetNegTime  )  const [inline]
 

Definition at line 78 of file UberHit.h.

Referenced by CalDet2003PlotsModule::Ana(), and DCHit::DCHit().

00078 {return ntime;}

Int_t UberHit::GetNUberHit  )  [inline, static]
 

Definition at line 63 of file UberHit.h.

00063 {return nuberhit;}

const UShort_t UberHit::GetPlane  )  const [inline]
 

Definition at line 67 of file UberHit.h.

Referenced by UberPlotsModule::Ana(), CalDet2003PlotsModule::Ana(), DCHit::DCHit(), and MSTCalcAna::FillHitSets().

00067 {return plane;}

const Int_t UberHit::GetPosADC  )  const [inline]
 

Definition at line 69 of file UberHit.h.

Referenced by CalDet2003PlotsModule::Ana().

00069 {return padc;}

const UInt_t UberHit::GetPosBckt  )  const [inline]
 

Definition at line 81 of file UberHit.h.

00081 {return pbckt;}

const Float_t UberHit::GetPosMIP  )  const [inline]
 

Definition at line 75 of file UberHit.h.

Referenced by UberPlotsModule::Ana(), CalDet2003PlotsModule::Ana(), DCHit::DCHit(), and MSTCalcAna::FillHitSets().

00075 {return pmip;}

const Float_t UberHit::GetPosNPE  )  const [inline]
 

Definition at line 73 of file UberHit.h.

Referenced by UberPlotsModule::Ana().

00073 {return pnpe;}

const Int_t UberHit::GetPosPMTagg  )  const [inline]
 

Definition at line 79 of file UberHit.h.

00079 {return pagg;}

const Float_t UberHit::GetPosSigLin  )  const [inline]
 

Definition at line 72 of file UberHit.h.

00072 {return psiglin;}

const Float_t UberHit::GetPosTime  )  const [inline]
 

Definition at line 77 of file UberHit.h.

Referenced by CalDet2003PlotsModule::Ana(), and DCHit::DCHit().

00077 {return ptime;}

const UShort_t UberHit::GetStrip  )  const [inline]
 

Definition at line 68 of file UberHit.h.

Referenced by UberPlotsModule::Ana(), CalDet2003PlotsModule::Ana(), and DCHit::DCHit().

00068 {return strip;}

void UberHit::Print Option_t *  option = ""  )  const [virtual]
 

Definition at line 94 of file UberHit.cxx.

References nadc, nagg, nbckt, nmip, nnpe, nsiglin, ntime, padc, pagg, pbckt, plane, pmip, pnpe, psiglin, ptime, and strip.

Referenced by UberRecordLite::Print(), UberRecord::Print(), and UberEvent::Print().

00095 {
00096   cout<<"________________________________________________"<<endl;
00097   cout<<"Plane "<<plane<<" Strip "<<strip<<endl
00098       <<"Pos adc "<<padc<<" Neg adc "<<nadc<<endl
00099       <<"Pos Sig Lin "<<psiglin<<" Neg SigLin "<<nsiglin<<endl
00100       <<"Pos npe "<<pnpe<<" Neg npe "<<nnpe<<endl
00101       <<"Pos mip "<<pmip<<" Neg mip "<<nmip<<endl
00102       <<"Pos time "<<ptime<<" Neg time "<<ntime<<endl
00103       <<"Pos agg "<<hex<<pagg<<dec<<" Neg agg "<<hex<<nagg<<dec
00104       <<"Pos num. buckets "<<pbckt<<" Neg num. buckets "<<nbckt<<endl;
00105   
00106 }//end Print()

void UberHit::SetPlaneStrip UShort_t  p,
UShort_t  s
 

Definition at line 36 of file UberHit.cxx.

References plane, and strip.

Referenced by UberRecordLite::AddNextHit(), UberRecord::AddNextHit(), and UberEvent::AddNextHit().

00037 {
00038   plane = p;
00039   strip =s ;
00040   
00041 }//end SetPlaneStrip()


Member Data Documentation

Int_t UberHit::nadc [private]
 

Definition at line 47 of file UberHit.h.

Referenced by AddValues(), and Print().

Int_t UberHit::nagg [private]
 

Definition at line 57 of file UberHit.h.

Referenced by AddValues(), and Print().

UInt_t UberHit::nbckt [private]
 

Definition at line 59 of file UberHit.h.

Referenced by AddValues(), and Print().

Float_t UberHit::nmip [private]
 

Definition at line 53 of file UberHit.h.

Referenced by AddValues(), and Print().

Float_t UberHit::nnpe [private]
 

Definition at line 51 of file UberHit.h.

Referenced by AddValues(), and Print().

Float_t UberHit::nsiglin [private]
 

Definition at line 49 of file UberHit.h.

Referenced by AddValues(), and Print().

Float_t UberHit::ntime [private]
 

Definition at line 55 of file UberHit.h.

Referenced by AddValues(), and Print().

int UberHit::nuberhit = 0 [static, private]
 

Definition at line 9 of file UberHit.cxx.

Referenced by ~UberHit().

Int_t UberHit::padc [private]
 

Definition at line 46 of file UberHit.h.

Referenced by AddValues(), and Print().

Int_t UberHit::pagg [private]
 

Definition at line 56 of file UberHit.h.

Referenced by AddValues(), and Print().

UInt_t UberHit::pbckt [private]
 

Definition at line 58 of file UberHit.h.

Referenced by AddValues(), and Print().

UShort_t UberHit::plane [private]
 

Definition at line 44 of file UberHit.h.

Referenced by Print(), and SetPlaneStrip().

Float_t UberHit::pmip [private]
 

Definition at line 52 of file UberHit.h.

Referenced by AddValues(), and Print().

Float_t UberHit::pnpe [private]
 

Definition at line 50 of file UberHit.h.

Referenced by AddValues(), and Print().

Float_t UberHit::psiglin [private]
 

Definition at line 48 of file UberHit.h.

Referenced by AddValues(), and Print().

Float_t UberHit::ptime [private]
 

Definition at line 54 of file UberHit.h.

Referenced by AddValues(), and Print().

UShort_t UberHit::strip [private]
 

Definition at line 45 of file UberHit.h.

Referenced by Print(), and SetPlaneStrip().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:10:26 2010 for loon by  doxygen 1.3.9.1