Changeset 32 in svn
- Timestamp:
- Nov 17, 2008, 8:49:25 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/DataCardDet.dat
r21 r32 24 24 #energy resolution for hadrons in ecal/hcal/hf 25 25 # \sigma/E = C + N/E + S/\sqrt{E} 26 HAD_Secal 0.05 // S term for central ECAL // electromagnetic calorimeter27 HAD_Necal 0.25 // N term for central ECAL28 HAD_Cecal 0.0055 // C term for central ECAL29 26 HAD_Shcal 1.5 // S term for central HCAL // hadronic calorimeter 30 27 HAD_Nhcal 0. // N term for central HCAL -
trunk/interface/SmearUtil.h
r31 r32 58 58 //energy resolution for hadrons in ecal/hcal/hf 59 59 // \sigma/E = C + N/E + S/\sqrt{E} 60 float HAD_Secal; // S term for central ECAL // electromagnetic calorimeter61 float HAD_Necal; // N term for central ECAL62 float HAD_Cecal; // C term for central ECAL63 60 float HAD_Shcal; // S term for central HCAL // hadronic calorimeter 64 61 float HAD_Nhcal; // N term for central HCAL -
trunk/src/SmearUtil.cc
r31 r32 122 122 else if(strstr(temp_string.c_str(),"ELG_Cfwd")){curstring >> varname >> value; ELG_Cfwd = value;} 123 123 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;}127 124 else if(strstr(temp_string.c_str(),"HAD_Shcal")){curstring >> varname >> value; HAD_Shcal = value;} 128 125 else if(strstr(temp_string.c_str(),"HAD_Nhcal")){curstring >> varname >> value; HAD_Nhcal = value;} … … 227 224 228 225 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) ) ); 232 229 233 230 energyS = ((energyS1>0)?energyS1:0) + ((energyS2>0)?energyS2:0);
Note:
See TracChangeset
for help on using the changeset viewer.