UberCosmicHit Class Reference

#include <UberCosmicHit.h>

List of all members.

Public Member Functions

 UberCosmicHit ()
 ~UberCosmicHit ()
void SetPlaneStrip (UShort_t p, UShort_t s)
void AddValues (StripEnd::StripEnd_t se, Int_t adc, Float_t time, Int_t pmtagg)
void Print (Option_t *option="") const
UShort_t GetPlane () const
UShort_t GetStrip () const
Int_t GetPosADC () const
Int_t GetNegADC () const
Float_t GetPosTime () const
Float_t GetNegTime () const
Int_t GetPosPMTagg () const
Int_t GetNegPMTagg () const

Private Attributes

UShort_t plane
UShort_t strip
Int_t padc
Int_t nadc
Float_t ptime
Float_t ntime
Int_t pagg
Int_t nagg

Detailed Description

Definition at line 8 of file UberCosmicHit.h.

Constructor & Destructor Documentation

UberCosmicHit::UberCosmicHit (  ) 

Definition at line 11 of file UberCosmicHit.cxx.

References Msg::kDebug, and MSG.

00011                             :
00012   plane(0),
00013   strip(0),
00014   padc(0),
00015   nadc(0),
00016   ptime(0.),
00017   ntime(0.)
00018 {
00019   MSG("UberCosmicHit",Msg::kDebug)<<"In UberCosmicHit creator"<<endl;
00020 }//end UberCosmicHit(UShort_t, UShort_t)

UberCosmicHit::~UberCosmicHit (  ) 

Definition at line 22 of file UberCosmicHit.cxx.

00023 {}//end ~UberCosmicHit()

Member Function Documentation

void UberCosmicHit::AddValues ( StripEnd::StripEnd_t  se,
Int_t  adc,
Float_t  time,
Int_t  pmtagg 

Definition at line 32 of file UberCosmicHit.cxx.

References Msg::kDebug, StripEnd::kNegative, StripEnd::kPositive, Msg::kWarning, MSG, nadc, nagg, ntime, padc, pagg, and ptime.

Referenced by UberRecordLite::AddNextCosmicHitValues(), and UberEvent::AddNextCosmicHitValues().

00034 {//se is stripend, rest of parameters are obvious
00035   MSG("UberCosmicHit",Msg::kDebug)<<"In UberCosmicHit AddValues"<<endl;
00036   if(se==StripEnd::kPositive){ //if se==+, fill the p values
00037     padc = adc;
00038     ptime = time;
00039     pagg = pmtagg;
00040   }
00041   else if(se==StripEnd::kNegative){ //if se==-, fill n values
00042     nadc = adc;
00043     ntime = time;
00044     nagg = pmtagg;
00045   }
00046   else{//somethings gone wrong
00047     MSG("UberUberCosmicHit",Msg::kWarning)<<"Strip end unknown, not filling"<<endl;
00048   }
00050   return;
00051 }//end AddValues()

Int_t UberCosmicHit::GetNegADC (  )  const [inline]

Definition at line 50 of file UberCosmicHit.h.

References nadc.

00050 {return nadc;}

Int_t UberCosmicHit::GetNegPMTagg (  )  const [inline]

Definition at line 54 of file UberCosmicHit.h.

References nagg.

00054 {return nagg;}

Float_t UberCosmicHit::GetNegTime (  )  const [inline]

Definition at line 52 of file UberCosmicHit.h.

References ntime.

00052 {return ntime;}

UShort_t UberCosmicHit::GetPlane (  )  const [inline]

Definition at line 47 of file UberCosmicHit.h.

References plane.

00047 {return plane;}

Int_t UberCosmicHit::GetPosADC (  )  const [inline]

Definition at line 49 of file UberCosmicHit.h.

References padc.

00049 {return padc;}

Int_t UberCosmicHit::GetPosPMTagg (  )  const [inline]

Definition at line 53 of file UberCosmicHit.h.

References pagg.

00053 {return pagg;}

Float_t UberCosmicHit::GetPosTime (  )  const [inline]

Definition at line 51 of file UberCosmicHit.h.

References ptime.

00051 {return ptime;}

UShort_t UberCosmicHit::GetStrip (  )  const [inline]

Definition at line 48 of file UberCosmicHit.h.

References strip.

00048 {return strip;}

void UberCosmicHit::Print ( Option_t *  option = ""  )  const

Definition at line 53 of file UberCosmicHit.cxx.

References nadc, nagg, ntime, padc, pagg, plane, ptime, and strip.

00054 {
00055   cout<<"________________________________________________"<<endl;
00056   cout<<"Plane "<<plane<<" Strip "<<strip<<endl
00057       <<"Pos adc "<<padc<<" Neg adc "<<nadc<<endl
00058       <<"Pos time "<<ptime<<" Neg time "<<ntime<<endl
00059       <<"Pos agg "<<pagg<<" Neg agg "<<nagg<<endl;
00060 }//end Print()

void UberCosmicHit::SetPlaneStrip ( UShort_t  p,
UShort_t  s 

Definition at line 25 of file UberCosmicHit.cxx.

References plane, and strip.

Referenced by UberEvent::AddNextCosmicHit(), and UberRecordLite::AddNextCosmicHit().

00026 {
00027   plane = p;
00028   strip =s ;
00030 }//end SetPlaneStrip()

Member Data Documentation

Int_t UberCosmicHit::nadc [private]

Definition at line 38 of file UberCosmicHit.h.

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

Int_t UberCosmicHit::nagg [private]

Definition at line 42 of file UberCosmicHit.h.

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

Float_t UberCosmicHit::ntime [private]

Definition at line 40 of file UberCosmicHit.h.

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

Int_t UberCosmicHit::padc [private]

Definition at line 37 of file UberCosmicHit.h.

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

Int_t UberCosmicHit::pagg [private]

Definition at line 41 of file UberCosmicHit.h.

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

UShort_t UberCosmicHit::plane [private]

Definition at line 35 of file UberCosmicHit.h.

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

Float_t UberCosmicHit::ptime [private]

Definition at line 39 of file UberCosmicHit.h.

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

UShort_t UberCosmicHit::strip [private]

Definition at line 36 of file UberCosmicHit.h.

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

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

Generated on 8 Jul 2019 for loon by  doxygen 1.6.1