676 |
suf = ""; |
suf = ""; |
677 |
xyaverage = true; |
xyaverage = true; |
678 |
// |
// |
679 |
|
letmax = -1; |
680 |
|
heavytail = false; |
681 |
|
lmipth = 100.; |
682 |
|
// |
683 |
}; |
}; |
684 |
|
|
685 |
void CaloLong::MaskSection(TString sec){ |
void CaloLong::MaskSection(TString sec){ |
978 |
// |
// |
979 |
if ( vmax == 0 ) pmax++; |
if ( vmax == 0 ) pmax++; |
980 |
etmax = pmax * X0pl; |
etmax = pmax * X0pl; |
981 |
|
if ( letmax < 0. ) letmax = etmax; |
982 |
// |
// |
983 |
if ( debug ) this->Print(); |
if ( debug ) this->Print(); |
984 |
if ( debug ) printf(" exit \n"); |
if ( debug ) printf(" exit \n"); |
1160 |
exx[numpo] = 0.1; |
exx[numpo] = 0.1; |
1161 |
yyy[numpo] = enemip; |
yyy[numpo] = enemip; |
1162 |
eyy[numpo] = sqrt(enemip*3.)+sqrt(5.); |
eyy[numpo] = sqrt(enemip*3.)+sqrt(5.); |
1163 |
|
if ( xpos > letmax && enemip > lmipth && heavytail) eyy[numpo] = (sqrt(enemip*3.)+sqrt(5.))/numpo; |
1164 |
numpo++; |
numpo++; |
1165 |
// th->Fill(xpos,enemip); |
// th->Fill(xpos,enemip); |
1166 |
if ( debug ) printf(" AVE Filling: st %i xpos %f energy %f \n",st,xpos,enemip); |
if ( debug ) printf(" AVE Filling: st %i xpos %f energy %f \n",st,xpos,enemip); |
1193 |
exx[numpo] = 0.1; |
exx[numpo] = 0.1; |
1194 |
yyy[numpo] = enemip; |
yyy[numpo] = enemip; |
1195 |
eyy[numpo] = sqrt(enemip*3.)+sqrt(5.); |
eyy[numpo] = sqrt(enemip*3.)+sqrt(5.); |
1196 |
|
if ( xpos > letmax && enemip > lmipth && heavytail ) eyy[numpo] = (sqrt(enemip*3.)+sqrt(5.))/numpo; |
1197 |
// eyy[numpo] = sqrt(enemip)/(st*0.95); |
// eyy[numpo] = sqrt(enemip)/(st*0.95); |
1198 |
numpo++; |
numpo++; |
1199 |
// th->Fill(xpos,enemip); |
// th->Fill(xpos,enemip); |
1244 |
// lfit->SetParLimits(0,0.,1000.); |
// lfit->SetParLimits(0,0.,1000.); |
1245 |
// lfit->SetParLimits(1,-1.,80.); |
// lfit->SetParLimits(1,-1.,80.); |
1246 |
// lfit->SetParLimits(2,-1.,10.); |
// lfit->SetParLimits(2,-1.,10.); |
1247 |
// TString optio = "ROW"; // "RO" |
// TString optio = "ROW"; // "RO" |
1248 |
TString optio = "RO"; // "RO" |
TString optio = "RO"; // "RO" |
1249 |
if ( debug ){ |
if ( debug ){ |
1250 |
optio += "NV"; |
optio += "NV"; |
1254 |
if ( draw ) optio += "Q"; |
if ( draw ) optio += "Q"; |
1255 |
}; |
}; |
1256 |
// |
// |
1257 |
if ( debug ) printf(" OK, start the fitting procedure...\n"); |
if ( debug ) printf(" OK, start the fitting procedure... options: %s \n",optio.Data()); |
1258 |
// |
// |
1259 |
// fitresult = th->Fit("lfit",optio); |
// fitresult = th->Fit("lfit",optio); |
1260 |
fitresult = gh->Fit("lfit",optio); |
fitresult = gh->Fit("lfit",optio); |