Skip to content
Snippets Groups Projects
Commit cb195176 authored by Stephen Wood's avatar Stephen Wood
Browse files

Merge pull request #51 from sawjlab/rasterfix

Fix imac compile errors and runtime raster warnings
parents 8304c8de b94fcbe8
No related branches found
No related tags found
No related merge requests found
......@@ -58,8 +58,8 @@ THcRaster::THcRaster( const char* name, const char* description,
//_____________________________________________________________________________
THcRaster::~THcRaster()
{
delete [] fPedADC;
delete [] fAvgPedADC;
// delete [] fPedADC;
// delete [] fAvgPedADC;
}
......@@ -311,6 +311,8 @@ Int_t THcRaster::Process( ){
fYpos = (fYADC/fFrYADCperCM)*(fFrCalMom/eBeam);
// std::cout<<" X = "<<fXpos<<" Y = "<<fYpos<<std::endl;
fDirection.SetXYZ(0.0,0.0,1.0); // Set arbitrarily to avoid run time warnings
return 0;
}
......
......@@ -27,7 +27,8 @@ class THcRaster : public THaBeamDet, public THcHitList {
Int_t Decode( const THaEvData& );
Int_t Process();
TVector3 GetPosition() const { return fPosition[2]; }
// TVector3 GetPosition() const { return fPosition[2]; }
TVector3 GetPosition() const { return fPosition[0]; }
TVector3 GetDirection() const { return fDirection; } // Hall C we don't use raster direction yet.
Double_t GetCurrentX() { return fRawPos[0]; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment