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

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
const UShort_t GetPlane () const
const UShort_t GetStrip () const
const Int_t GetPosADC () const
const Int_t GetNegADC () const
const Float_t GetPosTime () const
const Float_t GetNegTime () const
const Int_t GetPosPMTagg () const
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


Constructor & Destructor Documentation

UberCosmicHit::UberCosmicHit  ) 
 

Definition at line 11 of file UberCosmicHit.cxx.

References 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, 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   }
00049 
00050   return;
00051 }//end AddValues()

const Int_t UberCosmicHit::GetNegADC  )  const [inline]
 

Definition at line 50 of file UberCosmicHit.h.

00050 {return nadc;}

const Int_t UberCosmicHit::GetNegPMTagg  )  const [inline]
 

Definition at line 54 of file UberCosmicHit.h.

00054 {return nagg;}

const Float_t UberCosmicHit::GetNegTime  )  const [inline]
 

Definition at line 52 of file UberCosmicHit.h.

00052 {return ntime;}

const UShort_t UberCosmicHit::GetPlane  )  const [inline]
 

Definition at line 47 of file UberCosmicHit.h.

00047 {return plane;}

const Int_t UberCosmicHit::GetPosADC  )  const [inline]
 

Definition at line 49 of file UberCosmicHit.h.

00049 {return padc;}

const Int_t UberCosmicHit::GetPosPMTagg  )  const [inline]
 

Definition at line 53 of file UberCosmicHit.h.

00053 {return pagg;}

const Float_t UberCosmicHit::GetPosTime  )  const [inline]
 

Definition at line 51 of file UberCosmicHit.h.

00051 {return ptime;}

const UShort_t UberCosmicHit::GetStrip  )  const [inline]
 

Definition at line 48 of file UberCosmicHit.h.

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 UberRecordLite::AddNextCosmicHit(), and UberEvent::AddNextCosmicHit().

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


Member Data Documentation

Int_t UberCosmicHit::nadc [private]
 

Definition at line 38 of file UberCosmicHit.h.

Referenced by AddValues(), and Print().

Int_t UberCosmicHit::nagg [private]
 

Definition at line 42 of file UberCosmicHit.h.

Referenced by AddValues(), and Print().

Float_t UberCosmicHit::ntime [private]
 

Definition at line 40 of file UberCosmicHit.h.

Referenced by AddValues(), and Print().

Int_t UberCosmicHit::padc [private]
 

Definition at line 37 of file UberCosmicHit.h.

Referenced by AddValues(), and Print().

Int_t UberCosmicHit::pagg [private]
 

Definition at line 41 of file UberCosmicHit.h.

Referenced by AddValues(), and Print().

UShort_t UberCosmicHit::plane [private]
 

Definition at line 35 of file UberCosmicHit.h.

Referenced by Print(), and SetPlaneStrip().

Float_t UberCosmicHit::ptime [private]
 

Definition at line 39 of file UberCosmicHit.h.

Referenced by AddValues(), and Print().

UShort_t UberCosmicHit::strip [private]
 

Definition at line 36 of file UberCosmicHit.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