switch (fInputType[index])
{
- case kAOD: return GetRsnFromAOD(index);
- case kESD: return GetRsnFromESD(index);
- case kESDMC: return GetRsnFromESDMC(index);
- case kMC: return GetRsnFromMC(index);
- case kRSN: return GetRsnFromRSN(index);
+ case kAOD: return GetRsnFromAOD(index);
+ case kESD: return GetRsnFromESD(index);
+ case kESDMC: return GetRsnFromESDMC(index);
+ case kESDTPC: return GetRsnFromESD(index);
+ case kESDMCTPC: return GetRsnFromESDMC(index);
+ case kMC: return GetRsnFromMC(index);
+ case kRSN: return GetRsnFromRSN(index);
default:
AliError("Type not supported ...");
return (AliRsnEvent*) 0x0;
// Gets RSN event from ESD
//
+ // bool value to know if it is TPC only or not
+ Bool_t tpcOnly = (fInputType[index] == kESDTPC || fInputType[index] == kESDMCTPC);
+
if (!fRsnESD[index])
{
AliError("fRsnESD not available.");
// clear pevious event
fRSN[index]->Clear();
- if (!fReader.FillFromESD(fRSN[index], fRsnESD[index])) return (AliRsnEvent*) 0x0;
+ if (!fReader.FillFromESD(fRSN[index], fRsnESD[index], 0x0, tpcOnly)) return (AliRsnEvent*) 0x0;
if (!fPID.Process(fRSN[index]))
{
// Gets RSN event from ESD and MC
//
+ // bool value to know if it is TPC only or not
+ Bool_t tpcOnly = (fInputType[index] == kESDTPC || fInputType[index] == kESDMCTPC);
+
if (!fRsnESD[index])
{
AliError("fRsnESD not available.");
fRsnMC[index] = MCEvent();
if (!fRsnMC[index]) return (AliRsnEvent *) 0x0;
- if (!fReader.FillFromESD(fRSN[index], fRsnESD[index], fRsnMC[index])) return (AliRsnEvent*) 0x0;
+ if (!fReader.FillFromESD(fRSN[index], fRsnESD[index], fRsnMC[index], tpcOnly)) return (AliRsnEvent*) 0x0;
if (!fPID.Process(fRSN[index]))
{
AliWarning("Failed PID");