Esempio n. 1
0
void KVHarpeeSi::SetCalibrators()
{
   // Pulse Height Defect calibrator as well as the calibrators of
   // KVVAMOSDetector.

   KVVAMOSDetector::SetCalibrators();

   // Set PHD calibrator only if the detector has an acq. parameter
   // with type 'E'
   TObject* par = GetACQParamList()->FindObjectByType("E");
   if (!par) return;

   TString type("channel->MeV ");
   type.Append(par->GetName());
   fCanalE = (KVFunctionCal*)GetCalibrator(type.Data());

   if (!fCanalE) Error("SetCalibrators", "channel->MeV calibrator not found");

   KVRecombination* c = new KVRecombination(this);
   type = c->GetType();
   type.Append(" ");
   type.Append(par->GetName());
   c->SetType(type.Data());
   if (!AddCalibrator(c)) delete c;

   fPHD = (KVRecombination*)GetCalibrator(type.Data());
}
Esempio n. 2
0
void KVSiB::SetCalibrators()
{
   //Adds linear calibration for E channel
   KVLinCal* cal = new KVLinCal(this);
   cal->SetChannelParameter("E");
   cal->WithPedestalCorrection(kFALSE);
   if (!AddCalibrator(cal)) delete cal;
   fLinCal = (KVLinCal*)GetCalibrator("Linear calibration E");
   KVCalibrator* c = new KVPulseHeightDefect(this);
   if (!AddCalibrator(c)) delete c;
   fPHD  = (KVPulseHeightDefect*) GetCalibrator("Pulse Height Defect");
}
Esempio n. 3
0
void KVChIo::SetCalibrators()
{
    //Set up calibrators for this detector. Call once name has been set.
    KVCalibrator*c=new KVChannelVolt("GG", this);
    if(!AddCalibrator(c)) delete c;
    c=new KVChannelVolt("PG", this);
    if(!AddCalibrator(c)) delete c;
    c=new KVVoltEnergy(this);
    if(!AddCalibrator(c)) delete c;
    fVoltE = (KVVoltEnergy *) GetCalibrator("Volt-Energy");
    fChVoltPG  =  (KVChannelVolt *) GetCalibrator("Channel-Volt PG");
    fChVoltGG  =  (KVChannelVolt *) GetCalibrator("Channel-Volt GG");
}
Esempio n. 4
0
void KVSiB::Streamer(TBuffer& R__b)
{
   // Stream an object of class KVSiB.
   // We set the pointers to the calibrator objects
   // We add the linear calibrator if it is missing

   if (R__b.IsReading()) {
      KVSiB::Class()->ReadBuffer(R__b, this);
      fLinCal = (KVLinCal*)GetCalibrator("Linear calibration E");
      fPHD  = (KVPulseHeightDefect*) GetCalibrator("Pulse Height Defect");
   } else {
      KVSiB::Class()->WriteBuffer(R__b, this);
   }
}
Esempio n. 5
0
void KVChIo::Streamer(TBuffer &R__b)
{
    // Stream an object of class KVChIo.
    // We set the pointers to the calibrator objects

    if (R__b.IsReading()) {
        KVChIo::Class()->ReadBuffer(R__b, this);
        fVoltE = (KVVoltEnergy *) GetCalibrator("Volt-Energy");
        fChVoltPG  =  (KVChannelVolt *) GetCalibrator("Channel-Volt PG");
        fChVoltGG  =  (KVChannelVolt *) GetCalibrator("Channel-Volt GG");
    } else {
        KVChIo::Class()->WriteBuffer(R__b, this);
    }
}
Esempio n. 6
0
void KVCsI_e475s::Streamer(TBuffer& R__b)
{
   // Stream an object of class KVCsI.
   // We set the pointers to the calibrator objects

   if (R__b.IsReading()) {
      KVCsI_e475s::Class()->ReadBuffer(R__b, this);
      fcalibLT  = (KVFunctionCal*)GetCalibrator("Channel->MeV(LT)");
      //printf("")
   } else {
      KVCsI_e475s::Class()->WriteBuffer(R__b, this);
   }
}