Fork me on GitHub

Changeset 400597a in git for examples


Ignore:
Timestamp:
Oct 16, 2014, 10:36:02 PM (10 years ago)
Author:
Christophe Delaere <christophe.delaere@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
4fd37d4
Parents:
369744d
Message:

Pass the file names through the command line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/evdisplay.C

    r369744d r400597a  
    11
    2 void evdisplay(const char* filename = "delphes_card_CMS.tcl", const char* ParticlePropagator="ParticlePropagator",
    3                                                               const char* TrackingEfficiency="ChargedHadronTrackingEfficiency",
    4                                                               const char* MuonEfficiency="MuonEfficiency",
    5                                                               const char* Calorimeters="Calorimeter")
     2void evdisplay(const char* configfile = "delphes_card_CMS.tcl", const char* datafile = "delphes_output.root",
     3               const char* ParticlePropagator="ParticlePropagator",
     4               const char* TrackingEfficiency="ChargedHadronTrackingEfficiency",
     5               const char* MuonEfficiency="MuonEfficiency",
     6               const char* Calorimeters="Calorimeter")
    67{
    7 
    88   // load the libraries
    99   gSystem->Load("libGeom");
     
    1212   // create the detector representation
    1313   Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry"));
    14    det3D.readFile(filename, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
     14   det3D.readFile(configfile, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
    1515
    1616   // create the application items
    17    DelphesEventDisplay* display = new DelphesEventDisplay("delphes_card_CMS.tcl", "../delphes_output.root", det3D);
     17   DelphesEventDisplay* display = new DelphesEventDisplay(configfile, datafile, det3D);
    1818
    1919/*
Note: See TracChangeset for help on using the changeset viewer.