Esempio n. 1
0
KVSeDPositionCal::KVSeDPositionCal(KVDetector *det) : KVCalibrator(NPAR_SEDPOSCAL)
{
    //Create a position calibration object for a specific detector (*det).
    //The calibrator takes the name of the detector.
   SetDetector( det );
   SetName( det->GetName() );
   SetType(Form("position->cm %s",GetName()));
   SetLabel("XY");
}
Esempio n. 2
0
//___________________________________________________________________________
KVChannelVolt::KVChannelVolt(const Char_t* signal, KVDetector* kvd): KVCalibrator
   (3)
{
   //Create an electronic calibration object for a specific detector (*kvd)
   //specifying the signal type ("PG" - petit "low" gain - or "GG" - grand "high" gain)
   SetType("Channel-Volt");
   SetDetector(kvd);
   SetSignal(signal);
   SetGainRef(1);
}
Esempio n. 3
0
//------------------------------
KVFunctionCal::KVFunctionCal(KVDetector* kvd, TF1* ff): KVCalibrator(ff->GetNpar())
//------------------------------
{
   // Constructor of KVCalibrator in used
   // Initialisation of the calibration function fcalibfunction
   // and link with the KVDetector is done
   init();
   SetDetector(kvd);
   fcalibfunction = ff;
   SetParametersWithFunction();

}
Esempio n. 4
0
//------------------------------
KVFunctionCal::KVFunctionCal(KVDBParameterSet* kvdbps): KVCalibrator()
//------------------------------
{
   // Specific constructor using a KVDBParameterSet*
   // From where all information on the calibration function, the detector and type of signal
   // are specified (for more details see KVINDRAUpDater_e475s::SetCalibParameters(KVDBRun* kvrun))
   init();

   fcalibfunction = new TF1(kvdbps->GetName(), kvdbps->GetParamName(0));
   for (Int_t pp = 0; pp < fcalibfunction->GetNpar(); pp += 1) {
      fcalibfunction->SetParameter(pp, kvdbps->GetParameter(pp + 1));
   }
   fcalibfunction->SetRange(kvdbps->GetParameter(kvdbps->GetParamIndex("xmin")), kvdbps->GetParameter(kvdbps->GetParamIndex("xmax")));

   SetType(kvdbps->GetTitle());
   SetDetector(gMultiDetArray->GetDetector(kvdbps->GetName()));

   SetNumberParams(fcalibfunction->GetNpar());
   SetParametersWithFunction();

}
Esempio n. 5
0
KVPulseHeightDefect::KVPulseHeightDefect(KVDetector*d):KVCalibrator(4)
{
   //Associate PHD calculation to detector
   init();
   SetDetector(d);
}
Esempio n. 6
0
KVRecombination::KVRecombination(KVDetector *d) : KVCalibrator(1){
   	//Associate PHD calculation to detector
   	init();
   	SetDetector(d);
}