message: Fix minor bugs in supercalib
diff: @@ -804,7 +804,12 @@ Bool_t AliMultSelectionCalibratorMC::Calibrate() {
  lTempDef.ReplaceAll("fZpaFired", "1");
  lTempDef.ReplaceAll("fZpcFired", "1");
  + //remember to not be silly...
  + TString lEstName = fsels->GetEstimator(iEst)->GetName();
  //Construction of estimator re-definition
  + if( !lEstName.Contains("SPD") &&
  + !lEstName.Contains("CL0") &&
  + !lEstName.Contains("CL1") ){
  if(!fkUseQuadraticMapping){
  lTempDef.Prepend(Form("%.10f*(",lScaleFactors[iEst][iRun] ));
  lTempDef.Append(")"); //don't forget parentheses...
  @@ -835,15 +840,17 @@ Bool_t AliMultSelectionCalibratorMC::Calibrate() {
  //Trick: add anchor-point-like logic to avoid low-multiplicity issues
  if(fsels->GetEstimator(iEst)->GetUseAnchor()){
  - lTempDef.Prepend(Form("%s>%.10f?",fsels->GetEstimator(iEst)->GetDefinition().Data(),fsels->GetEstimator(iEst)->GetAnchorPoint()));
  + lTempDef.Prepend(Form("%s>%.10f?",fsels->GetEstimator(iEst)->GetDefinition().Data(),0.5*fsels->GetEstimator(iEst)->GetAnchorPoint()));
  lTempDef.Append(":0.0");
  }
  + }
  cout<<"================================================================================"<<endl;
  cout<<" Quadratic fit print obtained for estimator "<<fsels->GetEstimator( iEst )->GetName()<<endl;
  cout<<lTempDef.Data()<<endl;
  cout<<"================================================================================"<<endl;
  }
  +
  fsels->GetEstimator( iEst )->SetDefinition ( lTempDef.Data() );
  }
  @@ -882,6 +889,10 @@ Bool_t AliMultSelectionCalibratorMC::Calibrate() {
  for(Int_t iEst=0; iEst<lNEstimators; iEst++){
  lTempDef = fselsdef->GetEstimator( iEst )->GetDefinition();
  //Construction of estimator re-definition
  + TString lEstName = fsels->GetEstimator(iEst)->GetName();
  + if( !lEstName.Contains("SPD") &&
  + !lEstName.Contains("CL0") &&
  + !lEstName.Contains("CL1") ){
  if(!fkUseQuadraticMapping){
  lTempDef.Prepend(Form("%.10f*(",lScaleFactors[iEst][iRun] ));
  lTempDef.Append(")"); //don't forget parentheses...
  @@ -911,9 +922,10 @@ Bool_t AliMultSelectionCalibratorMC::Calibrate() {
  //Trick: add anchor-point-like logic to avoid low-multiplicity issues
  if(fsels->GetEstimator(iEst)->GetUseAnchor()){
  - lTempDef.Prepend(Form("%s>%.10f?",fsels->GetEstimator(iEst)->GetDefinition().Data(),fsels->GetEstimator(iEst)->GetAnchorPoint()));
  + lTempDef.Prepend(Form("%s>%.10f?",fselsdef->GetEstimator(iEst)->GetDefinition().Data(),0.5*fselsdef->GetEstimator(iEst)->GetAnchorPoint()));
  lTempDef.Append(":0.0");
  }
  + }
  cout<<"================================================================================"<<endl;
  cout<<" Quadratic fit print obtained for estimator "<<fsels->GetEstimator( iEst )->GetName()<<endl;
  