#include "BrDetectorParamsDC.h"
ClassImp(BrDetectorParamsDC)
////////////////////////////////////////////////////////////
//
// TBrDetectorParams is a BRAHMS data class for DC Parameters
//
////////////////////////////////////////////////////////////
BrDetectorParamsDC::BrDetectorParamsDC()
{
// Constructor. Set counter and list data members to zero.
// Don't use this constructor unless you have to and know
// what you are doing
// Use TBrDetectorParams(Int_t run, Int_t event) instead
}
BrDetectorParamsDC::BrDetectorParamsDC(Char_t *name, Char_t *title)
: TNamed(name,title)
{
SetDefaultParams();
fDCPlaneList = new TObjArray();
}
BrDetectorParamsDC::~BrDetectorParamsDC()
{
int ijk = 1;
}
void BrDetectorParamsDC::SetDefaultParams()
{
fTwoPar = (Float_t)0.20;
fEff = (Float_t)0.95;
fDriftv = (Float_t)0.0052;
fPldis = (Float_t)1.0;
fNplane = 0;
fPosres = (Float_t)0.025;
}
void BrDetectorParamsDC::ListParameters()
{
printf("DC Parameters: The name is %sn",GetName());
printf("Efficiency is %f, two particle resolution is %fn",fEff,fTwoPar);
}
void BrDetectorParamsDC::AddPlane(BrDCPlane* plane)
{
if(!fDCPlaneList)
fDCPlaneList = new TObjArray();
fDCPlaneList->Add(plane);
}
/*TBrDCPlane* TBrDetectorParamsDC::GetPlaneAt(Int_t i)
{
return (TBrDCPlane*)fDCPlaneList->At(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.