Skip to content
Snippets Groups Projects
Commit 01e686db authored by Zach Marshall's avatar Zach Marshall
Browse files

Adding collision mode for ComTimeRec

We sometimes want to run cosmic reco on collision events for the purpose
of long-lived particle analysis. In those cases, the timing of the
detector is the same as it is in collision mode (for the trigger, at
least), even though cosmic reconstruction is configured. This allows an
additional mode for the ComTimeRec algorithm, wherein it doesn't try to
find the cosmic track record in simulation, but assumes that we are
running something collision-like.
parent c05b5d89
No related merge requests found
......@@ -197,6 +197,12 @@ StatusCode ComTimeRec::execute()
ComTime *theComTime = new ComTime();
CHECK( evtStore()->record(theComTime, m_comTimeKey) );
}
} else if(m_mode == "CollisionMode" ) {
// Using cosmic reco during collisions. Fire on BCIDs.
// Just provide a default ComTime object.
ComTime *theComTime = new ComTime();
CHECK( evtStore()->record(theComTime, m_comTimeKey) );
return StatusCode::SUCCESS;
} else {
ATH_MSG_FATAL( "Invalid mode = " << m_mode );
return StatusCode::SUCCESS;
......
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