Go to the source code of this file.
◆ main()
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 80 of file TestTrkParametersIdentificationHelpers.cxx.
◆ testBitField()
Definition at line 11 of file TestTrkParametersIdentificationHelpers.cxx.
14 unsigned int max = -1;
15 std::cout <<
" starting loop " <<
max << std::endl;
16 for(
unsigned int i=0;
i<
max;++
i ){
18 std::cout <<
" encoding failed for " <<
i << std::endl;
22 std::cout <<
" i " << std::setw(3) <<
i <<
" value " << std::setw(3) <<
value <<
" " << std::bitset<32>(
i) <<
" id " << std::bitset<32>(
id) << std::endl;
◆ testCalo()
Definition at line 26 of file TestTrkParametersIdentificationHelpers.cxx.
29 unsigned int good = 0;
31 unsigned int goodCalo = 0;
32 unsigned int badCalo = 0;
42 for(
unsigned int isEntry = 0; isEntry < 2 ; ++isEntry ){
43 bool entry = isEntry == 1;
48 bool ientry =
helper.isEntryToVolume(
id);
49 bool ivalid =
helper.isValid(
id);
50 bool printDetails =
false;
51 if( !ivalid ||
sample != isample ||
entry != ientry ) {
54 std::cout <<
"WARNING bad decoding/encoding " << std::endl;
60 if( isCalo ) { ++goodCalo;
62 std::cout <<
" good but no calo!!! " << std::endl;
67 std::cout <<
" tech " << std::setw(4) << tech <<
" sample " << std::setw(4) <<
sample <<
" isEntry " <<
entry << std::endl
68 <<
" itech " << std::setw(4) << itech <<
" isample " << std::setw(4) << isample <<
" isEntry " << ientry
69 <<
" valid " << ivalid <<
" id " << std::bitset<32>(
id) << std::endl;
74 std::cout <<
"all: good " <<
good <<
" bad " <<
bad << std::endl;
75 std::cout <<
"calo: good " << goodCalo <<
" bad " << badCalo << std::endl;