Changeset 260 in svn for trunk/Resolutions.cpp
- Timestamp:
- Feb 9, 2009, 3:37:19 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Resolutions.cpp
r258 r260 1 /* 2 ---- FastSim ---- 3 A Fast Simulator for general purpose LHC detector 4 S. Ovyn ~~~~ severine.ovyn@uclouvain.be 5 6 Center for Particle Physics and Phenomenology (CP3) 7 Universite Catholique de Louvain (UCL) 8 Louvain-la-Neuve, Belgium 9 */ 10 11 /// \file Smearing.cpp 12 /// \brief executable for the FastSim 1 /*********************************************************************** 2 ** ** 3 ** /----------------------------------------------\ ** 4 ** | Delphes, a framework for the fast simulation | ** 5 ** | of a generic collider experiment | ** 6 ** \----------------------------------------------/ ** 7 ** ** 8 ** ** 9 ** This package uses: ** 10 ** ------------------ ** 11 ** FastJet algorithm: Phys. Lett. B641 (2006) [hep-ph/0512210] ** 12 ** Hector: JINST 2:P09005 (2007) [physics.acc-ph:0707.1198v2] ** 13 ** FROG: [hep-ex/0901.2718v1] ** 14 ** ** 15 ** ------------------------------------------------------------------ ** 16 ** ** 17 ** Main authors: ** 18 ** ------------- ** 19 ** ** 20 ** Severine Ovyn Xavier Rouby ** 21 ** severine.ovyn@uclouvain.be xavier.rouby@cern ** 22 ** ** 23 ** Center for Particle Physics and Phenomenology (CP3) ** 24 ** Universite catholique de Louvain (UCL) ** 25 ** Louvain-la-Neuve, Belgium ** 26 ** ** 27 ** Copyright (C) 2008-2009, ** 28 ** All rights reserved. ** 29 ** ** 30 ***********************************************************************/ 13 31 14 32 #include "TChain.h" … … 29 47 #include "JetsUtil.h" 30 48 #include "BFieldProp.h" 31 32 //#include "PseudoJet.hh"33 //#include "ClusterSequence.hh"34 49 35 50 #include<vector> … … 367 382 TRootJet *jet; 368 383 itJet.Reset(); 369 //cout<<"a"<<endl;370 384 while( (jet = (TRootJet*) itJet.Next()) ) 371 385 { 372 //cout<<"b"<<endl;373 386 TLorentzVector JETT(0,0,0,0); 374 387 JETT.SetPxPyPzE(jet->Px,jet->Py,jet->Pz,jet->E); 375 388 if(fabs(JETT.Eta()) < (DET->CEN_max_tracker - DET->TAU_track_scone)) 376 389 { 377 //cout<<"c"<<endl;378 390 for(Int_t i=0; i<TausHadr.GetEntries();i++) 379 391 { 380 //cout<<"d"<<endl;381 392 if(DeltaR(TausHadr[i]->Phi,TausHadr[i]->Eta,JETT.Phi(),JETT.Eta())<0.1) 382 393 { 383 //cout<<"e"<<endl;384 394 elementTaujet= (TAUHAD*) branchtaujet->NewEntry(); 385 395 elementTaujet->EnergieCen = (EnergySmallCone(towers,JETT.Eta(),JETT.Phi(),DET->TAU_energy_scone,DET->JET_seed)/JETT.E()); … … 387 397 if( (EnergySmallCone(towers,JETT.Eta(),JETT.Phi(),DET->TAU_energy_scone,DET->JET_seed)/JETT.E()) > 0.95 388 398 && (NumTracks(branchTracks,DET->TAU_track_pt,JETT.Eta(),JETT.Phi(),DET->TAU_track_scone))==1)numTauRec++; 389 //cout<<"f"<<endl;390 399 391 400 } 392 //cout<<"g"<<endl;393 401 } 394 402 } 395 //cout<<"h"<<endl;396 403 397 404 398 405 } // for itJet : loop on all jets 399 //cout<<"i"<<endl;400 406 401 407 treeWriter->Fill(); 402 408 } // Loop over all events 403 409 treeWriter->Write(); 404 float frac = numTauRec/numTau;405 cout<<numTauRec<<endl;406 cout<<numTau<<endl;410 float frac = numTauRec/numTau; 411 cout<<numTauRec<<endl; 412 cout<<numTau<<endl; 407 413 408 414 cout << "** Exiting..." << endl;
Note:
See TracChangeset
for help on using the changeset viewer.