Changeset 29 in svn
- Timestamp:
- Nov 13, 2008, 4:07:16 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r24 r29 68 68 { 69 69 int appargc = 2; 70 char appName[100]; sprintf(appName,argv[0]);70 char *appName = "JetsSim"; 71 71 char *appargv[] = {appName, "-b"}; 72 72 TApplication app(appName, &appargc, appargv); … … 259 259 if((entry % 100) == 0 && entry > 0 ) cout << "** Processing element # " << entry << endl; 260 260 261 TSimpleArray<TRootGenParticle> bGen; 261 TSimpleArray<TRootGenParticle> electron; 262 TSimpleArray<TRootGenParticle> muon; 262 263 itGen.Reset(); 263 264 TrackCentral.clear(); … … 301 302 case pE: // all electrons with eta < DET->MAX_CALO_FWD 302 303 DET->SmearElectron(genMomentum); 303 if(genMomentum.E()!=0 && eta < DET->MAX_TRACKER) { 304 elementElec = (TRootElectron*) branchElectron->NewEntry(); 305 elementElec->Set(genMomentum); 306 elementElec->Charge = sign(particle->PID); 307 } 304 electron.Add(particle); 308 305 break; // case pE 309 310 306 case pGAMMA: // all photons with eta < DET->MAX_CALO_FWD 311 307 DET->SmearElectron(genMomentum); … … 315 311 } 316 312 break; // case pGAMMA 317 318 313 case pMU: // all muons with eta < DET->MAX_MU 319 314 DET->SmearMu(genMomentum); 320 if(genMomentum.E() !=0 ) { 321 elementMu = (TRootMuon*) branchMuon->NewEntry(); 322 elementMu->Charge = sign(particle->PID); 323 elementMu->Set(genMomentum); 324 } 315 muon.Add(particle); 325 316 break; // case pMU 326 327 317 case pLAMBDA: // all lambdas with eta < DET->MAX_CALO_FWD 328 318 case pK0S: // all K0s with eta < DET->MAX_CALO_FWD 329 319 DET->SmearHadron(genMomentum, 0.7); 330 320 break; // case hadron 331 332 321 default: // all other final particles with eta < DET->MAX_CALO_FWD 333 322 DET->SmearHadron(genMomentum, 1.0); … … 370 359 } 371 360 } // switch 372 361 362 //branchElectron->Reset(); 363 364 if(electron.GetEntries()>0) { 365 for(int i=0; i < electron.GetEntries();i++) { 366 genMomentum.SetPxPyPzE(electron[i]->Px,electron[i]->Py,electron[i]->Pz,electron[i]->E); 367 if(genMomentum.E()!=0 && fabs(genMomentum.Eta()) < DET->MAX_TRACKER) { 368 elementElec = (TRootElectron*) branchElectron->NewEntry(); 369 elementElec->Set(genMomentum); 370 elementElec->Charge = sign(electron[i]->PID); 371 if(fabs(genMomentum.Eta()))elementElec->IsolFlag = DET->Isolation(genMomentum.Phi(),genMomentum.Eta(),TrackCentral,2.0); 372 } 373 }} 374 if(muon.GetEntries()>0) { 375 for(int i=0; i < muon.GetEntries();i++) { 376 genMomentum.SetPxPyPzE(muon[i]->Px,muon[i]->Py,muon[i]->Pz,muon[i]->E); 377 if(genMomentum.E()!=0 && fabs(genMomentum.Eta()) < DET->MAX_MU) { 378 elementMu = (TRootMuon*) branchMuon->NewEntry(); 379 elementMu->Charge = sign(particle->PID); 380 elementMu->Set(genMomentum); 381 elementMu->IsolFlag = DET->Isolation(genMomentum.Phi(),genMomentum.Eta(),TrackCentral,2.0); 382 } 383 }} 384 373 385 // Forward particles in CASTOR ? 374 386 /* if (particle->Status == 1 && (fabs(particle->Eta) > DET->MIN_CALO_VFWD) -
trunk/Utilities/ExRootAnalysis/interface/BlockClasses.h
r3 r29 13 13 * present in the data members of the Block TRoot class. 14 14 * 15 * $Date: 2008-11- 04 10:32:25$16 * $Revision: 1. 1$15 * $Date: 2008-11-13 15:07:16 $ 16 * $Revision: 1.2 $ 17 17 * 18 18 * … … 198 198 static TCompare *fgCompare; //! 199 199 200 bool IsolFlag; 201 200 202 ClassDef(TRootElectron, 1) 201 203 }; … … 220 222 TRootMuon() {}; 221 223 int Charge; // particle Charge [RawHepEventParticle::pid()] 224 bool IsolFlag; 222 225 static TCompare *fgCompare; //! 223 226
Note:
See TracChangeset
for help on using the changeset viewer.