00001
00002
00003
00004
00005
00006
00008
00009 #include "HitCam.h"
00010 #include "Validity/VldContext.h"
00011
00012 ClassImp(HitCam)
00013
00014
00015
00016
00017 HitCam::HitCam(CandStripHandle* strip) :
00018 fStrip(0), fUid(0),
00019 fPlaneView(-1), fStripNum(-1), fTime(-999.), fTrackFlag(0),
00020 fCharge(0.), fPlane(-1), fTPos(-1), fZPos(-1)
00021 {
00022 if(strip) {
00023 fStrip=strip;
00024 fTime=1.0e9*strip->GetTime();
00025 fStripNum = strip->GetStrip();
00026 fCharge = strip->GetCharge();
00027 fPlane = strip->GetPlane();
00028 fTPos = strip->GetTPos();
00029 fZPos = strip->GetZPos();
00030
00031 if( strip->GetPlaneView()==PlaneView::kU
00032 || strip->GetPlaneView()==PlaneView::kX
00033 || strip->GetPlaneView()==PlaneView::kA ) {fPlaneView=0;}
00034 if( strip->GetPlaneView()==PlaneView::kV
00035 || strip->GetPlaneView()==PlaneView::kY
00036 || strip->GetPlaneView()==PlaneView::kB ) {fPlaneView=1;}
00037 }
00038
00039 }
00041
00042
00044 HitCam::~HitCam()
00045 {
00046 }
00048
00049
00051