147 for (Int_t ig=1; ig<=n; ig++)
154 for (Int_t io=1; io<=n; io++)
161 for (Int_t ic=1; ic<=n; ic++)
170 for (Int_t in=1; in<=n; in++)
177 for (Int_t icalf=1; icalf<=n; icalf++)
184 for (Int_t idecalf=1; idecalf<=n; idecalf++)
202 for (Int_t i=1; i<=
fGains->GetSize(); i++)
221 for (Int_t i=1; i<=
fOffsets->GetSize(); i++)
240 for (Int_t i=1; i<=
fCalflags->GetSize(); i++)
259 for (Int_t i=1; i<=
fNames->GetSize(); i++)
281 cout <<
" *NcAttrib::SetGain* Invalid argument j = " << j << endl;
290 Int_t size=
fGains->GetSize();
297 fGains->AddAt(
float(gain),j-1);
336 cout <<
" *NcAttrib::GetOffset* Invalid argument j = " << j << endl;
392 cout <<
" *NcAttrib::GetCalFlags* Invalid argument j = " << j << endl;
412 Int_t word=10000*edge+1000*lock+100*dead+10*gainflag+offsetflag;
433 cout <<
" *NcAttrib::GetGainFlag* Invalid argument j = " << j << endl;
489 cout <<
" *NcAttrib::GetOffsetFlag* Invalid argument j = " << j << endl;
543 cout <<
" *NcAttrib::GetCalWord* Invalid argument j = " << j << endl;
589 cout <<
" *NcAttrib::GetGain* Invalid argument j = " << j << endl;
596 if (j>0 && j<=(
fGains->GetSize()))
637 cout <<
" *NcAttrib::GetOffset* Invalid argument j = " << j << endl;
644 if (j>0 && j<=(
fOffsets->GetSize()))
684 Int_t size=
fGains->GetSize();
686 if ((j>=0) && (j<=size))
696 for (Int_t i=0; i<size; i++)
706 cout <<
" *NcAttrib::ResetGain* Index j = " << j <<
" invalid." << endl;
743 if ((j>=0) && (j<=size))
753 for (Int_t i=0; i<size; i++)
763 cout <<
" *NcAttrib::ResetOffset* Index j = " << j <<
" invalid." << endl;
803 if (mode<0 || mode>6)
805 cout <<
" *NcAttrib::DeleteCalibrations* Unknown mode : " << mode << endl;
806 cout <<
" Default mode=0 will be used." << endl;
810 if (mode==0 || mode==3)
867 if (mode==4 || mode==6)
876 if (mode==5 || mode==6)
901 cout <<
" *NcAttrib::SetDead* Invalid argument j = " << j << endl;
923 Int_t word=10000*edge+1000*lock+100*dead+10*gflag+oflag;
960 cout <<
" *NcAttrib::SetAlive* Invalid argument j = " << j << endl;
972 Int_t word=10000*edge+1000*lock+100*dead+10*gflag+oflag;
1010 cout <<
" *NcAttrib::Lock* Invalid argument j = " << j << endl;
1032 Int_t word=10000*edge+1000*lock+100*dead+10*gflag+oflag;
1069 cout <<
" *NcAttrib::Unlock* Invalid argument j = " << j << endl;
1081 Int_t word=10000*edge+1000*lock+100*dead+10*gflag+oflag;
1119 cout <<
" *NcAttrib::SetEdgeOn* Invalid argument j = " << j << endl;
1158 cout <<
" *NcAttrib::SetEdgeOff* Invalid argument j = " << j << endl;
1200 cout <<
" *NcAttrib::SetEdgeValue* Invalid argument j = " << j << endl;
1222 Int_t word=10000*edge+1000*lock+100*dead+10*gflag+oflag;
1260 cout <<
" *NcAttrib::IncreaseEdgeValue* Invalid argument j = " << j << endl;
1301 cout <<
" *NcAttrib::DecreaseEdgeValue* Invalid argument j = " << j << endl;
1339 cout <<
" *NcAttrib::GetEdgeValue* Invalid argument j = " << j << endl;
1387 cout <<
" *NcAttrib::GetDeadValue* Invalid argument j = " << j << endl;
1436 cout <<
" *NcAttrib::GetLockValue* Invalid argument j = " << j << endl;
1486 if (n<ncalf) n=ncalf;
1487 if (n<ndecalf) n=ndecalf;
1521 cout <<
" *NcAttrib::SetSlotName* Invalid argument j = " << j << endl;
1533 TObjString* so=(TObjString*)
fNames->At(j-1);
1536 so=
new TObjString(s.Data());
1557 cout <<
" *NcAttrib::GetSlotName* Invalid argument j = " << j << endl;
1563 if (j<=fNames->GetSize())
1565 TObjString* so=(TObjString*)
fNames->At(j-1);
1566 if (so) s=so->GetString();
1593 Int_t size=
fNames->GetSize();
1594 for (Int_t i=0; i<size; i++)
1596 TObjString* so=(TObjString*)
fNames->At(i);
1597 if (so) s=so->GetString();
1598 if ((!opt && s==name) || (opt && s.Contains(name.Data())))
1620 cout <<
" *NcAttrib::Data* Invalid argument j = " << j << endl;
1634 if (s!=
"") cout <<
" name : " << s.Data();
1649 for (Int_t i=1; i<=n; i++)
1660 if (s!=
"") {cout <<
" name : " << s.Data(); printf=1;}
1661 if (printf) cout << endl;
1698 cout <<
" *NcAttrib::Load* Invalid argument j = " << j << endl;
1707 for (Int_t ig=1; ig<=n; ig++)
1719 for (Int_t io=1; io<=n; io++)
1731 for (Int_t ic=1; ic<=n; ic++)
1753 for (Int_t in=1; in<=n; in++)
1759 for (Int_t icalf=1; icalf<=n; icalf++)
1765 for (Int_t idecalf=1; idecalf<=n; idecalf++)
1870 for (Int_t i=1; i<=
fCalfuncs->GetSize(); i++)
Generic handling of detector signal (calibration) attributes.
Int_t GetNdecalfuncs() const
TString GetSlotName(Int_t j=1) const
Float_t GetGain(Int_t j=1) const
Int_t GetNcalflags() const
void SetCalFunction(TF1 *f, Int_t j=1)
void DecreaseEdgeValue(Int_t j=1)
void SetCalFlags(Int_t gf, Int_t of, Int_t j)
void SetEdgeOn(Int_t j=1)
void AddNamedSlot(TString s)
virtual Int_t GetNslots() const
Int_t GetGainFlag(Int_t j=1) const
void SetDecalFunction(TF1 *f, Int_t j=1)
Int_t GetDeadValue(Int_t j=1) const
void SetOffset(Double_t off, Int_t j=1)
Int_t GetCalWord(Int_t j=1) const
Int_t GetSlotIndex(TString name, Int_t opt=0) const
Float_t GetOffset(Int_t j=1) const
void SetEdgeOff(Int_t j=1)
void SetSlotName(TString s, Int_t j=1)
void SetEdgeValue(Int_t val, Int_t j=1)
void DeleteCalibrations(Int_t mode=0)
void ResetGain(Int_t j=1)
TF1 * GetCalFunction(Int_t j=1) const
Int_t GetOffsetFlag(Int_t j=1) const
Int_t GetLockValue(Int_t j=1) const
virtual void Load(NcAttrib &a, Int_t j=0)
Int_t GetNcalfuncs() const
void IncreaseEdgeValue(Int_t j=1)
virtual void List(Int_t j=0) const
void SetGain(Double_t gain, Int_t j=1)
Int_t GetEdgeValue(Int_t j=1) const
Int_t GetNoffsets() const
TF1 * GetDecalFunction(Int_t j=1) const
void ResetOffset(Int_t j=1)