ParticleConventions Namespace Reference

Functions

double EnergyCorrection (double meu, int detector=-1, int release=-1, bool isMC=true)

Function Documentation

double ParticleConventions::EnergyCorrection ( double  meu,
int  detector = -1,
int  release = -1,
bool  isMC = true 
)

Definition at line 10 of file ParticleConventions.cxx.

References exit(), ReleaseType::IsDaikon(), ReleaseType::IsData(), and ReleaseType::IsDogwood().

00011 {
00012        if(ReleaseType::IsDogwood(type)&& (ReleaseType::IsDaikon(type)||ReleaseType::IsData(type)))
00013         {
00014                   if(detector==2) //far
00015                   {
00016                     float offset =   0.489987;
00017                     float slope  =  0.0387301;
00018                     return meu*slope+offset;
00019                 }else if(detector==1) //near
00020                 {
00021                         float offset = 0.4803261;
00022                         float slope = 0.03799819;
00023                         return meu*slope + offset;
00024                 }
00025         }
00026 
00027         printf("UNKNOWN TYPE in ParticleConventions::EnergyCorrection!\n");
00028         exit(1);
00029 }


Generated on 3 Oct 2018 for loon by  doxygen 1.6.1