110 else cout <<
"IceCalibrate::SetOMdbase Unknown database: " << name.Data() << endl;
126 name=gSystem->ExpandPathName(name.Data());
150 NcJob* parent=(
NcJob*)(gROOT->GetListOfTasks()->FindObject(name.Data()));
161 if (seldev->
GetSignal(
"Select") < 0.1)
return;
174 params.SetNameTitle(
"IceCalibrate",
"IceCalibrate processor parameters");
190 Int_t nmods=mods->GetEntries();
196 Float_t adc=0,le=0,tot=0;
197 Float_t cadc=0,cle=0,ctot=0;
202 for (Int_t imod=0; imod<nmods; imod++)
204 ome=(
IceGOM*)mods->At(imod);
207 id=ome->GetUniqueID();
212 if(ome->InheritsFrom(
"IceAOM")){
218 if(ome->InheritsFrom(
"IceDOM")){
226 for (Int_t ind=1; ind<=omd->
GetNnames(); ind++)
231 for (Int_t isd=1; isd<=omd->
GetNvalues(); isd++)
243 for (Int_t ithit=1; ithit<=ome->
GetNhits(); ithit++)
259 cadc=fcal->Eval(adc);
286 if (fcal) fcal->SetParameter(3,adc);
287 if (fdecal) fdecal->SetParameter(3,adc);
291 if (fcal) fcal->SetParameter(3,1.e20);
292 if (fdecal) fdecal->SetParameter(3,1.e20);
327 ctot=fcal->Eval(tot);
TTask derived class to perform the various calibrations.
void SetOMdbase(NcObjMatrix *omdb, TString name="MuDaq")
void SetCalibFile(TString name)
virtual void Exec(Option_t *opt)
IceCalibrate(const char *name="", const char *title="")
Handling of IceCube event data.
Signal (Hit) handling of a generic IceCube Optical Module (GOM).
Handling of 3-vectors in various reference frames.
TString GetSlotName(Int_t j=1) const
void SetCalFunction(TF1 *f, Int_t j=1)
void AddNamedSlot(TString s)
void SetDecalFunction(TF1 *f, Int_t j=1)
Int_t GetDeadValue(Int_t j=1) const
TF1 * GetCalFunction(Int_t j=1) const
TF1 * GetDecalFunction(Int_t j=1) const
Signal (Hit) handling of a generic device.
NcSignal * GetHit(Int_t j) const
void AddDevice(NcDevice &d)
NcDevice * GetDevice(Int_t i) const
TObjArray * GetDevices(TString classname, TObjArray *devices=0)
Base class for top level job in a task based procedure.
TObject * GetObject(const char *classname) const
Handling of a matrix structure of objects.
void GetPosition(Double_t *r, TString f, TString u="rad", Float_t s=-1) const
void SetPosition(Double_t *r, TString f, TString u="rad")
Generic handling of (extrapolated) detector signals.
virtual void SetSignal(Double_t sig, Int_t j=1)
virtual Float_t GetSignal(Int_t j=1, Int_t mode=0) const