Changes between Version 35 and Version 36 of WorkBook/LibraryInterface
- Timestamp:
- Feb 25, 2013, 10:54:16 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkBook/LibraryInterface
v35 v36 9 9 setup ROOT environment variables 10 10 11 wget --no-check-certificate http s://cp3.irmp.ucl.ac.be/projects/delphes/raw-attachment/wiki/WikiStart/Delphes-3.0.0.tar.gz12 tar -zxf Delphes-3.0. 0.tar.gz11 wget --no-check-certificate http://cp3.irmp.ucl.ac.be/downloads/Delphes-3.0.1.tar.gz 12 tar -zxf Delphes-3.0.1.tar.gz 13 13 14 cd Delphes-3.0. 014 cd Delphes-3.0.1 15 15 make -j 4 16 16 … … 56 56 using namespace std; 57 57 58 void ConvertInput(DelphesFactory *factory, TObjArray * particleOutputArray, TObjArray *candidateOutputArray, TObjArray *partonOutputArray);58 void ConvertInput(DelphesFactory *factory, TObjArray *allParticleOutputArray, TObjArray *stableParticleOutputArray, TObjArray *partonOutputArray); 59 59 60 60 void ConvertOutput(Delphes *modularDelphes); … … 70 70 Delphes *modularDelphes; 71 71 DelphesFactory *factory; 72 TObjArray * particleOutputArray;73 TObjArray * candidateOutputArray;72 TObjArray *allParticleOutputArray; 73 TObjArray *stableParticleOutputArray; 74 74 TObjArray *partonOutputArray; 75 75 … … 92 92 factory = modularDelphes->GetFactory(); 93 93 94 particleOutputArray = modularDelphes->ExportArray("particles");95 candidateOutputArray = modularDelphes->ExportArray("candidates");94 allParticleOutputArray = modularDelphes->ExportArray("allParticles"); 95 stableParticleOutputArray = modularDelphes->ExportArray("stableParticles"); 96 96 partonOutputArray = modularDelphes->ExportArray("partons"); 97 97 … … 102 102 { 103 103 modularDelphes->Clear(); 104 ConvertInput(factory, particleOutputArray, candidateOutputArray, partonOutputArray);104 ConvertInput(factory, allParticleOutputArray, stableParticleOutputArray, partonOutputArray); 105 105 modularDelphes->ProcessTask(); 106 106 ConvertOutput(modularDelphes); … … 120 120 } 121 121 122 void ConvertInput(DelphesFactory *factory, TObjArray * particleOutputArray, TObjArray *candidateOutputArray, TObjArray *partonOutputArray)122 void ConvertInput(DelphesFactory *factory, TObjArray *allParticleOutputArray, TObjArray *stableParticleOutputArray, TObjArray *partonOutputArray) 123 123 { 124 124 Candidate *candidate; … … 150 150 candidate->Position.SetXYZT(x, y, z, t); 151 151 152 particleOutputArray->Add(candidate);152 allParticleOutputArray->Add(candidate); 153 153 154 154 if(!pdgParticle) return; … … 156 156 if(status == 1) 157 157 { 158 candidateOutputArray->Add(candidate);158 stableParticleOutputArray->Add(candidate); 159 159 } 160 160 else if(status == 2)