15 std::string taggerName =
"MV2c10";
16 std::string workingPointName =
"Continuous";
19 StatusCode code1 = btag_eff_tool.setProperty(
"ScaleFactorFileName",
"xAODBTaggingEfficiency/13TeV/2017-21-13TeV-MC16-CDI-2019-07-30_v1.root" );
20 StatusCode code2 = btag_eff_tool.setProperty(
"TaggerName", taggerName );
21 StatusCode code3 = btag_eff_tool.setProperty(
"OperatingPoint", workingPointName);
22 StatusCode code4 = btag_eff_tool.setProperty(
"JetAuthor",
"AntiKt4EMTopoJets" );
23 StatusCode code5 = btag_eff_tool.setProperty(
"MinPt", 20. );
30 if (code1 != StatusCode::SUCCESS
31 || code2 != StatusCode::SUCCESS
32 || code3 != StatusCode::SUCCESS
33 || code4 != StatusCode::SUCCESS
34 || code5 != StatusCode::SUCCESS
35 || code6 != StatusCode::SUCCESS ){
36 std::cout <<
"Initialization of tool " << btag_eff_tool->name() <<
" failed! " << std::endl;
40 std::cout <<
"Initialization of tool " << btag_eff_tool->name() <<
" finished." << std::endl;
44 StatusCode code7 = evr_tool.setProperty(
"BTaggingEfficiencyTool", btag_eff_tool);
46 if (code7 != StatusCode::SUCCESS
47 ||code8 != StatusCode::SUCCESS ) {
48 std::cout <<
"Initialization of tool" << evr_tool->name() <<
" failed!" << std::endl;
50 std::cout <<
"Initialization of tool " << evr_tool->name() <<
" finished." << std::endl;
53 const std::string
label =
"B";
54 const unsigned int evIdx = 0;
67 std::vector<unsigned int> eigenIdxList = {1,2,3,4,5};
68 std::map<std::string, std::map<std::string, float>> coefficientMap = evr_tool->getCoefficientMap(
label, eigenIdxList);
80 std::vector<float>
coeffs = evr_tool->getCoefficients(
label, evIdx);
90 std::vector<std::string> orig_nps = evr_tool->getListOfOriginalNuisanceParameters(
label);
100 int nEigen = evr_tool->getNumEigenVectors(
"B");
102 std::cout<<
"There are "<<nEigen
103 <<
" eigen vectors for flavour B."<<std::endl;