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
UShort_t GetPlane () const
UShort_t GetStrip () const
Int_t GetPosADC () const
Int_t GetNegADC () const
Float_t GetPosSigLin () const
Float_t GetNegSigLin () const
Float_t GetPosNPE () const
Float_t GetNegNPE () const
Float_t GetPosMIP () const
Float_t GetNegMIP () const
Float_t GetPosTime () const
Float_t GetNegTime () const
Int_t GetPosPMTagg () const
Int_t GetNegPMTagg () const
UInt_t GetPosBckt () const
UInt_t GetNegBckt () const

Static Public Member Functions

static 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

static Int_t nuberhit = 0

Detailed Description

Definition at line 8 of file UberHit.h.


Constructor & Destructor Documentation

UberHit::UberHit (  ) 

Definition at line 11 of file UberHit.cxx.

References Msg::kDebug, and 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::kDebug, StripEnd::kNegative, StripEnd::kPositive, Msg::kWarning, MSG, nadc, nagg, nbckt, nmip, nnpe, nsiglin, ntime, padc, pagg, pbckt, pmip, pnpe, psiglin, and ptime.

Referenced by UberRecordLite::AddNextHitValues(), UberEvent::AddNextHitValues(), and UberRecord::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()

Int_t UberHit::GetNegADC (  )  const [inline]

Definition at line 70 of file UberHit.h.

References nadc.

Referenced by CalDet2003PlotsModule::Ana().

00070 {return nadc;}

UInt_t UberHit::GetNegBckt (  )  const [inline]

Definition at line 82 of file UberHit.h.

References nbckt.

00082 {return nbckt;}

Float_t UberHit::GetNegMIP (  )  const [inline]

Definition at line 76 of file UberHit.h.

References nmip.

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

00076 {return nmip;}

Float_t UberHit::GetNegNPE (  )  const [inline]

Definition at line 74 of file UberHit.h.

References nnpe.

Referenced by UberPlotsModule::Ana().

00074 {return nnpe;}

Int_t UberHit::GetNegPMTagg (  )  const [inline]

Definition at line 80 of file UberHit.h.

References nagg.

00080 {return nagg;}

Float_t UberHit::GetNegSigLin (  )  const [inline]

Definition at line 71 of file UberHit.h.

References nsiglin.

00071 {return nsiglin;}

Float_t UberHit::GetNegTime (  )  const [inline]

Definition at line 78 of file UberHit.h.

References ntime.

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

00078 {return ntime;}

static Int_t UberHit::GetNUberHit (  )  [inline, static]

Definition at line 63 of file UberHit.h.

References nuberhit.

00063 {return nuberhit;}

UShort_t UberHit::GetPlane (  )  const [inline]

Definition at line 67 of file UberHit.h.

References plane.

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

00067 {return plane;}

Int_t UberHit::GetPosADC (  )  const [inline]

Definition at line 69 of file UberHit.h.

References padc.

Referenced by CalDet2003PlotsModule::Ana().

00069 {return padc;}

UInt_t UberHit::GetPosBckt (  )  const [inline]

Definition at line 81 of file UberHit.h.

References pbckt.

00081 {return pbckt;}

Float_t UberHit::GetPosMIP (  )  const [inline]

Definition at line 75 of file UberHit.h.

References pmip.

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

00075 {return pmip;}

Float_t UberHit::GetPosNPE (  )  const [inline]

Definition at line 73 of file UberHit.h.

References pnpe.

Referenced by UberPlotsModule::Ana().

00073 {return pnpe;}

Int_t UberHit::GetPosPMTagg (  )  const [inline]

Definition at line 79 of file UberHit.h.

References pagg.

00079 {return pagg;}

Float_t UberHit::GetPosSigLin (  )  const [inline]

Definition at line 72 of file UberHit.h.

References psiglin.

00072 {return psiglin;}

Float_t UberHit::GetPosTime (  )  const [inline]

Definition at line 77 of file UberHit.h.

References ptime.

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

00077 {return ptime;}

UShort_t UberHit::GetStrip (  )  const [inline]

Definition at line 68 of file UberHit.h.

References strip.

Referenced by CalDet2003PlotsModule::Ana(), UberPlotsModule::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 UberRecord::Print(), UberRecordLite::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(), UberEvent::AddNextHit(), and UberRecord::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(), GetNegADC(), and Print().

Int_t UberHit::nagg [private]

Definition at line 57 of file UberHit.h.

Referenced by AddValues(), GetNegPMTagg(), and Print().

UInt_t UberHit::nbckt [private]

Definition at line 59 of file UberHit.h.

Referenced by AddValues(), GetNegBckt(), and Print().

Float_t UberHit::nmip [private]

Definition at line 53 of file UberHit.h.

Referenced by AddValues(), GetNegMIP(), and Print().

Float_t UberHit::nnpe [private]

Definition at line 51 of file UberHit.h.

Referenced by AddValues(), GetNegNPE(), and Print().

Float_t UberHit::nsiglin [private]

Definition at line 49 of file UberHit.h.

Referenced by AddValues(), GetNegSigLin(), and Print().

Float_t UberHit::ntime [private]

Definition at line 55 of file UberHit.h.

Referenced by AddValues(), GetNegTime(), and Print().

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

Definition at line 61 of file UberHit.h.

Referenced by GetNUberHit(), and ~UberHit().

Int_t UberHit::padc [private]

Definition at line 46 of file UberHit.h.

Referenced by AddValues(), GetPosADC(), and Print().

Int_t UberHit::pagg [private]

Definition at line 56 of file UberHit.h.

Referenced by AddValues(), GetPosPMTagg(), and Print().

UInt_t UberHit::pbckt [private]

Definition at line 58 of file UberHit.h.

Referenced by AddValues(), GetPosBckt(), and Print().

UShort_t UberHit::plane [private]

Definition at line 44 of file UberHit.h.

Referenced by GetPlane(), Print(), and SetPlaneStrip().

Float_t UberHit::pmip [private]

Definition at line 52 of file UberHit.h.

Referenced by AddValues(), GetPosMIP(), and Print().

Float_t UberHit::pnpe [private]

Definition at line 50 of file UberHit.h.

Referenced by AddValues(), GetPosNPE(), and Print().

Float_t UberHit::psiglin [private]

Definition at line 48 of file UberHit.h.

Referenced by AddValues(), GetPosSigLin(), and Print().

Float_t UberHit::ptime [private]

Definition at line 54 of file UberHit.h.

Referenced by AddValues(), GetPosTime(), and Print().

UShort_t UberHit::strip [private]

Definition at line 45 of file UberHit.h.

Referenced by GetStrip(), Print(), and SetPlaneStrip().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1