Skip to content
Snippets Groups Projects
Commit ec80893f authored by pooser's avatar pooser Committed by GitHub
Browse files

Merge pull request #91 from Yero1990/shms_calib

Shms calib
parents 5269e4ac caa8dc36
No related branches found
No related tags found
No related merge requests found
......@@ -324,9 +324,14 @@ wire_drift_times::wire_drift_times(TTree *tree) : fChain(0)
// if parameter tree is not specified (or zero), connect the file
// used to generate this class and read the Tree.
if (tree == 0) {
TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("../../../ROOTfiles/shms_replay_437.root");
int run_NUM;
TString f0 = "input_RUN.txt";
ifstream infile(f0);
infile >> run_NUM;
TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject(Form("../../../ROOTfiles/shms_replay_%d.root", run_NUM));
if (!f || !f->IsOpen()) {
f = new TFile("../../../ROOTfiles/shms_replay_437.root");
f = new TFile(Form("../../../ROOTfiles/shms_replay_%d.root", run_NUM));
}
f->GetObject("T",tree);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment