Changes between Version 42 and Version 43 of WorkBook/LibraryInterface
- Timestamp:
- Mar 9, 2013, 6:56:36 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkBook/LibraryInterface
v42 v43 1 1 == Library Interface == 2 2 3 Here is an explanation of how Delphes' library can be called from a program. 3 Here is an explanation of how Delphes' library can be called from a program. 4 4 5 5 == Installation == … … 89 89 modularDelphes = new Delphes("Delphes"); 90 90 modularDelphes->SetConfReader(confReader); 91 91 92 92 factory = modularDelphes->GetFactory(); 93 93 … … 102 102 { 103 103 modularDelphes->Clear(); 104 ConvertInput(factory, allParticleOutputArray, stableParticleOutputArray, partonOutputArray); 104 ConvertInput(factory, allParticleOutputArray, stableParticleOutputArray, partonOutputArray); 105 105 modularDelphes->ProcessTask(); 106 106 ConvertOutput(modularDelphes); … … 125 125 TDatabasePDG *pdg; 126 126 TParticlePDG *pdgParticle; 127 Int_t pdgCode; 128 127 129 Int_t pid, status; 128 130 Double_t px, py, pz, e; 129 Double_t x, y, z, t; 131 Double_t x, y, z, t; 130 132 131 133 pdg = TDatabasePDG::Instance(); 132 134 133 135 while(ReadParticle()) 134 136 { … … 136 138 137 139 candidate->PID = pid; 140 pdgCode = TMath::Abs(candidate->PID); 138 141 139 142 candidate->Status = status; … … 155 158 stableParticleOutputArray->Add(candidate); 156 159 } 157 else if( status == 2)160 else if(pdgCode <= 5 || pdgCode == 21 || pdgCode == 15) 158 161 { 159 162 partonOutputArray->Add(candidate);