Fork me on GitHub

Changeset 43 in svn for trunk/Delphes.cpp


Ignore:
Timestamp:
Nov 19, 2008, 2:06:15 PM (16 years ago)
Author:
severine ovyn
Message:

general jet variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Delphes.cpp

    r40 r43  
    168168  vector<TLorentzVector> TrackCentral; 
    169169  vector<PhysicsTower> towers;
    170  
    171170  vector<fastjet::PseudoJet> input_particles;//for FastJet algorithm
    172171  vector<fastjet::PseudoJet> inclusive_jets;
     
    214213    // set up a CDF midpoint jet definition
    215214#ifdef ENABLE_PLUGIN_CDFCONES
    216     plugins = new fastjet::CDFJetCluPlugin(DET->C_SEEDTHRESHOLD,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET->C_OVERLAPTHRESHOLD);
     215    plugins = new fastjet::CDFJetCluPlugin(DET->SEEDTHRESHOLD,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET->OVERLAPTHRESHOLD);
    217216    jet_def = fastjet::JetDefinition(plugins);
    218217#else
     
    226225    // set up a CDF midpoint jet definition
    227226#ifdef ENABLE_PLUGIN_CDFCONES
    228     plugins = new fastjet::CDFMidPointPlugin (DET->M_SEEDTHRESHOLD,DET->CONERADIUS,DET->M_CONEAREAFRACTION,DET->M_MAXPAIRSIZE,DET->M_MAXPAIRSIZE,DET->C_OVERLAPTHRESHOLD);
     227    plugins = new fastjet::CDFMidPointPlugin (DET->SEEDTHRESHOLD,DET->CONERADIUS,DET->M_CONEAREAFRACTION,DET->M_MAXPAIRSIZE,DET->M_MAXPAIRSIZE,DET->OVERLAPTHRESHOLD);
    229228    jet_def = fastjet::JetDefinition(plugins);
    230229#else
     
    238237    int npass = 0;               // do infinite number of passes
    239238    double protojet_ptmin = 0.0; // use all protojets
    240     plugins = new fastjet::SISConePlugin (DET->CONERADIUS,DET->C_OVERLAPTHRESHOLD,npass, protojet_ptmin);
     239    plugins = new fastjet::SISConePlugin (DET->CONERADIUS,DET->OVERLAPTHRESHOLD,npass, protojet_ptmin);
    241240    jet_def = fastjet::JetDefinition(plugins);
    242241#else
     
    262261      treeReader->ReadEntry(entry);
    263262      treeWriter->Clear();
    264      
    265263      if((entry % 100) == 0 && entry > 0 )  cout << "** Processing element # " << entry << endl;
    266264     
     
    337335            // all final particles but muons and neutrinos     
    338336            // for calorimetric towers and mission PT
    339             if(genMomentum.E()!=0) {
     337           
     338            if(genMomentum.E() !=0) {
    340339              if(pid !=pMU) {
    341340                PhysicsTower CaloTower = PhysicsTower(LorentzVector(genMomentum.Px(),genMomentum.Py(),genMomentum.Pz(), genMomentum.E()));
     
    371370                TrackCentral.push_back(genMomentum);
    372371              }
    373           } // switch
     372         
     373} // switch
    374374         
    375375          // Forward particles in CASTOR ?
     
    470470      }
    471471     
    472      
    473472      // computes the Missing Transverse Momentum
    474473      TLorentzVector Att(0.,0.,0.,0.);
     
    483482      elementEtmis->Px = (-PTmis).Px();
    484483      elementEtmis->Py = (-PTmis).Py();
    485      
    486484      //*****************************
    487485     
    488486      // run the jet clustering with the above jet definition
     487      cout<<input_particles.size()<<endl;
    489488      if(input_particles.size()!=0)
    490489        {
    491490          fastjet::ClusterSequence clust_seq(input_particles, jet_def);
    492          
    493          
    494491          // extract the inclusive jets with pt > 5 GeV
    495492          double ptmin = 5.0;
    496493          inclusive_jets = clust_seq.inclusive_jets(ptmin);
    497          
     494cout<<"inclusive_jets "<<inclusive_jets.size()<<endl;     
    498495          // sort jets into increasing pt
    499496          sorted_jets = sorted_by_pt(inclusive_jets);
    500497        }
     498cout<<"sorted_jets.size() "<<sorted_jets.size()<<endl;
    501499      for (unsigned int i = 0; i < sorted_jets.size(); i++) {
    502500        TLorentzVector JET;
Note: See TracChangeset for help on using the changeset viewer.