////////////////////////////////////////////////////////////////////////
// Package: CandTrackCam
//
// CandTrackCam - HitCam.cxx
//
// marshall@hep.phy.cam.ac.uk
////////////////////////////////////////////////////////////////////////

#include "HitCam.h"
#include "Validity/VldContext.h"

ClassImp(HitCam)
  
  //CVSID("$Id: HitCam.cxx,v 1.1 2006/04/10 17:04:24 marshall Exp $");

////////////////////////////////////////////////////////////////////////
HitCam::HitCam(CandStripHandle* strip) :
   fStrip(0), fUid(0), 
   fPlaneView(-1), fStripNum(-1), fTime(-999.), fTrackFlag(0), 
   fCharge(0.), fPlane(-1), fTPos(-1), fZPos(-1)
{
  if(strip) {
    fStrip=strip;
    fTime=1.0e9*strip->GetTime();
    fStripNum = strip->GetStrip();
    fCharge = strip->GetCharge();
    fPlane = strip->GetPlane();
    fTPos = strip->GetTPos();
    fZPos = strip->GetZPos();
    
    if( strip->GetPlaneView()==PlaneView::kU
	|| strip->GetPlaneView()==PlaneView::kX
	|| strip->GetPlaneView()==PlaneView::kA ) {fPlaneView=0;}
    if( strip->GetPlaneView()==PlaneView::kV
	|| strip->GetPlaneView()==PlaneView::kY
	|| strip->GetPlaneView()==PlaneView::kB ) {fPlaneView=1;}
  }
  
}
////////////////////////////////////////////////////////////////////////


////////////////////////////////////////////////////////////////////////
HitCam::~HitCam()
{
}
////////////////////////////////////////////////////////////////////////


////////////////////////////////////////////////////////////////////////

