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

UberCosmicHit.cxx

Go to the documentation of this file.
00001 #include "TObject.h"
00002 #include "MessageService/MsgService.h"
00003 #include "CalDetDST/UberCosmicHit.h"
00004 
00005 ClassImp(UberCosmicHit)
00006 
00007   CVSID("$Id: UberCosmicHit.cxx,v 1.4 2003/09/03 09:06:19 vahle Exp $");
00008 using namespace std;
00009 
00010 //_______________________________________________________________________________
00011 UberCosmicHit::UberCosmicHit():
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)
00021 //_______________________________________________________________________________
00022 UberCosmicHit::~UberCosmicHit()
00023 {}//end ~UberCosmicHit()
00024 //_______________________________________________________________________________
00025 void UberCosmicHit::SetPlaneStrip(UShort_t p, UShort_t s)
00026 {
00027   plane = p;
00028   strip =s ;
00029   
00030 }//end SetPlaneStrip()
00031 //_______________________________________________________________________________
00032 void UberCosmicHit::AddValues(StripEnd::StripEnd_t se, 
00033                         Int_t adc, Float_t time, Int_t pmtagg)
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()
00052 //_______________________________________________________________________________
00053 void UberCosmicHit::Print(Option_t* /* option */) const
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()
00061 //_______________________________________________________________________________
00062 
00063 
00064 
00065 
00066 
00067 
00068 
00069 
00070 

Generated on Mon Feb 15 11:07:47 2010 for loon by  doxygen 1.3.9.1