Fork me on GitHub

Changeset 33 in svn for trunk/src/SmearUtil.cc


Ignore:
Timestamp:
Nov 17, 2008, 9:01:32 PM (16 years ago)
Author:
severine ovyn
Message:

add offline Thresholds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SmearUtil.cc

    r32 r33  
    4747ELG_Nfwd =        0.0   ;                 // N term for central ECAL
    4848
    49 HAD_Secal =       0.05 ;                    // S term for central ECAL // electromagnetic calorimeter
    50 HAD_Necal =       0.25 ;                    // N term for central ECAL
    51 HAD_Cecal =       0.0055 ;                  // C term for central ECAL
    5249HAD_Shcal =       0.91 ;                    // S term for central HCAL // hadronic calorimeter
    5350HAD_Nhcal  =      0.   ;                    // N term for central HCAL
     
    5855
    5956MU_SmearPt =      0.01 ;
     57
     58ELEC_pt =         10.0;
     59MUON_pt =         10.0;
     60JET_pt =          20.0;
     61TAUJET_pt =       10.0;
     62
    6063
    6164TAU_CONE_ENERGY = 0.15  ;                  // Delta R = radius of the cone // for "electromagnetic collimation"
     
    139142    else if(strstr(temp_string.c_str(),"JETALGO")){curstring >> varname >> value; JETALGO = (int)value;}
    140143    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
    141149  }
    142150
     
    177185                                         pow(ELG_Sfwd*sqrt(energy),2) ) );
    178186  }
    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;
    185187  electron.SetPtEtaPhiE(energyS/cosh(electron.Eta()), electron.Eta(), electron.Phi(), energyS);
    186   //cout<<"nous "<<electron.Px()<<"  "<<electron.Py()<<"  "<<electron.Pz()<<endl;
    187188  if(electron.E() < 0)electron.SetPxPyPzE(0,0,0,0); // no negative values after smearing !
    188189}
Note: See TracChangeset for help on using the changeset viewer.