From f16accf4b80f69e1b45f9d3615ac33117d00ea08 Mon Sep 17 00:00:00 2001 From: Shyam Kumar Date: Thu, 26 Dec 2024 12:30:54 +0100 Subject: [PATCH] update code with snakefile --- benchmarks/tracking_performances/draw_hits.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks/tracking_performances/draw_hits.C b/benchmarks/tracking_performances/draw_hits.C index bb2fabc..3f86cf2 100644 --- a/benchmarks/tracking_performances/draw_hits.C +++ b/benchmarks/tracking_performances/draw_hits.C @@ -8,7 +8,7 @@ #include #include -void draw_hits(double mom=5.0) +void draw_hits(TString filename="") { //==========Style of the plot============ @@ -22,7 +22,7 @@ void draw_hits(double mom=5.0) gStyle->SetOptStat(0); //=======Reading the root file DD4HEP=========== - TFile *f = TFile::Open(Form("sim%1.1f.edm4hep.root",mom)); + TFile *f = TFile::Open(Form("%s",filename.Data())); TTree *sim = (TTree*)f->Get("events"); // Timer Start