From f1f0bd8441b8c2813fb024b2a262bc42d37cbe61 Mon Sep 17 00:00:00 2001 From: gconesab Date: Sat, 29 Aug 2009 21:43:02 +0000 Subject: [PATCH] Remove protection against not initialization of MChandler in the Init, there the MChandler pointer is always 0 --- PWG4/PartCorrBase/AliCaloTrackReader.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/PWG4/PartCorrBase/AliCaloTrackReader.cxx b/PWG4/PartCorrBase/AliCaloTrackReader.cxx index 817abc908bf..a91b9da485f 100755 --- a/PWG4/PartCorrBase/AliCaloTrackReader.cxx +++ b/PWG4/PartCorrBase/AliCaloTrackReader.cxx @@ -299,18 +299,13 @@ void AliCaloTrackReader::Init() //Get the file with second input events if the filename is given //Get the tree and connect the AODEvent. Only with AODs - + if(fReadStack && fReadAODMCParticles){ printf("AliCaloTrackReader::Init() - Cannot access stack and mcparticles at the same time, change them \n"); fReadStack = kFALSE; fReadAODMCParticles = kFALSE; } - if(fReadStack && !fMC) { - printf("AliCaloTrackReader::Init() - MC handler not available, switch off stack reading\n"); - fReadStack = kFALSE; - } - if(fSecondInputFileName!=""){ if(fDataType == kAOD){ TFile * input2 = new TFile(fSecondInputFileName,"read"); -- 2.31.1