Fork me on GitHub

Changeset 74 in svn for trunk/src


Ignore:
Timestamp:
Dec 3, 2008, 6:55:46 PM (16 years ago)
Author:
severine ovyn
Message:

sorted vector

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SmearUtil.cc

    r73 r74  
    6868MUON_pt =         10.0;
    6969JET_pt =          20.0;
     70GAMMA_pt =        10.0;
    7071TAUJET_pt =       10.0;
    7172
     
    178179    else if(strstr(temp_string.c_str(),"MUON_pt")){curstring >> varname >> value; MUON_pt = value;}
    179180    else if(strstr(temp_string.c_str(),"JET_pt")){curstring >> varname >> value; JET_pt = value;}
     181    else if(strstr(temp_string.c_str(),"GAMMA_pt")){curstring >> varname >> value; GAMMA_pt = value;}
    180182    else if(strstr(temp_string.c_str(),"TAUJET_pt")){curstring >> varname >> value; TAUJET_pt = value;}
    181183    else if(strstr(temp_string.c_str(),"NTOWERS")){curstring >> varname >> ivalue; NTOWERS = ivalue;}
     
    392394  f_out << left << setw(40) <<"* Minimum pT for Tau-jets: "<<""
    393395        << left << setw(20) <<TAUJET_pt         <<""<< right << setw(10)<<"*"<<"\n";
     396  f_out << left << setw(40) <<"* Minimum pT for photons: "<<""
     397        << left << setw(20) <<GAMMA_pt         <<""<< right << setw(10)<<"*"<<"\n";
    394398  f_out<<"*                                                                    *"<<"\n";
    395399  f_out<<"#***************************                                         *"<<"\n";
     
    595599   
    596600}*/
     601
     602//******************************************************************************************
     603
     604void RESOLution::SortedVector(vector<ParticleUtil> &vect)
     605{
     606  int i,j = 0;
     607  TLorentzVector tmp;
     608  bool en_desordre = true;
     609  int entries=vect.size();
     610  for(i = 0 ; (i < entries) && en_desordre; i++)
     611    {
     612      en_desordre = false;
     613      for(j = 1 ; j < entries - i ; j++)
     614        {
     615          if ( vect[j].Pt() > vect[j-1].Pt() )
     616             {
     617               ParticleUtil tmp = vect[j-1];
     618               vect[j-1] = vect[j];
     619               vect[j] = tmp;
     620               en_desordre = true;
     621              }
     622        }
     623    }
     624}
    597625
    598626// **********Provides the energy in the cone of radius TAU_CONE_ENERGY for the tau identification********
     
    706734   if (phi > PI-dphi) iPhi = PI-dphi;
    707735}
    708 /*
    709 ParticleUtil::ParticleUtil(const TLorentzVector genMomentum,int pid){
    710   E=genMomentum.E();
    711   Px=genMomentum.Px();
    712   Py=genMomentum.Py();
    713   Pz=genMomentum.Pz();
    714   PT=genMomentum.Pt();
    715   Phi=genMomentum.Phi();
    716   Eta=genMomentum.Eta();
    717   PID=pid;
    718 
    719 }
    720 */
    721 /*
    722 void ParticleUtil::GetInfo()
    723 {
    724 
    725 }
    726 */
    727736
    728737//**************************** Returns the delta Phi ****************************
  • trunk/src/TriggerUtil.cc

    r72 r74  
    6363  list_of_trigger_bits[i].PrintTrigCondition(LogName,i+1);
    6464 }
     65  f_out<<"*                                                                    *"<<"\n";
     66  f_out<<"#*********************************************************************"<<"\n";
     67
    6568}
    6669
Note: See TracChangeset for help on using the changeset viewer.