46 void HTofCalParCell::Streamer(TBuffer &R__b)
48 if (R__b.IsReading()) {
49 Version_t R__v = R__b.ReadVersion();
50 TObject::Streamer(R__b);
79 R__b.WriteVersion(HTofCalParCell::IsA());
80 TObject::Streamer(R__b);
102 array =
new TObjArray(n);
104 }
else array =
new TObjArray(0);
119 array =
new TObjArray(n);
120 for(Int_t i=0 ; i<
n ; i++)
132 const Char_t* context)
133 :
HParSet(name,title,context) {
137 array =
new TObjArray(6);
138 for (Int_t i=0; i<6; i++)
152 if (input)
return (input->
init(
this,set));
159 if (out)
return out->
write(
this);
165 for(Int_t i0=0;i0<
getSize();i0++) {
168 for(Int_t i1=0;i1<n1;i1++) {
171 for(Int_t i2=0;i2<n2;i2++) mod[i2].setDefaults();
181 Float_t lk,rk,vg,pk,tk,pl,pr,al,ga,ek,twc1,twc2,twc3;
182 sscanf(buf,
"%i%i%i%f%f%f%f%f%f%f%f%f%f%f%f%f",&s,&m,&c,&lk,&rk,&vg,&pk,&tk,&pl,&pr,&al,&ga,&ek,&twc1,&twc2,&twc3);
203 "# Calibration parameters for the TOF detector\n"
205 "# sector module cell leftK rightK vGroup posK timK\n"
206 "# pedestalL pedestalR attLen gainAsym edepK twC1 twC2 twC3\n";
212 sprintf(buf,
"%2i%2i%2i %8.5f %8.5f %7.3f %9.3f %8.3f %7.1f %7.1f %8.3f %9.3f %7.5f %6.3f %6.3f %6.3f\n",
222 printf(
"Press any key to continue");
229 printf(
"\n Calibration parameters for the TOF detector\n");
230 printf(
" Format:\n");
231 printf(
" sector module cell leftK rightK vGroup posK timK\n");
232 printf(
" pedestalL pedestalR attLen gainAsym edepK twC1 twC2 twC3\n");
233 printf(
"==============================================================\n");
237 for(Int_t i0=0; i0<n0; i0++) {
238 Int_t n1 = (*this)[i0].getSize();
239 for(Int_t i1=0; i1<n1; i1++) {
240 Int_t n2 = (*this)[i0][i1].getSize();
241 for(Int_t i2=0; i2<n2; i2++) {
244 if (
writeline(buf, i0, i1, i2)) printf(buf,strlen(buf));
248 printf(
"==============================================================\n");
void putAsciiHeader(TString &)
void setVGroup(Float_t f)
void setRightK(Float_t f)
ClassImp(HTofCalPar) ClassImp(HTofCalParSec) ClassImp(HTofCalParMod) ClassImp(HTofCalParCell) void HTofCalParCell
HTofCalParMod(Int_t s=0, Int_t m=0)
HTofCalPar(const Char_t *name="TofCalPar", const Char_t *title="Calibration parameters for Tof", const Char_t *context="TofCalProduction")
void setTimeWalkC3(Float_t f)
void setPedestalL(Float_t f)
virtual Int_t getModule(Int_t sector, Int_t mod)
virtual Bool_t init(HParSet *, Int_t *)
void readline(const Char_t *, Int_t *)
virtual HDetParIo * getDetParIo(const Text_t *)
void resetInputVersions()
void setTimeWalkC1(Float_t f)
Bool_t writeline(Char_t *, Int_t, Int_t, Int_t)
HSpectrometer * getSetup(void)
HDetector * getDetector(const Char_t *name)
Int_t getMaxComponents(void)
void setAttLen(Float_t f)
void setGainAsym(Float_t f)
void setPedestalR(Float_t f)
Bool_t status
versions of container in the 2 possible inputs
virtual Int_t write(HParSet *)
void setTimeWalkC2(Float_t f)
HTofCalParSec(Int_t s=0, Int_t n=22)
virtual Bool_t init(void)