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 }
00021
00022 UberCosmicHit::~UberCosmicHit()
00023 {}
00024
00025 void UberCosmicHit::SetPlaneStrip(UShort_t p, UShort_t s)
00026 {
00027 plane = p;
00028 strip =s ;
00029
00030 }
00031
00032 void UberCosmicHit::AddValues(StripEnd::StripEnd_t se,
00033 Int_t adc, Float_t time, Int_t pmtagg)
00034 {
00035 MSG("UberCosmicHit",Msg::kDebug)<<"In UberCosmicHit AddValues"<<endl;
00036 if(se==StripEnd::kPositive){
00037 padc = adc;
00038 ptime = time;
00039 pagg = pmtagg;
00040 }
00041 else if(se==StripEnd::kNegative){
00042 nadc = adc;
00043 ntime = time;
00044 nagg = pmtagg;
00045 }
00046 else{
00047 MSG("UberUberCosmicHit",Msg::kWarning)<<"Strip end unknown, not filling"<<endl;
00048 }
00049
00050 return;
00051 }
00052
00053 void UberCosmicHit::Print(Option_t* ) 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 }
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070