Fork me on GitHub

Changeset 380 in svn for trunk/Delphes.cpp


Ignore:
Timestamp:
May 12, 2009, 9:47:12 AM (15 years ago)
Author:
Xavier Rouby
Message:

new PDG table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Delphes.cpp

    r372 r380  
    213213  //Smearing information
    214214  RESOLution *DET = new RESOLution();
     215
    215216  cout <<"**                                                                 **"<< endl;
    216217  cout <<"**        ####### Start reading DETECTOR parameters #######        **"<< endl;
     
    224225       << right << setw(2) <<"**"<<""<<endl;
    225226  cout <<"**                                                                 **"<< endl;
     227  DET->ReadParticleDataGroupTable();
     228  //DET->PDGtable.print();
    226229 
    227230  //Trigger information
     
    260263      cout <<"**                 StdHEP file format detected                     **"<<endl;
    261264      cout <<"**                This can take several minutes                    **"<< endl;
    262       STDHEPConverter converter(inputFileList,outputfilename);//case ntpl file in input list
     265      STDHEPConverter converter(inputFileList,outputfilename,DET->PDGtable);//case ntpl file in input list
    263266    }
    264267  else if(line.length() == 1+line.find_last_of(".lhe"))
     
    266269      cout <<"**                   LHEF file format detected                     **"<<endl;
    267270      cout <<"**                 This can take several minutes                   **"<< endl;
    268       LHEFConverter converter(inputFileList,outputfilename);//case ntpl file in input list
     271      LHEFConverter converter(inputFileList,outputfilename,DET->PDGtable);//case ntpl file in input list
    269272    }
    270273  else if(line.length() == 1+line.find_last_of(".root"))
     
    272275      cout <<"**                   h2root file format detected                   **"<<endl;
    273276      cout <<"**                  This can take several minutes                  **"<< endl;
    274       HEPEVTConverter converter(inputFileList,outputfilename);//case ntpl file in input list
     277      HEPEVTConverter converter(inputFileList,outputfilename,DET->PDGtable);//case ntpl file in input list
    275278    }
    276279  else if(line.length() == 1+line.find_last_of(".hepmc"))
     
    278281      cout <<"**                HepMC ASCII file format detected                 **"<<endl;
    279282      cout <<"**                  This can take several minutes                  **"<< endl;
    280       HepMCConverter converter(inputFileList,outputfilename);
     283      HepMCConverter converter(inputFileList,outputfilename,DET->PDGtable);
    281284    }
    282285  else {
     
    309312  ExRootTreeBranch *branchZDC = treeWriter->NewBranch("ZDChits", TRootZdcHits::Class());
    310313  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());
    312316 
    313317  TRootETmis *elementEtmis;
     
    397401        {
    398402          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
    399408          int pid = abs(particle->PID);
    400           particle->Charge=ChargeVal(particle->PID);
    401           particle->setFractions(); // init
    402409         
    403410         
Note: See TracChangeset for help on using the changeset viewer.