- Timestamp:
- Nov 17, 2008, 9:01:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SmearUtil.cc
r32 r33 47 47 ELG_Nfwd = 0.0 ; // N term for central ECAL 48 48 49 HAD_Secal = 0.05 ; // S term for central ECAL // electromagnetic calorimeter50 HAD_Necal = 0.25 ; // N term for central ECAL51 HAD_Cecal = 0.0055 ; // C term for central ECAL52 49 HAD_Shcal = 0.91 ; // S term for central HCAL // hadronic calorimeter 53 50 HAD_Nhcal = 0. ; // N term for central HCAL … … 58 55 59 56 MU_SmearPt = 0.01 ; 57 58 ELEC_pt = 10.0; 59 MUON_pt = 10.0; 60 JET_pt = 20.0; 61 TAUJET_pt = 10.0; 62 60 63 61 64 TAU_CONE_ENERGY = 0.15 ; // Delta R = radius of the cone // for "electromagnetic collimation" … … 139 142 else if(strstr(temp_string.c_str(),"JETALGO")){curstring >> varname >> value; JETALGO = (int)value;} 140 143 else if(strstr(temp_string.c_str(),"TRACKING_EFF")){curstring >> varname >> value; TRACKING_EFF = (int)value;} 144 else if(strstr(temp_string.c_str(),"ELEC_pt")){curstring >> varname >> value; ELEC_pt = value;} 145 else if(strstr(temp_string.c_str(),"MUON_pt")){curstring >> varname >> value; MUON_pt = value;} 146 else if(strstr(temp_string.c_str(),"JET_pt")){curstring >> varname >> value; JET_pt = value;} 147 else if(strstr(temp_string.c_str(),"TAUJET_pt")){curstring >> varname >> value; TAUJET_pt = value;} 148 141 149 } 142 150 … … 177 185 pow(ELG_Sfwd*sqrt(energy),2) ) ); 178 186 } 179 float theta=electron.Theta();180 float phi=electron.Phi();181 float px = energyS * sin(theta) * cos(phi);182 float py = energyS * sin(theta) * sin(phi);183 float pz = energyS * cos(theta);184 //cout<<" px "<<px<<" py "<<py<<" pz "<<pz<<endl;185 187 electron.SetPtEtaPhiE(energyS/cosh(electron.Eta()), electron.Eta(), electron.Phi(), energyS); 186 //cout<<"nous "<<electron.Px()<<" "<<electron.Py()<<" "<<electron.Pz()<<endl;187 188 if(electron.E() < 0)electron.SetPxPyPzE(0,0,0,0); // no negative values after smearing ! 188 189 }
Note:
See TracChangeset
for help on using the changeset viewer.