#include <iostream.h>
#include "BrDetectorParamsTof.h"
ClassImp(BrDetectorParamsTof)
////////////////////////////////////////////////////////////
//
// BrDetectorParamsTOF is a BRAHMS data class providing storage and
// access function for TOF specific digitasation parameters.
// This allows modification of the BrDetectorParams content by the
// user.
//
////////////////////////////////////////////////////////////
BrDetectorParamsTof::BrDetectorParamsTof()
{
// 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
}
BrDetectorParamsTof::BrDetectorParamsTof(Char_t *name, Char_t *title)
{
// Standard constructor.
// the name should be that of the associated detector e.g. "H1"
SetDefaultParams();
}
BrDetectorParamsTof::~BrDetectorParamsTof()
{
}
void BrDetectorParamsTof::SetDefaultParams()
{
// Set a set of reasonable default parameters.
// This is mainly to ensure that the private members are
// initialized with values that do not give rise to any
// problems in the methods which uses these parameters;
//
fADCGainUp = 400.; // 1 Mip == channel 400
fADCGainDown = 400; // 1 Mip == channel 400
fSigmaTime = .080; // 80 psec
fSigmaAdc = .020; // dAdc/Adc == 20%
fTdcConv = 0.025; // 25 pico seconds per channel (Philips 7681)
fTdcOffset = 10; // channel number for t0
fNoSlats = 40; // Number of slats for this detector.
fMeVperMIP = 1.3;
fAttLength = 80.0;
fSignalSpeed = 0.050; // 50 psec/cm <==> 1 nsec==20cm.
fNoSlats = 40; // Number of slats for this detector.
fScintLength = 20.0; //
}
void BrDetectorParamsTof::ListParameters() const
{
printf("**Tof Parameter Listing; The Detector name is %sn",GetName());
cout << "ADC relative Gain Up " << fADCGainUp << " Channels per MIP" << endl;
cout << "ADC relative Gain Down " << fADCGainDown << " Channels per MIP" << 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.