Skip to content
Snippets Groups Projects
Commit 685d479a authored by Tamara Vazquez Schroeder's avatar Tamara Vazquez Schroeder
Browse files

Merge branch '21.0-LArOverlay-fix' into '21.0'

LAr MC overlay fix for HEC

See merge request atlas/athena!9817
parents cbe74ccb a3dee6a2
No related branches found
No related tags found
No related merge requests found
...@@ -2251,9 +2251,10 @@ StatusCode LArPileUpTool::ConvertHits2Samples(const Identifier & cellId, CaloGai ...@@ -2251,9 +2251,10 @@ StatusCode LArPileUpTool::ConvertHits2Samples(const Identifier & cellId, CaloGai
#endif #endif
// fix the shift +1 if HEC and nSamples 4 and firstSample 0 // fix the shift +1 if HEC and nSamples 4 and firstSample 0
// in case of overlay this should NOT be done as the pulse shape read from the database is already shifted // in case of data overlay this should NOT be done as the pulse shape read from the database is already shifted
// but this should still be done in case of MC overlay
int ihecshift=0; int ihecshift=0;
if(!m_RndmEvtOverlay && m_larem_id->is_lar_hec(cellId) && m_NSamples == 4 && m_firstSample == 0) ihecshift=1; if((!m_RndmEvtOverlay || m_isMcOverlay) && m_larem_id->is_lar_hec(cellId) && m_NSamples == 4 && m_firstSample == 0) ihecshift=1;
if (!m_usePhase) { if (!m_usePhase) {
......
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