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

'CMakeLists.txt' (EventTagRawAlgs-00-02-01)

parent b7509871
No related branches found
No related tags found
No related merge requests found
################################################################################
# Package: EventTagRawAlgs
################################################################################
# Declare the package name:
atlas_subdir( EventTagRawAlgs )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Control/AthenaBaseComps
Control/AthenaKernel
GaudiKernel
MagneticField/MagFieldInterfaces
Tracking/TrkEvent/TrkSegment
PRIVATE
Calorimeter/CaloEvent
Commission/CommissionEvent
Control/StoreGate
Event/xAOD/xAODCaloEvent
InnerDetector/InDetRawEvent/InDetBCM_RawData
InnerDetector/InDetRecEvent/InDetPrepRawData
LArCalorimeter/LArRecEvent
PhysicsAnalysis/EventTag/TagEvent
TileCalorimeter/TileEvent
TileCalorimeter/TileIdentifier
Tracking/TrkEvent/TrkSpacePoint
Tracking/TrkEvent/TrkTrack
Tracking/TrkEvent/TrkTrackSummary )
# External dependencies:
find_package( CLHEP )
# Component(s) in the package:
atlas_add_component( EventTagRawAlgs
src/*.cxx
src/components/*.cxx
INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS}
LINK_LIBRARIES ${CLHEP_LIBRARIES} AthenaBaseComps AthenaKernel GaudiKernel MagFieldInterfaces TrkSegment CaloEvent CommissionEvent StoreGateLib SGtests xAODCaloEvent InDetBCM_RawData InDetPrepRawData LArRecEvent TagEvent TileEvent TileIdentifier TrkSpacePoint TrkTrack TrkTrackSummary )
# Install files from the package:
atlas_install_headers( EventTagRawAlgs )
atlas_install_joboptions( share/*.py )
......@@ -509,26 +509,33 @@ StatusCode RawInfoSummaryForTagWriter::execute()
const MBTSCollisionTime * mbtsTime;
sc = m_storeGate->retrieve(mbtsTime,"MBTSCollisionTime");
float timeDiff=-999.;
float timeSum=-999.;
int m_MBTS_SideCut(2);
if (!sc.isFailure()) {
if (mbtsTime->ncellA()>m_MBTS_SideCut && mbtsTime->ncellC()>m_MBTS_SideCut) {timeDiff=mbtsTime->time();}
if (mbtsTime->ncellA()>m_MBTS_SideCut && mbtsTime->ncellC()>m_MBTS_SideCut){
timeDiff=mbtsTime->time();
timeSum =mbtsTime->timeA() + mbtsTime->timeC();}
}
RISFTobject->setMBTStimeDiff(timeDiff);
RISFTobject->setMBTStimeAvg(timeSum/2.);
////////////////////////////////////////////////////
// LAr EC collision timing stuff (from Guillaume...)
float LArECtimeDiff=-999.;
float LArECtimeSum=-999.;
const LArCollisionTime* tps;
sc = m_storeGate->retrieve(tps,"LArCollisionTime");
if (!sc.isFailure()) {
const int nMin=2;
if (tps->ncellA() > nMin && tps->ncellC() > nMin) LArECtimeDiff = tps->timeA()-tps->timeC();
if (tps->ncellA() > nMin && tps->ncellC() > nMin){
LArECtimeDiff = tps->timeA()-tps->timeC();
LArECtimeSum = tps->timeA()+tps->timeC();
}
}
RISFTobject->setLArECtimeDiff(LArECtimeDiff);
RISFTobject->setLArECtimeAvg(LArECtimeSum/2.);
//////////////////////////////////
// adding in TRT Event Phase
// taken from:
......
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