Fork me on GitHub

Changeset 547 in svn for trunk/src/JetsUtil.cc


Ignore:
Timestamp:
Feb 22, 2010, 11:35:46 AM (14 years ago)
Author:
severine ovyn
Message:

bug fix(jet Ntracks), 3-prong taus, vertex coordinates for tracks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/JetsUtil.cc

    r443 r547  
    165165            for (unsigned int j = 0; j < constituents.size(); j++)
    166166                {
    167                   D_CaloTower calConsti(list_of_active_towers.getElement(constituents[j].eta(),constituents[j].phi()));
     167                  //D_CaloTower calConsti(list_of_active_towers.getElement(constituents[j].eta(),constituents[j].phi()));
     168                  // bug fix! bad association of phi [-pi;pi] <-> [0 ; 2pi]
     169                  D_CaloTower calConsti(list_of_active_towers.getElement(constituents[j].eta(),constituents[j].phi_std()));
    168170                  EmVal  += calConsti.getEem();
    169171                  HadVal += calConsti.getEhad();
     
    224226  for (unsigned int i = 0; i < sorted_jets.size(); i++) {
    225227    JET.SetPxPyPzE(sorted_jets[i].px(),sorted_jets[i].py(),sorted_jets[i].pz(),sorted_jets[i].E());
    226     // Tau jet identification : 1! track and electromagnetic collimation
     228    // Tau jet identification : 1! or 3! track and electromagnetic collimation
    227229    if(fabs(JET.Eta()) < (DET->CEN_max_tracker - DET->TAU_track_scone)) {
    228230      double Energie_tau_central = DET->EnergySmallCone(towers,JET.Eta(),JET.Phi());
     231      int NumTrackTau = DET->NumTracks(charge,TrackCentral,DET->TAU_track_pt,JET.Eta(),JET.Phi());
    229232      if(
    230233         ( Energie_tau_central/JET.E() > DET->TAU_energy_frac ) &&
    231          ( DET->NumTracks(charge,TrackCentral,DET->TAU_track_pt,JET.Eta(),JET.Phi()) == 1 ) &&
     234         (( NumTrackTau == 1 ) || ( NumTrackTau == 3 )) &&
    232235         ( JET.Pt() > DET->PTCUT_taujet)
    233236         ) {
Note: See TracChangeset for help on using the changeset viewer.