Fork me on GitHub

Changeset 43 in svn for trunk/Resolutions.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/Resolutions.cpp

    r39 r43  
    224224  // set up a CDF midpoint jet definition
    225225#ifdef ENABLE_PLUGIN_CDFCONES
    226   plugins = new fastjet::CDFJetCluPlugin(0,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET->C_OVERLAPTHRESHOLD);
     226  plugins = new fastjet::CDFJetCluPlugin(0,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET->OVERLAPTHRESHOLD);
    227227  jet_def = fastjet::JetDefinition(plugins);
    228228#else
     
    232232  // set up a CDF midpoint jet definition
    233233#ifdef ENABLE_PLUGIN_CDFCONES
    234   pluginsS = new fastjet::CDFJetCluPlugin(1,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET->C_OVERLAPTHRESHOLD);
     234  pluginsS = new fastjet::CDFJetCluPlugin(1,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET->OVERLAPTHRESHOLD);
    235235  jet_defS = fastjet::JetDefinition(pluginsS);
    236236#else
     
    240240 // set up a CDF midpoint jet definition
    241241 #ifdef ENABLE_PLUGIN_CDFCONES
    242  pluginsT = new fastjet::CDFJetCluPlugin(0,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET->C_OVERLAPTHRESHOLD);
     242 pluginsT = new fastjet::CDFJetCluPlugin(0,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET->OVERLAPTHRESHOLD);
    243243 jet_defT = fastjet::JetDefinition(pluginsT);
    244244 #else
     
    256256      treeReader->ReadEntry(entry);
    257257      treeWriter->Clear();
    258      
    259258      if((entry % 100) == 0 && entry > 0 )  cout << "** Processing element # " << entry << endl;
    260259     
     
    329328              } // switch (pid)
    330329             
    331               if(pid != pMU)
     330              if(pid != pMU && genMomentum.Et() !=0)
    332331                {
    333332                  towers.push_back(PhysicsTower(LorentzVector(genMomentum.Px(),genMomentum.Py(),genMomentum.Pz(), genMomentum.E())));
     
    354353   
    355354     TLorentzVector Att(0.,0.,0.,0.);
    356      float ScalarEt=0;
    357355     for(unsigned int i=0; i < towers.size(); i++)
    358356       {
    359357         Att.SetPxPyPzE(towers[i].fourVector.px,towers[i].fourVector.py,towers[i].fourVector.pz,towers[i].fourVector.E);
    360          ScalarEt = ScalarEt + Att.Et();
    361358         PTmisS = PTmisS + Att;
    362359       }
    363 //cout<<"non smeare "<<PTmis.Pt()<<" "<<PTmisS.Pt()<<endl;
    364 //cout<<"smeare "<<PTmis.Px()<<" "<<PTmisS.Px()<<endl;
    365 //cout<<"**********"<<endl;
    366360
    367361      elementEtmis= (ETMIS*) branchetmis->NewEntry();
    368362      elementEtmis->Et = (PTmis).Pt();
    369       elementEtmis->Ex = (-PTmis).Px();
    370       elementEtmis->SEt = ScalarEt;
    371 
    372363      elementEtmis->EtSmeare = (PTmisS).Pt()-(PTmis).Pt();
    373       elementEtmis->ExSmeare = (-PTmisS).Px()-(PTmis).Px();
    374364     
    375365      //*****************************
Note: See TracChangeset for help on using the changeset viewer.