Changeset 43 in svn for trunk/Resolutions.cpp
- Timestamp:
- Nov 19, 2008, 2:06:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Resolutions.cpp
r39 r43 224 224 // set up a CDF midpoint jet definition 225 225 #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); 227 227 jet_def = fastjet::JetDefinition(plugins); 228 228 #else … … 232 232 // set up a CDF midpoint jet definition 233 233 #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); 235 235 jet_defS = fastjet::JetDefinition(pluginsS); 236 236 #else … … 240 240 // set up a CDF midpoint jet definition 241 241 #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); 243 243 jet_defT = fastjet::JetDefinition(pluginsT); 244 244 #else … … 256 256 treeReader->ReadEntry(entry); 257 257 treeWriter->Clear(); 258 259 258 if((entry % 100) == 0 && entry > 0 ) cout << "** Processing element # " << entry << endl; 260 259 … … 329 328 } // switch (pid) 330 329 331 if(pid != pMU )330 if(pid != pMU && genMomentum.Et() !=0) 332 331 { 333 332 towers.push_back(PhysicsTower(LorentzVector(genMomentum.Px(),genMomentum.Py(),genMomentum.Pz(), genMomentum.E()))); … … 354 353 355 354 TLorentzVector Att(0.,0.,0.,0.); 356 float ScalarEt=0;357 355 for(unsigned int i=0; i < towers.size(); i++) 358 356 { 359 357 Att.SetPxPyPzE(towers[i].fourVector.px,towers[i].fourVector.py,towers[i].fourVector.pz,towers[i].fourVector.E); 360 ScalarEt = ScalarEt + Att.Et();361 358 PTmisS = PTmisS + Att; 362 359 } 363 //cout<<"non smeare "<<PTmis.Pt()<<" "<<PTmisS.Pt()<<endl;364 //cout<<"smeare "<<PTmis.Px()<<" "<<PTmisS.Px()<<endl;365 //cout<<"**********"<<endl;366 360 367 361 elementEtmis= (ETMIS*) branchetmis->NewEntry(); 368 362 elementEtmis->Et = (PTmis).Pt(); 369 elementEtmis->Ex = (-PTmis).Px();370 elementEtmis->SEt = ScalarEt;371 372 363 elementEtmis->EtSmeare = (PTmisS).Pt()-(PTmis).Pt(); 373 elementEtmis->ExSmeare = (-PTmisS).Px()-(PTmis).Px();374 364 375 365 //*****************************
Note:
See TracChangeset
for help on using the changeset viewer.