10 |
// |
// |
11 |
#include <TString.h> |
#include <TString.h> |
12 |
#include <iostream> |
#include <iostream> |
13 |
extern void FCaloADC2MIP(TString, TString, TString ,TString); |
extern void FCaloADC2MIP(TString, TString, TString ,TString,Int_t); |
14 |
extern void info(); |
extern void info(); |
15 |
using namespace std; |
using namespace std; |
16 |
// |
// |
19 |
TString calname; |
TString calname; |
20 |
TString list; |
TString list; |
21 |
TString outdir; |
TString outdir; |
22 |
|
Int_t fit = 1; |
23 |
if ( numinp < 5 ){ |
if ( numinp < 5 ){ |
24 |
if ( numinp == 2 ){ |
if ( numinp == 2 ){ |
25 |
if ( !strcmp(inps[1],"--version") ){ |
if ( !strcmp(inps[1],"--version") ){ |
66 |
calname = (TString)inps[2]; |
calname = (TString)inps[2]; |
67 |
outdir = (TString)inps[3]; |
outdir = (TString)inps[3]; |
68 |
list = (TString)inps[4]; |
list = (TString)inps[4]; |
69 |
|
fit = (Int_t)inps[5]; |
70 |
}; |
}; |
71 |
// |
// |
72 |
FCaloADC2MIP(name,calname,outdir,list); |
FCaloADC2MIP(name,calname,outdir,list,fit); |
73 |
// |
// |
74 |
return(0); |
return(0); |
75 |
} |
} |