-
- std::ifstream in(sFilename.Data());
- if (!in.good())
- {
- return 0;
- }
- char line[256];
- Int_t busPatchID, manuID, manuChannel;
- Float_t ped;
- Float_t a0, a1, a2;
- Float_t xlim;
- Float_t chi2, chi22;
-
- static const Int_t kNchannels(64);
- static Bool_t replace(kFALSE);
- Int_t n(0);
-
- while ( in.getline(line,256) )
- {
- if ( strlen(line) < 10 ) continue;
- if ( line[0] == '/' && line[1] == '/' ) continue;
- std::istringstream sin(line);
- AliDebug(3,Form("line=%s",line));
- sin >> busPatchID >> manuID >> manuChannel >> ped >> a0 >> a1 >> a2 >> xlim >> chi2 >> chi22;
- Int_t detElemID = AliMpDDLStore::Instance()->GetDEfromBus(busPatchID);
- AliDebug(3,Form("BUSPATCH %3d DETELEMID %4d MANU %3d CH %3d PED %7.2f A0 %7.2f A1 %7.2f A2 %7.2f"
- " XLIM %7.2f CHI2 %7.2f CHI22 %7.2f",
- busPatchID,detElemID,manuID,manuChannel,ped,a0,a1,a2,xlim,chi2,chi22));
- if ( a0==a1 && a1==a2 && a0==-2) continue;
-
- AliMUONVCalibParam* gain =
- static_cast<AliMUONVCalibParam*>(fGains->Get(detElemID,manuID));