Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
protoduneana
protoduneana
Utilities
FitUtils
runPDSPThinSliceFit.c++
Go to the documentation of this file.
1
#include <iostream>
2
#include <fstream>
3
#include <sstream>
4
#include <string>
5
6
#include "
cetlib/filepath_maker.h
"
7
#include "
fhiclcpp/intermediate_table.h
"
8
#include "
fhiclcpp/make_ParameterSet.h
"
9
#include "
fhiclcpp/ParameterSet.h
"
10
11
#include "
PDSPThinSliceFitter.h
"
12
13
#include "TFile.h"
14
15
int
main
(
int
argc,
char
**
argv
){
16
17
std::string
fcl_file;
18
std::string
output_file
;
19
// Options to run
20
for
(
int
iArg = 1; iArg < argc; iArg++) {
21
if
(!strcasecmp(argv[iArg],
"-c"
)) {
22
fcl_file = argv[++iArg];
23
}
24
if
(!strcasecmp(argv[iArg],
"-o"
)) {
25
output_file = argv[++iArg];
26
}
27
if
(!strcasecmp(argv[iArg],
"-h"
)) {
28
std::cout <<
"Usage: runPDSPThinSliceFit -c fclfile.fcl "
<<
29
"-o outputfile.root "
<<
std::endl
;
30
return
1;
31
}
32
}
33
34
protoana::PDSPThinSliceFitter
* fit
35
=
new
protoana::PDSPThinSliceFitter
(fcl_file, output_file);
36
fit->
InitializeMCSamples
();
37
fit->
BuildMCSamples
();
38
fit->
RunFitAndSave
();
39
40
return
0;
41
}
intermediate_table.h
string
std::string string
Definition:
nybbler.cc:12
make_ParameterSet.h
protoana::PDSPThinSliceFitter
Definition:
PDSPThinSliceFitter.h:30
PDSPThinSliceFitter.h
freeze_graph.argv
argv
Definition:
freeze_graph.py:218
ParameterSet.h
filepath_maker.h
make_input_cov.output_file
output_file
Definition:
make_input_cov.py:13
main
int main(int argc, char **argv)
Definition:
runPDSPThinSliceFit.c++:15
protoana::PDSPThinSliceFitter::BuildMCSamples
void BuildMCSamples()
Definition:
PDSPThinSliceFitter.cxx:318
protoana::PDSPThinSliceFitter::InitializeMCSamples
void InitializeMCSamples()
Definition:
PDSPThinSliceFitter.cxx:194
protoana::PDSPThinSliceFitter::RunFitAndSave
void RunFitAndSave()
Definition:
PDSPThinSliceFitter.cxx:1316
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11