Skip to content

Commit

Permalink
Another non-linearity parameterization added
Browse files Browse the repository at this point in the history
  • Loading branch information
peressounko committed Aug 30, 2014
1 parent a84f43d commit e23b49d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ANALYSIS/TenderSupplies/AliPHOSTenderSupply.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,9 @@ Float_t AliPHOSTenderSupply::CorrectNonlinearity(Float_t en){
if(fNonlinearityVersion=="Default"){
return 0.0241+1.0504*en+0.000249*en*en ;
}
if(fNonlinearityVersion=="MC"){ //Default + some correction
return (0.0241+1.0504*en+0.000249*en*en)*fNonlinearityParams[0]*(1+fNonlinearityParams[1]/(1.+en*en/fNonlinearityParams[2]/fNonlinearityParams[2])) ;
}

if(fNonlinearityVersion=="NoCorrection"){
return en ;
Expand Down

0 comments on commit e23b49d

Please sign in to comment.