00001 #include "TObject.h"
00002 #include "MessageService/MsgService.h"
00003 #include "CalDetDST/UberMCHit.h"
00004
00005 ClassImp(UberMCHit)
00006
00007 CVSID("$Id: UberMCHit.cxx,v 1.3 2003/07/10 19:40:43 rhatcher Exp $");
00008 using namespace std;
00009
00010
00011 UberMCHit::UberMCHit():
00012 plane(0),
00013 strip(0),
00014 hitbit(0),
00015 edeptrue(0.),
00016 tpos(0.),
00017 praw(0.),
00018 nraw(0.),
00019 pcorr(0.),
00020 ncorr(0.),
00021 ptdc(0.),
00022 ntdc(0.),
00023 pdist(0.),
00024 ndist(0.)
00025
00026 {
00027 MSG("UberMCHit",Msg::kDebug)<<"In UberMCHit creator"<<endl;
00028 }
00029
00030 UberMCHit::~UberMCHit()
00031 {}
00032
00033 void UberMCHit::SetPlaneStrip(UShort_t p, UShort_t s)
00034 {
00035 plane = p;
00036 strip =s ;
00037
00038 }
00039
00040 void UberMCHit::AddValues(Int_t hb, Float_t edep, Float_t tps, Float_t pr,
00041 Float_t nr, Float_t pc, Float_t nc, Float_t pt,
00042 Float_t nt, Float_t pd, Float_t nd)
00043 {
00044 hitbit = hb;
00045 edeptrue = edep;
00046 tpos =tps;
00047 praw = pr;
00048 nraw = nr;
00049 pcorr = pc;
00050 ncorr = nc;
00051 ptdc = pt;
00052 ntdc = nt;
00053 pdist = pd;
00054 ndist = nd;
00055
00056
00057 return;
00058 }
00059
00060 void UberMCHit::Print(Option_t* ) const
00061 {
00062 cout<<"________________________________________________"<<endl;
00063 cout<<"Plane "<<plane<<" Strip "<<strip<<endl
00064 <<"Hitbit "<<hitbit<<" True Energy Deposit "<<edeptrue
00065 <<" Transverse position "<<tpos<<endl
00066 <<"Raw pe pos "<<praw<<" Raw pe neg "<<nraw<<endl
00067 <<"Atten. corrected pe pos "<<pcorr<<" Atten. corrected pe neg "<<ncorr<<endl
00068 <<"Time pos. "<<ptdc<<" Time neg. "<<ntdc<<endl
00069 <<"Energy weighted distance to pos. "<<pdist
00070 <<" Energy weighted distance to neg. "<<ndist<<endl;
00071 }
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095