#include "LCDBeam.h"

//
// LCDBeam.cxx
//
// Aug 22 2000 M. Iwasaki V0.0  Create LCDBeam. Copied from SLD's PHBM. 
//

ClassImp(LCDBeam)

const Int_t LCDBeam::CONV  = 1; //Converged Fit
const Int_t LCDBeam::UNCONV= 2; //Unconverged
const Int_t LCDBeam::FAIL  =12; //Failure on Entry
const Int_t LCDBeam::NOTYET=-1; //Not Decided

//__________________________________________________________________________
 LCDBeam::LCDBeam():
  m_Ecm(500.0), m_dEcm(0.0), m_Pol(0.0), m_dPol(0.0), m_pdTime(0.0),
  m_rmsPri(0.0)
{ // This is the default constructor.

  //  TVector3 m_Pos(0., 0., 0.);
  for (Int_t i=0; i<6; i++) { m_dPos[i] = 0.; }

  //  TVector3 m_xyzPri(0., 0., 0.);
  for (Int_t j=0; j<6; j++) { m_dxyzPri[j] = 0.; }

  SetRtrnPri(LCDBeam::NOTYET);
}
//__________________________________________________________________________

//__________________________________________________________________________
 LCDBeam::~LCDBeam(){
}
//_________________________________________________________________________

//__________________________________________________________________________
 void LCDBeam::SetEcm(Double_t Ecm) {
  SetEcm(Ecm, 0.0);
}
//__________________________________________________________________________

//__________________________________________________________________________
 void LCDBeam::SetEcm(Double_t Ecm, Double_t dEcm){
  m_Ecm = Ecm;   m_dEcm = dEcm;
}
//_________________________________________________________________________

//__________________________________________________________________________
 void LCDBeam::SetdPos(Double_t* dpos){
  for (Int_t i=0; i<6; i++) { m_dPos[i] = dpos[i]; }
}
//_________________________________________________________________________

//__________________________________________________________________________
 void LCDBeam::SetPol(Double_t pol){
  SetPol(pol, 0.0);
}
//__________________________________________________________________________

//__________________________________________________________________________
 void LCDBeam::SetPol(Double_t pol, Double_t dpol){
  m_Pol = pol;  m_dPol = dpol;
}
//_________________________________________________________________________

//__________________________________________________________________________
 void LCDBeam::SetdxyzPri(Double_t* dxyzPri){
  for (Int_t i=0; i<6; i++) { m_dxyzPri[i] = dxyzPri[i]; }
}
//__________________________________________________________________________










ROOT page - Class index - Top of the page

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.