Changeset 380 in svn for trunk/Delphes.cpp
- Timestamp:
- May 12, 2009, 9:47:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r372 r380 213 213 //Smearing information 214 214 RESOLution *DET = new RESOLution(); 215 215 216 cout <<"** **"<< endl; 216 217 cout <<"** ####### Start reading DETECTOR parameters ####### **"<< endl; … … 224 225 << right << setw(2) <<"**"<<""<<endl; 225 226 cout <<"** **"<< endl; 227 DET->ReadParticleDataGroupTable(); 228 //DET->PDGtable.print(); 226 229 227 230 //Trigger information … … 260 263 cout <<"** StdHEP file format detected **"<<endl; 261 264 cout <<"** This can take several minutes **"<< endl; 262 STDHEPConverter converter(inputFileList,outputfilename );//case ntpl file in input list265 STDHEPConverter converter(inputFileList,outputfilename,DET->PDGtable);//case ntpl file in input list 263 266 } 264 267 else if(line.length() == 1+line.find_last_of(".lhe")) … … 266 269 cout <<"** LHEF file format detected **"<<endl; 267 270 cout <<"** This can take several minutes **"<< endl; 268 LHEFConverter converter(inputFileList,outputfilename );//case ntpl file in input list271 LHEFConverter converter(inputFileList,outputfilename,DET->PDGtable);//case ntpl file in input list 269 272 } 270 273 else if(line.length() == 1+line.find_last_of(".root")) … … 272 275 cout <<"** h2root file format detected **"<<endl; 273 276 cout <<"** This can take several minutes **"<< endl; 274 HEPEVTConverter converter(inputFileList,outputfilename );//case ntpl file in input list277 HEPEVTConverter converter(inputFileList,outputfilename,DET->PDGtable);//case ntpl file in input list 275 278 } 276 279 else if(line.length() == 1+line.find_last_of(".hepmc")) … … 278 281 cout <<"** HepMC ASCII file format detected **"<<endl; 279 282 cout <<"** This can take several minutes **"<< endl; 280 HepMCConverter converter(inputFileList,outputfilename );283 HepMCConverter converter(inputFileList,outputfilename,DET->PDGtable); 281 284 } 282 285 else { … … 309 312 ExRootTreeBranch *branchZDC = treeWriter->NewBranch("ZDChits", TRootZdcHits::Class()); 310 313 ExRootTreeBranch *branchRP220 = treeWriter->NewBranch("RP220hits", TRootRomanPotHits::Class()); 311 ExRootTreeBranch *branchFP420 = treeWriter->NewBranch("FP420hits", TRootForwardTaggerHits::Class()); 314 //ExRootTreeBranch *branchFP420 = treeWriter->NewBranch("FP420hits", TRootForwardTaggerHits::Class()); 315 ExRootTreeBranch *branchFP420 = treeWriter->NewBranch("FP420hits", TRootRomanPotHits::Class()); 312 316 313 317 TRootETmis *elementEtmis; … … 397 401 { 398 402 TRootGenParticle *particle = new TRootGenParticle(particleG); 403 PdgParticle pdg_part = DET->PDGtable[particle->PID]; 404 particle->Charge = pdg_part.charge(); 405 particle->M = pdg_part.mass(); 406 //particle->Charge=ChargeVal(particle->PID); 407 particle->setFractions(); // init 399 408 int pid = abs(particle->PID); 400 particle->Charge=ChargeVal(particle->PID);401 particle->setFractions(); // init402 409 403 410
Note:
See TracChangeset
for help on using the changeset viewer.