#endif
#include "AliHLTJETTrackCuts.h"
+#include <TDatabasePDG.h>
/** ROOT macro for the implementation of ROOT specific class methods */
ClassImp(AliHLTJETTrackCuts)
// see header file for class documentation
Bool_t bResult = kTRUE;
-
+
if ( ! strcmp(obj->ClassName(),"TParticle") )
bResult = IsSelected( dynamic_cast<TParticle*> (obj));
else if ( ! strcmp(obj->ClassName(),"AliESDtrack") )
bResult = kFALSE;
// -- Charged particles only
- if ( fChargedOnly && !particle->GetPDG()->Charge() )
+ if ( ! particle->GetPDG() )
bResult = kFALSE;
+ else {
+ if ( fChargedOnly && !particle->GetPDG()->Charge() )
+ bResult = kFALSE;
+ }
// -- cut on min Pt
if ( particle->Pt() < fPtMin )
if ( ( esdTrack->Eta() < fEtaMin ) || ( esdTrack->Eta() > fEtaMax ) )
bResult = kFALSE;
- cout << esdTrack->Phi() << endl;
-
// -- cut on phi acceptance
if ( ( esdTrack->Phi() < fPhiMin ) || ( esdTrack->Phi() > fPhiMax ) )
bResult = kFALSE;