Commit 77c7cb21 authored by Qipeng Hu's avatar Qipeng Hu
Browse files

add overlay flag to MuonCalibrationAndSmearingTool

parent 30b592b8
......@@ -264,6 +264,8 @@ class MuonCalibrationAndSmearingTool : public virtual IMuonCalibrationAndSmearin
asg::AnaToolHandle<CP::IMuonSelectionTool> m_MuonSelectionTool;
bool m_is_MCOverlay;
}; // class MuonCalibrationAndSmearingTool
} // namespace CP
......
......@@ -72,6 +72,7 @@ namespace CP {
declareProperty("sagittaMapsInputType", m_saggitaMapsInputType=MCAST::SagittaInputHistType::NOMINAL);
declareProperty("sagittaMapUnitConversion",m_sagittaMapUnitConversion=1e-3);
declareProperty("systematicCorrelationScheme", m_sysScheme = "Corr_Scale");
declareProperty("isOverlayMC", m_is_MCOverlay = false);
m_SagittaIterations.push_back(0);
m_SagittaIterations.push_back(0);
m_SagittaIterations.push_back(0);
......@@ -1085,7 +1086,7 @@ namespace CP {
}
ATH_MSG_VERBOSE( "Checking Simulation flag: " << evtInfo->eventType( xAOD::EventInfo::IS_SIMULATION ) );
if( !evtInfo->eventType( xAOD::EventInfo::IS_SIMULATION ) ) {
if( !evtInfo->eventType( xAOD::EventInfo::IS_SIMULATION ) && !m_is_MCOverlay ) {
// Statistical combiantion specifics
if(m_useStatComb){
......@@ -1275,7 +1276,7 @@ namespace CP {
}
ATH_MSG_VERBOSE( "Checking Simulation flag: " << evtInfo->eventType( xAOD::EventInfo::IS_SIMULATION ) );
if( evtInfo->eventType( xAOD::EventInfo::IS_SIMULATION ) ) {
if( evtInfo->eventType( xAOD::EventInfo::IS_SIMULATION ) || m_is_MCOverlay) {
//Now get the specific regions and the MC smearing/scale calib
if( SetInfoHelperCorConsts(muonInfo) == StatusCode::FAILURE ){
ATH_MSG_ERROR( "Can't configure Correction constants! Set smearing to 0." );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment