- Author
- mark sutton
- Date
- Fri 11 Jan 2019 07:41:26 CET
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
Definition in file wmain.cxx.
getCoefficientMap(label, EigenIdxList)
input value:
- label: falvor label in std::string format, could be one of B, C, T, Light
- EigenIdxList is user defined vector containing all eigenvector index that user interested in. output: Map of format map<string, map<string, float>> containing decomposition coefficient of the list of eigenvectors defined by EigenIdxList.
getCoefficients(label, evIdx)
input value:
- label: falvor label in std::string format, could be one of B, C, T, Light
- evIdx: The index of eigenvector user interested in. output value: vector of coefficient values. The order is the same as output given by getListOfOriginalNuisanceParameters()
getListOfOriginalNuisanceParameters(label)
input value:
- label: falvor label in std::string format, could be one of B, C, T, Light output value: List of original nuisance parameter names.
getNumEigenVectors(label)
input value:
- label: falvor label in std::string format, could be one of B, C, T, Light return value: number of eigen vectors used for chosen label. Return 0 if error occured.
Definition at line 24 of file wmain.cxx.
31 std::cout <<
"\n\nconstructing ..." << std::endl;
33 TFile
f(
"tree.root",
"recreate");
34 TTree *
tree =
new TTree(
"tree",
"tree");
37 tree->Branch(
"TIDA::Event",
"TIDA::Event",&
h,6400, 1);
39 std::string
ars[3] = {
"ars0",
"ars1",
"ars2" };
41 std::cout <<
"\n\nfilling ..." << std::endl;
43 for (
int i=0;
i<3 ;
i++ ) {
50 std::cout <<
"\n\nEvent " <<
i << std::endl;
52 for (
int j=0 ; j<2 ; j++ ) {
54 std::cout <<
"\n\tRoi " << j << std::endl;
56 h->addChain(
ars[j] );
64 j+3., j+3-1.1, j+3+1.1,
65 j+2.1, j+2.1-100, j+2.1+100 );
67 for (
int ij=0 ; ij<j+1 ; ij++ ) roi1.push_back(
TIDARoiDescriptor( ij, ij-0.2, ij+0.2,
69 ij, ij-0.2, ij+0.2 ) );
71 std::cout <<
"Roi " << roi1 << std::endl;
74 j+3., j+3-1.1, j+3+1.1,
75 j+2.1, j+2.1-100, j+2.1+100 );
83 cout <<
"TIDA::Event " << *
h << endl;
89 std::cout <<
"\n\nwriting ..." << std::endl;
99 std::cout <<
"\n\nreading ..." << std::endl;
103 TFile
f(
"tree.root");
104 TTree *
tree = (TTree*)
f.Get(
"tree");
107 tree->SetBranchAddress(
"TIDA::Event", &
hh );
109 for (
int i=0;
i<
tree->GetEntries() ;
i++ ) {
113 cout <<
"TIDA::Event " <<
i <<
" " << *
hh << endl;