////////////////////////////////////////////////////////////////////////// // // // RhoNeutralParticleSelector // // // // Selector classes for particle selection // // // // Author List: // // Marcel Kunze, RUB, Feb. 99 // // Copyright (C) 1999-2001, Ruhr-University Bochum. // // Ralf Kliemt, HIM/GSI Feb.2013 (Cleanup & Restructuring) // // // ////////////////////////////////////////////////////////////////////////// #include #include "TDatabasePDG.h" #include "RhoSelector/RhoNeutralParticleSelector.h" #include "RhoBase/RhoCandidate.h" #include "FairRecoCandidate.h" ClassImp ( RhoNeutralParticleSelector ) TBuffer& operator>> ( TBuffer& buf, RhoNeutralParticleSelector *&obj ) { obj = ( RhoNeutralParticleSelector* ) buf.ReadObject ( RhoNeutralParticleSelector::Class() ); return buf; } RhoNeutralParticleSelector::RhoNeutralParticleSelector ( const char* name, const char* type ) : RhoParticleSelectorBase ( name,type ) {} Bool_t RhoNeutralParticleSelector::Accept ( RhoCandidate* b ) { if ( b == 0 ) { return kFALSE; } if ( b->GetCharge() !=0 ) { return kFALSE; } SetTypeAndMass ( b ); return kTRUE; } Bool_t RhoNeutralParticleSelector::Accept ( FairRecoCandidate* b ) { Bool_t decision = kFALSE; if ( b == 0 ) { return kFALSE; } if ( b->GetCharge() ==0 ) { decision = kTRUE; } return decision; }