ATLAS Offline Software
Functions
MCP::CalibInitializer Namespace Reference

Functions

std::map< SagittaCorrection, std::shared_ptr< CalibContainer > > createSagittaCorrMap (DataYear dataYear, TrackType type, const std::string &recommendationPath, const std::string &correctionType)
 
std::map< ScaleResCorrection, std::shared_ptr< CalibContainer > > createScaleResCorrMap (DataYear dataYear, TrackType type, const std::string &recommendationPath, ScaleSmearParam param)
 
std::map< MST_Categories, std::shared_ptr< CalibContainer > > createHighpTCorrMap (DataYear dataYear, const std::string &type, const std::string &recommendationPath, const std::string &param)
 
std::map< ExpectedResParam, std::shared_ptr< CalibContainer > > createExpectedResMap (DataYear dataYear, TrackType type, const std::string &recommendationPath)
 

Function Documentation

◆ createExpectedResMap()

std::map< ExpectedResParam, std::shared_ptr< CalibContainer > > MCP::CalibInitializer::createExpectedResMap ( DataYear  dataYear,
TrackType  type,
const std::string &  recommendationPath 
)

Definition at line 73 of file CalibInitializer.cxx.

74  {
75  std::map<ExpectedResParam, std::shared_ptr<CalibContainer>> calibMap;
76  std::string path = "MuonMomentumCorrections/" + recommendationPath + "/ScaleAndSmear/" + MCP::toString(dataYear) + "/MC_values_muons.root";
77 
78  if(type == TrackType::ID)
79  {
80  calibMap[ExpectedResParam::r1] = std::make_shared<CalibContainer>(path, "r1_ID_MC");
81  calibMap[ExpectedResParam::r2] = std::make_shared<CalibContainer>(path, "r2_ID_MC");
82  calibMap[ExpectedResParam::r2tan2] = std::make_shared<CalibContainer>(path, "r2_ID_TAN2_MC");
83  }
84  else if(type == TrackType::ME)
85  {
86  calibMap[ExpectedResParam::r0] = std::make_shared<CalibContainer>(path, "r0_MS_MC");
87  calibMap[ExpectedResParam::r1] = std::make_shared<CalibContainer>(path, "r1_MS_MC");
88  calibMap[ExpectedResParam::r2] = std::make_shared<CalibContainer>(path, "r2_MS_MC");
89  }
90 
91  return calibMap;
92  }

◆ createHighpTCorrMap()

std::map< MST_Categories, std::shared_ptr< CalibContainer > > MCP::CalibInitializer::createHighpTCorrMap ( DataYear  dataYear,
const std::string &  type,
const std::string &  recommendationPath,
const std::string &  param 
)

Definition at line 59 of file CalibInitializer.cxx.

60  {
61  std::map<MST_Categories, std::shared_ptr<CalibContainer>> calibMap;
62  std::string path = "MuonMomentumCorrections/" + recommendationPath + "/ScaleAndSmear/" + MCP::toString(dataYear) + "/ExtraHighPt_"+type+"_muons.root";
63 
64  calibMap[MST_Categories::Zero] = std::make_shared<CalibContainer>(path, param + "_cat0");
65  calibMap[MST_Categories::One] = std::make_shared<CalibContainer>(path, param + "-cat1");
66  calibMap[MST_Categories::Two] = std::make_shared<CalibContainer>(path, param + "-cat2");
67  calibMap[MST_Categories::Three] = std::make_shared<CalibContainer>(path, param + "-cat3");
68  calibMap[MST_Categories::Four] = std::make_shared<CalibContainer>(path, param + "-cat4");
69 
70  return calibMap;
71  }

◆ createSagittaCorrMap()

std::map< SagittaCorrection, std::shared_ptr< CalibContainer > > MCP::CalibInitializer::createSagittaCorrMap ( DataYear  dataYear,
TrackType  type,
const std::string &  recommendationPath,
const std::string &  correctionType 
)

Definition at line 13 of file CalibInitializer.cxx.

14  {
15  std::map<SagittaCorrection, std::shared_ptr<CalibContainer>> calibMap;
16 
17  std::string path = "MuonMomentumCorrections/" + recommendationPath + "/sagittaBias/" + MCP::toString(dataYear) + "/";
18 
19  std::string trackType = MCP::toString(type);
20 
21  if(correctionType == "data")
22  {
23  path += trackType + "_data.root";
24  calibMap[SagittaCorrection::Nominal] = std::make_shared<CalibContainer>(path, "p" + trackType + "_0");
25  calibMap[SagittaCorrection::Datastat__1up] = std::make_shared<CalibContainer>(path, "p" + trackType + "_statError");
26  calibMap[SagittaCorrection::Residual__1up] = std::make_shared<CalibContainer>(path, "p" + trackType + "_1");
27  }
28  else if(correctionType == "mc")
29  {
30  path += trackType + "_mc.root";
31  calibMap[SagittaCorrection::Nominal] = std::make_shared<CalibContainer>(path, "p" + trackType + "_0");
32  }
33  else
34  {
35  throw std::invalid_argument("Cannot recognize saggita correction type: " + correctionType);
36  }
37 
38  return calibMap;
39  }

◆ createScaleResCorrMap()

std::map< ScaleResCorrection, std::shared_ptr< CalibContainer > > MCP::CalibInitializer::createScaleResCorrMap ( DataYear  dataYear,
TrackType  type,
const std::string &  recommendationPath,
ScaleSmearParam  param 
)

Definition at line 40 of file CalibInitializer.cxx.

41  {
42  std::map<ScaleResCorrection, std::shared_ptr<CalibContainer>> calibMap;
43 
44 
45  std::string path = "MuonMomentumCorrections/" + recommendationPath + "/ScaleAndSmear/" + MCP::toString(dataYear) + "/";
46 
47  std::string trackType = MCP::toString(type);
48  path += trackType + ".root";
49 
50  std::string correctionType = MCP::toString(param);
51 
52  calibMap[ScaleResCorrection::Nominal] = std::make_shared<CalibContainer>(path, correctionType + "_nom");
53  calibMap[ScaleResCorrection::SystErr__1up] = std::make_shared<CalibContainer>(path, correctionType + "_upErr");
54  calibMap[ScaleResCorrection::SystErr__1down] = std::make_shared<CalibContainer>(path, correctionType + "_downErr");
55 
56  return calibMap;
57  }
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:128
ID
std::vector< Identifier > ID
Definition: CalibHitIDCheck.h:24
MCP::toString
std::string toString(TrackType trkType)
Definition: EnumDef.h:39
egEnergyCorr::Resolution::Nominal
@ Nominal
Definition: egammaEnergyCorrectionTool.h:62
TRT_PAI_physicsConstants::r0
const double r0
electron radius{cm}
Definition: TRT_PAI_physicsConstants.h:20
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32