FairRoot/PandaRoot
RhoChargedParticleSelector.cxx
Go to the documentation of this file.
1 // //
3 // Selector classes for charged particle selection //
4 // //
5 // Author List: //
6 // Marcel Kunze, RUB, Feb. 99 //
7 // Copyright (C) 1999-2001, Ruhr-University Bochum. //
8 // Ralf Kliemt, HIM/GSI Feb.2013 (Cleanup & Restructuring) //
9 // //
11 
12 #include <math.h>
13 #include "TDatabasePDG.h"
14 
16 #include "RhoBase/RhoCandidate.h"
17 #include "PndPidCandidate.h"
18 
19 
21 
22 TBuffer& operator>> ( TBuffer& buf, RhoChargedParticleSelector *&obj )
23 {
24  obj = ( RhoChargedParticleSelector* ) buf.ReadObject ( RhoChargedParticleSelector::Class() );
25  return buf;
26 }
27 
29  RhoParticleSelectorBase ( name,type )
30 {}
31 
33 {
34  if ( &b == 0 ) { return kFALSE; }
35  if ( b.GetCharge() ==0 ) { return kFALSE; }
36  //SetTypeAndMass(b);
37 
38  return kTRUE;
39 }
40 
42 {
43  Bool_t decision = kFALSE;
44  if ( &b == 0 ) { return kFALSE; }
45  if ( b.GetCharge() !=0 ) { decision = kTRUE; }
46  return decision;
47 }
48 
49 
50 
Int_t GetCharge() const
Double_t GetCharge() const
Definition: RhoCandidate.h:183
TTree * b
RhoChargedParticleSelector(const char *name="RhoChargedParticleSelector", const char *type=0)
TString name
RhoChargedParticleSelector *& obj
ClassImp(RhoChargedParticleSelector) TBuffer &operator>>(TBuffer &buf
virtual Bool_t Accept(RhoCandidate &b)