Skip to content
Snippets Groups Projects
Commit db2047c8 authored by John Derek Chapman's avatar John Derek Chapman
Browse files

Merge branch 'nsw_stereo_res' into '21.3'

Updating default MM centroid resolutions and helper

See merge request !31595
parents e721efa6 1fc6a0eb
No related branches found
No related tags found
16 merge requests!46457Draft: Adding the tools to run over data,!46454Draft: Adding the tools to be able to run over data,!44869Draft: Update to candidate store,!4217921.9-first_steps-InDetTrackingGeometryXML,!39162Draft: Insert BCM' support,!38765Bis78 cabling,!36893Fix size of RPC active region in BIS78 and strip material,!3645821.9: Improving material map description (ATLITKSW-127),!36293WIP pixel updates,!34993KF-input adding jXERHO to the AOD outputs,!34864LH rings in front ot HR rigs,!34763Fix L1_4jJ15.0ETA25 item definition (ATR-21261),!33996WIP: Correct MM zpositions,!3291021.3 salva s0,!31887Merge 21.3.19 into 21.9,!31595Updating default MM centroid resolutions and helper
......@@ -93,7 +93,8 @@ class MmIdHelper : public MuonIdHelper {
int gasGap(const Identifier& id) const;
int multilayer(const Identifier& id) const;
int channel(const Identifier& id) const;
bool measuresPhi(const Identifier& id) const; //Returns true for stereo layers
bool isStereo(const Identifier& id) const;
bool measuresPhi(const Identifier& id) const; //Returns false
int numberOfMultilayers(const Identifier& id) const;
......@@ -302,12 +303,16 @@ inline int MmIdHelper::gasGapMin() const {
return GasGapMin;
}
/*******************************************************************************/
inline bool MmIdHelper::measuresPhi(const Identifier& id) const{
bool measPhi = false;
inline bool MmIdHelper::isStereo(const Identifier& id) const{
bool isStereo = false;
int ml = multilayer(id);
int gg = gasGap(id);
if ( (ml==1 && gg>2) || (ml==2 && gg<3) ) measPhi = true;
return measPhi;
if ( (ml==1 && gg>2) || (ml==2 && gg<3) ) isStereo = true;
return isStereo;
}
/*******************************************************************************/
inline bool MmIdHelper::measuresPhi(const Identifier& /*id*/) const{
return false;
}
/*******************************************************************************/
inline int MmIdHelper::gasGapMax() const {
......
......@@ -17,7 +17,7 @@ Muon::SimpleMMClusterBuilderTool::SimpleMMClusterBuilderTool(const std::string&
m_mmIdHelper(nullptr)
{
declareInterface<IMMClusterBuilderTool>(this);
declareProperty("useErrorParametrization",m_useErrorParametrization=false);
declareProperty("useErrorParametrization",m_useErrorParametrization=true);
}
......@@ -197,6 +197,9 @@ StatusCode Muon::SimpleMMClusterBuilderTool::getClusters(std::vector<Muon::MMPre
if(nmerge<=1) (*covN)(0,0) = covX;
} else {
double localUncertainty = 0.074+0.66*theta-0.15*theta*theta;
if ( m_mmIdHelper->isStereo(MMprds[i].identify()) ) {
localUncertainty = 10.;
}
(*covN)(0,0) = localUncertainty * localUncertainty;
}
ATH_MSG_VERBOSE(" make merged prepData at strip " << m_mmIdHelper->channel(MMprds[j].identify()) << " nmerge " << nmerge << " sqrt covX " << sqrt((*covN)(0,0)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment