#include <iostream.h>
#include "BrDetectorParamsTPC.h"
ClassImp(BrDetectorParamsTPC)
////////////////////////////////////////////////////////////
//
// BrDetectorParamsTPC is a BRAHMS data class providing storage and
// access function for TPC specific digitasation parameters.
// This allows modification of the BrDetectorParams content by the
// user.
//
////////////////////////////////////////////////////////////
BrDetectorParamsTPC::BrDetectorParamsTPC()
{
// 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 BrDetectorParams(Char_t, Char_t ) instead
}
BrDetectorParamsTPC::BrDetectorParamsTPC(Char_t *name, Char_t *title)
: TNamed(name,title)
{
SetDefaultParams();
}
BrDetectorParamsTPC::~BrDetectorParamsTPC()
{
}
void BrDetectorParamsTPC::SetDefaultParams()
{
// A set of reosnable parameters for TPC digitization routines
// are being set. Called by the constructor. The parameters here
// correspond to T1 in the forward spectrometer
//
fTwoPar = (Float_t)0.80;
fDlong = (Float_t)0.04;
fDtrans = (Float_t)0.05;
fEff = (Float_t)0.97;
fDriftv = (Float_t)0.0018;
fRowDistance = (Float_t)4.0;
fNumberOfRows = 14;
fPadsprow = 96;
fPadDistance = (Float_t).35;
fPadWidth = (Float_t).30;
fPadLength = (Float_t)2.75;
fAnodeGap = (Float_t)0.3;
fTimeBucket = (Float_t)80.0;
fShapingTime = (Float_t)180.0;
fADCGain = (Float_t)2.0;
fADCChannels = 512;
}
void BrDetectorParamsTPC::ListParameters() const
{
//
// List the current setting on cout
//
cout << "**TPC Parameters for : " << GetName();
cout.width(12);
cout << "nSimulation Parameters";
cout.width(12);
cout << "n Two Particle Resolution " << fTwoPar << " (cm)";
cout.width(12);
cout << "n D(Longitudinal) " << fDlong << " (cm)";
cout.width(12);
cout << "n D(Transverse) " << fDtrans << " (cm)";
cout.width(12);
cout << "n Effenciency " << fEff;
cout << "n AnodeGap " << fAnodeGap << " (cm)";
cout << "nGas and Readout Parameters";
cout << "n Drift Velocity " << fDriftv << " (micron/ nsec)";
cout << "n Bucket Size " << fTimeBucket << " (nsec)";
cout << "n Shaping time " << fShapingTime << " (nsec)";
cout << "n ADC relative Gain " << fADCGain ;
cout << "n ADC relative Channels " << fADCChannels ;
cout << "nGeometry Parameters";
cout << "n Row Distance " << fRowDistance << " (cm)";
cout << "n Number of Rows " << fNumberOfRows;
cout << "n Pads per row " << fPadsprow ;
cout << "n Pad Pitch " << fPadDistance << " (cm)";
cout << "n Pad Width " << fPadWidth << " (cm)";
cout << "n Pad Length " << fPadLength << " (cm)";
cout << endl;
}
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.