From e03bcdd4f5be94f3fd505d570761d4f5fbb6a7a2 Mon Sep 17 00:00:00 2001 From: dsilverm Date: Fri, 9 Apr 2010 22:33:23 +0000 Subject: [PATCH] select only raw data events where the EMCAL was included (needed for calibration events) --- EMCAL/AliEMCALQADataMakerRec.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/EMCAL/AliEMCALQADataMakerRec.cxx b/EMCAL/AliEMCALQADataMakerRec.cxx index 0a00d6d530d..6d0feac53dc 100644 --- a/EMCAL/AliEMCALQADataMakerRec.cxx +++ b/EMCAL/AliEMCALQADataMakerRec.cxx @@ -37,6 +37,7 @@ Change all existing histograms as experts // --- AliRoot header files --- +#include "AliDAQ.h" #include "AliESDCaloCluster.h" #include "AliESDCaloCells.h" #include "AliESDEvent.h" @@ -376,6 +377,13 @@ void AliEMCALQADataMakerRec::MakeESDs(AliESDEvent * esd) void AliEMCALQADataMakerRec::MakeRaws(AliRawReader* rawReader) { //Fill prepared histograms with Raw digit properties + + // make sure EMCal was readout during the event + Int_t emcID = AliDAQ::DetectorID("EMCAL"); // bit 18.. + const UInt_t *detPattern = reader->GetDetectorPattern(); + UInt_t emcInReadout = ( ((1 << emcID) & detPattern[0]) >> emcID); + if (! emcInReadout) return; // no point in looking at this event, if no EMCal data + // setup rawReader->Reset() ; AliCaloRawStreamV3 in(rawReader,"EMCAL"); -- 2.43.0