Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hepsim:usage_full [2017/04/03 01:00]
hepsim17 [Using C++/ROOT with LCIO]
hepsim:usage_full [2020/05/22 02:50] (current)
hepsim17
Line 3: Line 3:
 [[:|<< back to HepSim manual]] [[:|<< back to HepSim manual]]
  
-====== Full simulations  ======+====== Analysis of LCIO files  ======
  
 Currently, the Geant4-based detector simulation can be done using the SLIC software. You will need to convert ProMC files to LCIO files and Currently, the Geant4-based detector simulation can be done using the SLIC software. You will need to convert ProMC files to LCIO files and
Line 10: Line 10:
  
 The files with full simulations are located under the "rfullNNN" tags ("NNN" is a number) The files with full simulations are located under the "rfullNNN" tags ("NNN" is a number)
-Here how you can find all samples that have "rfull" tag for download. Click here: [[http://atlaswww.hep.anl.gov/hepsim/list.php?find=rfull]].+Here how you can find all samples that have "rfull" tag for download. Click here: [[https://atlaswww.hep.anl.gov/hepsim/list.php?find=rfull]].
 The description of the detector tags is given in [[:hepsim:usage_detectors|Detector description]]. The description of the detector tags is given in [[:hepsim:usage_detectors|Detector description]].
  If you need to find all  files  If you need to find all  files
Line 26: Line 26:
  
  
-The [[http://atlaswww.hep.anl.gov/hepsim/soft/detectors/| detector repository]] contains the description of available detectors. +The [[https://atlaswww.hep.anl.gov/hepsim/soft/detectors/| detector repository]] contains the description of available detectors. 
-Each "rfullNNN" tag corresponds to the  detector given in the  [[http://atlaswww.hep.anl.gov/hepsim/soft/detectors/| detector repository]].+Each "rfullNNN" tag corresponds to the  detector given in the  [[https://atlaswww.hep.anl.gov/hepsim/soft/detectors/| detector repository]].
  
 The physics performance studies based on full simulation files from HepSim  The physics performance studies based on full simulation files from HepSim 
Line 43: Line 43:
  
 <code bash> <code bash>
-wget http://atlaswww.hep.anl.gov/asc/jas4pp/download/current.php -O jas4pp.tgz+wget https://atlaswww.hep.anl.gov/asc/jas4pp/download/current.php -O jas4pp.tgz
 tar -zvxf jas4pp.tgz tar -zvxf jas4pp.tgz
 cd jas4pp cd jas4pp
Line 106: Line 106:
 ====== Using C++/ROOT with LCIO ====== ====== Using C++/ROOT with LCIO ======
  
-If you need to read LCIO files in C++ code with ROOT/FastJet, use this example package:+If you need to read LCIO files in C++ code with ROOT/FastJet, use the example package [[https://github.com/chekanov/HepSim]].
  
 <code bash> <code bash>
-wget http://atlaswww.hep.anl.gov/hepsim/soft/lcio-cpp.tgz -O - | tar -xz; +git clone https://github.com/chekanov/HepSim 
-cd lcio-cpp; make +cd HepSim/analysis/cpp_lcio
 </code> </code>
-It will compile "example.cpp" file linking FastJet package. Look at README file to see how to install the "LCIO" package required by this example.  Your LCIO" files from HepSim should be in the directory "data".+Look at README file to see how to install the "LCIO" package required by this example.  Your LCIO" files from HepSim should be in the directory "data".
  
  
-Your program to read SLCIO files can look as this:+Generally, you program to read SLCIO files can look as this:
  
-<hidden>+<hidden Click here to show the code example>
 <code cpp> <code cpp>
 string input="data.slcio"; string input="data.slcio";
Line 128: Line 128:
            cout << "  Run : " << evt->getRunNumber() << " Detector: "      << evt->getDetectorName() <<  endl ;            cout << "  Run : " << evt->getRunNumber() << " Detector: "      << evt->getDetectorName() <<  endl ;
            // print stored EVGEN parameters            // print stored EVGEN parameters
 +           const LCParameters& params=evt->getParameters();
            StringVec floatKeys ;            StringVec floatKeys ;
            int nFloatParameters = params.getFloatKeys( floatKeys ).size() ;            int nFloatParameters = params.getFloatKeys( floatKeys ).size() ;