Skip to content
Snippets Groups Projects
Commit 05388a18 authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (CommissionRec-00-02-06)

parent 99043d68
No related branches found
No related tags found
No related merge requests found
################################################################################
# Package: CommissionRec
################################################################################
# Declare the package name:
atlas_subdir( CommissionRec )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Commission/CommissionUtils
Control/AthenaBaseComps
GaudiKernel
PRIVATE
Commission/CommissionEvent
Simulation/G4Sim/TrackRecord )
# External dependencies:
find_package( CLHEP )
# Component(s) in the package:
atlas_add_component( CommissionRec
src/*.cxx
src/components/*.cxx
INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS}
LINK_LIBRARIES ${CLHEP_LIBRARIES} CommissionUtilsLib AthenaBaseComps GaudiKernel CommissionEvent )
# Install files from the package:
atlas_install_headers( CommissionRec )
......@@ -78,16 +78,16 @@ StatusCode ComTimeRec::execute()
// Use the Timed Track Record of the muon entering the cavern.
// const TimedTrackRecordCollection* coll;
const TrackRecordCollection *coll(NULL);
if(evtStore()->contains<TrackRecordCollection>(m_TTRKey) ){
ATH_MSG_ERROR( " can not retrieve TTR with key " << m_TTRKey );
if(!evtStore()->contains<TrackRecordCollection>(m_TTRKey) ){
ATH_MSG_ERROR( " can not retrieve TrackRecordCollection with key " << m_TTRKey );
// Put default ComTime into SG for.
ComTime *theComTime = new ComTime();
CHECK( evtStore()->record(theComTime, m_comTimeKey) );
return StatusCode::SUCCESS;
}
// const TimedTrackRecordCollection* coll;
const TrackRecordCollection *coll(NULL);
CHECK( evtStore()->retrieve(coll, m_TTRKey) );
int nMuons = 0;
double earliestMuonTime = -1.;
// TimedTrackRecord* earliestMuon=NULL;
......
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