Skip to content

Commit

Permalink
Merge pull request #23391 from maciacco/master
Browse files Browse the repository at this point in the history
add flag to avoid reading trackrefs
  • Loading branch information
alibuild authored Apr 24, 2024
2 parents 9af1803 + b4504ff commit f9d7e3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions RUN3/AliAnalysisTaskAO2Dconverter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,7 @@ void AliAnalysisTaskAO2Dconverter::FillEventInTF()
{
if (fESD) {
AliMCEventHandler *eventHandler = dynamic_cast<AliMCEventHandler *>(AliAnalysisManager::GetAnalysisManager()->GetMCtruthEventHandler()); //Get the MC handler
eventHandler->SetReadTR(fReadTR);

if (!eventHandler) //Check on the MC handler
AliFatal("Could not retrieve MC event handler");
Expand Down
2 changes: 2 additions & 0 deletions RUN3/AliAnalysisTaskAO2Dconverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class AliAnalysisTaskAO2Dconverter : public AliAnalysisTaskSE
void SetEMCALFractionL1MonitoringEvents(Double_t fraction) { fFractionL1MonitorEventsEMCAL = fraction; }
void SetEMCALTriggerReducedPayload(Bool_t reduced) { fEMCALReducedTriggerPayload = reduced; }
void SetUsePHOSTriggerMap(Bool_t toUse=kTRUE) { fUsePHOSBadMap = toUse; }
void SetReadTR(Bool_t readTR = true) {fReadTR = readTR;};

static AliAnalysisTaskAO2Dconverter* AddTask(TString suffix = "");
enum TreeIndex { // Index of the output trees
Expand Down Expand Up @@ -190,6 +191,7 @@ class AliAnalysisTaskAO2Dconverter : public AliAnalysisTaskSE
private:
Bool_t fUseEventCuts = kFALSE; // Use or not event cuts
Bool_t fUseTriggerAnalysis = kTRUE; // Use or not trigger analysis
Bool_t fReadTR = false;
AliEventCuts fEventCuts; // Standard event cuts
AliTriggerAnalysis fTriggerAnalysis; // Trigger analysis object for event selection
AliGRPObject *fGRP = nullptr; //! Global run parameters
Expand Down

0 comments on commit f9d7e3d

Please sign in to comment.