#include "THaRasteredBeam.h"
#include "THaRaster.h"
#include "TMath.h"
#include "TDatime.h"
#include "TList.h"
#include "VarDef.h"
ClassImp(THaRasteredBeam)
THaRasteredBeam::THaRasteredBeam( const char* name, const char* description ) :
THaBeam( name, description )
{
AddDetector( new THaRaster("Raster","raster",this) );
}
Int_t THaRasteredBeam::Reconstruct()
{
TIter nextDet( fDetectors );
nextDet.Reset();
if (THaBeamDet* theBeamDet=
static_cast<THaBeamDet*>( nextDet() )) {
theBeamDet->Process();
fPosition = theBeamDet->GetPosition();
fDirection = theBeamDet->GetDirection();
}
else {
Error( Here("Reconstruct"),
"Beamline Detectors Missing in Detector List" );
}
while (THaBeamDet * theBeamDet=
static_cast<THaBeamDet*>( nextDet() )) {
theBeamDet->Process();
}
Update();
return 0;
}
Last change: Sat Nov 7 21:26:50 2009
Last generated: 2009-11-07 21:26
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.