FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
analysis
rho
RhoSelector
RhoNeutralParticleSelector.cxx
Go to the documentation of this file.
1
// //
3
// RhoNeutralParticleSelector //
4
// //
5
// Selector classes for particle selection //
6
// //
7
// Author List: //
8
// Marcel Kunze, RUB, Feb. 99 //
9
// Copyright (C) 1999-2001, Ruhr-University Bochum. //
10
// Ralf Kliemt, HIM/GSI Feb.2013 (Cleanup & Restructuring) //
11
// //
13
14
#include <math.h>
15
#include "TDatabasePDG.h"
16
17
#include "
RhoSelector/RhoNeutralParticleSelector.h
"
18
#include "
RhoBase/RhoCandidate.h
"
19
#include "
PndPidCandidate.h
"
20
21
22
23
24
ClassImp
(
RhoNeutralParticleSelector
)
25
26
TBuffer& operator>> ( TBuffer& buf,
RhoNeutralParticleSelector
*&obj )
27
{
28
obj = (
RhoNeutralParticleSelector
* ) buf.ReadObject ( RhoNeutralParticleSelector::Class() );
29
return
buf;
30
}
31
32
RhoNeutralParticleSelector::RhoNeutralParticleSelector
(
const
char
*
name
,
const
char
* type ) :
33
RhoParticleSelectorBase
( name,type )
34
{}
35
36
Bool_t
RhoNeutralParticleSelector::Accept
(
RhoCandidate
*
b
)
37
{
38
if
( b == 0 ) {
return
kFALSE; }
39
if
( b->
GetCharge
() !=0 ) {
return
kFALSE; }
40
SetTypeAndMass
( b );
41
42
return
kTRUE;
43
}
44
45
Bool_t
RhoNeutralParticleSelector::Accept
(
PndPidCandidate
*
b
)
46
{
47
Bool_t
decision = kFALSE;
48
if
( b == 0 ) {
return
kFALSE; }
49
if
( b->
GetCharge
() ==0 ) { decision = kTRUE; }
50
return
decision;
51
}
52
PndPidCandidate::GetCharge
Int_t GetCharge() const
Definition:
PndPidCandidate.h:49
RhoCandidate::GetCharge
Double_t GetCharge() const
Definition:
RhoCandidate.h:183
b
TTree * b
Definition:
GammaSpectraAnalysis.C:24
RhoNeutralParticleSelector.h
RhoCandidate.h
PndPidCandidate
Definition:
PndPidCandidate.h:30
RhoCandidate
Definition:
RhoCandidate.h:44
RhoNeutralParticleSelector::RhoNeutralParticleSelector
RhoNeutralParticleSelector(const char *name="RhoNeutralParticleSelector", const char *type=0)
Definition:
RhoNeutralParticleSelector.cxx:32
PndPidCandidate.h
RhoNeutralParticleSelector
Definition:
RhoNeutralParticleSelector.h:28
RhoParticleSelectorBase
Definition:
RhoParticleSelectorBase.h:27
RhoParticleSelectorBase::SetTypeAndMass
void SetTypeAndMass(RhoCandidate *b)
Definition:
RhoParticleSelectorBase.cxx:143
name
TString name
Definition:
createRootGeoFile.C:82
RhoNeutralParticleSelector::Accept
virtual Bool_t Accept(RhoCandidate *b)
Definition:
RhoNeutralParticleSelector.cxx:36
ClassImp
ClassImp(PndAnaContFact)
Bool_t
Bool_t
Definition:
SimCompleteLinkDef.h:6
Generated on Wed Apr 3 2019 10:03:01 for FairRoot/PandaRoot by
1.8.5