-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathKScanDriver.C
More file actions
30 lines (24 loc) · 790 Bytes
/
KScanDriver.C
File metadata and controls
30 lines (24 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//custom headers
#include "KCode/KScanManager.h"
//ROOT headers
#include <TError.h>
#include <TROOT.h>
//STL headers
#include <string>
#include <sstream>
#include <iostream>
#include <vector>
using namespace std;
//to recompile:
//root -b -q -l 'KScanDriver.C++()'
//to run interactively:
//root -b -q -l 'KScanDriver.C+("T1bbbb_block0","root://cmseos.fnal.gov//store/user/lpcsusyhad/SusyRA2Analysis2015/Run2ProductionV10",{"input/input_scan.txt"},{})'
void KScanDriver(string setname="", string indir="", vector<string> input={}, vector<string> extras={}){
gErrorIgnoreLevel = kBreak;
if(input.size()==0 && extras.size()==0){
cout << "Recompiled KScanDriver, exiting." << endl;
return;
}
KScanManager k(setname,indir,input,extras);
k.Scan();
}