Fork me on GitHub

Changes between Version 35 and Version 36 of WorkBook/LibraryInterface


Ignore:
Timestamp:
Feb 25, 2013, 10:54:16 PM (12 years ago)
Author:
Pavel Demin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkBook/LibraryInterface

    v35 v36  
    99setup ROOT environment variables
    1010
    11 wget --no-check-certificate https://cp3.irmp.ucl.ac.be/projects/delphes/raw-attachment/wiki/WikiStart/Delphes-3.0.0.tar.gz
    12 tar -zxf Delphes-3.0.0.tar.gz
     11wget --no-check-certificate http://cp3.irmp.ucl.ac.be/downloads/Delphes-3.0.1.tar.gz
     12tar -zxf Delphes-3.0.1.tar.gz
    1313
    14 cd Delphes-3.0.0
     14cd Delphes-3.0.1
    1515make -j 4
    1616
     
    5656using namespace std;
    5757
    58 void ConvertInput(DelphesFactory *factory, TObjArray *particleOutputArray, TObjArray *candidateOutputArray, TObjArray *partonOutputArray);
     58void ConvertInput(DelphesFactory *factory, TObjArray *allParticleOutputArray, TObjArray *stableParticleOutputArray, TObjArray *partonOutputArray);
    5959
    6060void ConvertOutput(Delphes *modularDelphes);
     
    7070  Delphes *modularDelphes;
    7171  DelphesFactory *factory;
    72   TObjArray *particleOutputArray;
    73   TObjArray *candidateOutputArray;
     72  TObjArray *allParticleOutputArray;
     73  TObjArray *stableParticleOutputArray;
    7474  TObjArray *partonOutputArray;
    7575
     
    9292    factory = modularDelphes->GetFactory();
    9393
    94     particleOutputArray = modularDelphes->ExportArray("particles");
    95     candidateOutputArray = modularDelphes->ExportArray("candidates");
     94    allParticleOutputArray = modularDelphes->ExportArray("allParticles");
     95    stableParticleOutputArray = modularDelphes->ExportArray("stableParticles");
    9696    partonOutputArray = modularDelphes->ExportArray("partons");
    9797
     
    102102    {
    103103      modularDelphes->Clear();
    104       ConvertInput(factory, particleOutputArray, candidateOutputArray, partonOutputArray);
     104      ConvertInput(factory, allParticleOutputArray, stableParticleOutputArray, partonOutputArray);
    105105      modularDelphes->ProcessTask();
    106106      ConvertOutput(modularDelphes);
     
    120120}
    121121
    122 void ConvertInput(DelphesFactory *factory, TObjArray *particleOutputArray, TObjArray *candidateOutputArray, TObjArray *partonOutputArray)
     122void ConvertInput(DelphesFactory *factory, TObjArray *allParticleOutputArray, TObjArray *stableParticleOutputArray, TObjArray *partonOutputArray)
    123123{
    124124  Candidate *candidate;
     
    150150      candidate->Position.SetXYZT(x, y, z, t);
    151151
    152       particleOutputArray->Add(candidate);
     152      allParticleOutputArray->Add(candidate);
    153153
    154154      if(!pdgParticle) return;
     
    156156      if(status == 1)
    157157      {
    158         candidateOutputArray->Add(candidate);
     158        stableParticleOutputArray->Add(candidate);
    159159      }
    160160      else if(status == 2)