Fork me on GitHub

Changeset 32 in svn


Ignore:
Timestamp:
Nov 17, 2008, 8:49:25 PM (16 years ago)
Author:
severine ovyn
Message:

remove HCALecal

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/DataCardDet.dat

    r21 r32  
    2424#energy resolution for hadrons in ecal/hcal/hf
    2525# \sigma/E = C + N/E + S/\sqrt{E}
    26 HAD_Secal        0.05                     // S term for central ECAL // electromagnetic calorimeter
    27 HAD_Necal        0.25                     // N term for central ECAL
    28 HAD_Cecal        0.0055                   // C term for central ECAL
    2926HAD_Shcal        1.5                      // S term for central HCAL // hadronic calorimeter
    3027HAD_Nhcal        0.                       // N term for central HCAL
  • trunk/interface/SmearUtil.h

    r31 r32  
    5858  //energy resolution for hadrons in ecal/hcal/hf
    5959  // \sigma/E = C + N/E + S/\sqrt{E}
    60   float HAD_Secal;   // S term for central ECAL // electromagnetic calorimeter
    61   float HAD_Necal;   // N term for central ECAL
    62   float HAD_Cecal;   // C term for central ECAL
    6360  float HAD_Shcal;   // S term for central HCAL // hadronic calorimeter
    6461  float HAD_Nhcal;   // N term for central HCAL
  • trunk/src/SmearUtil.cc

    r31 r32  
    122122    else if(strstr(temp_string.c_str(),"ELG_Cfwd")){curstring >> varname >> value; ELG_Cfwd = value;}
    123123    else if(strstr(temp_string.c_str(),"ELG_Nfwd")){curstring >> varname >> value; ELG_Nfwd = value;}
    124     else if(strstr(temp_string.c_str(),"HAD_Secal")){curstring >> varname >> value; HAD_Secal = value;}
    125     else if(strstr(temp_string.c_str(),"HAD_Necal")){curstring >> varname >> value; HAD_Necal = value;}
    126     else if(strstr(temp_string.c_str(),"HAD_Cecal")){curstring >> varname >> value; HAD_Cecal = value;}
    127124    else if(strstr(temp_string.c_str(),"HAD_Shcal")){curstring >> varname >> value; HAD_Shcal = value;}
    128125    else if(strstr(temp_string.c_str(),"HAD_Nhcal")){curstring >> varname >> value; HAD_Nhcal = value;}
     
    227224     
    228225   energyS2 =  gRandom->Gaus(energy_ecal, sqrt(
    229                                       pow(HAD_Necal,2) +
    230                                       pow(HAD_Cecal*energy_ecal,2) +
    231                                       pow(HAD_Secal*sqrt(energy_ecal),2) ) );     
     226                                      pow(ELG_Ncen,2) +
     227                                      pow(ELG_Ccen*energy_ecal,2) +
     228                                      pow(ELG_Scen*sqrt(energy_ecal),2) ) );     
    232229
    233230  energyS = ((energyS1>0)?energyS1:0) + ((energyS2>0)?energyS2:0);
Note: See TracChangeset for help on using the changeset viewer.