FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
analysis
rho
RhoSelector
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
15
#include "
RhoSelector/RhoChargedParticleSelector.h
"
16
#include "
RhoBase/RhoCandidate.h
"
17
#include "
PndPidCandidate.h
"
18
19
20
ClassImp
(
RhoChargedParticleSelector
)
21
22
TBuffer& operator>> ( TBuffer& buf,
RhoChargedParticleSelector
*&obj )
23
{
24
obj = (
RhoChargedParticleSelector
* ) buf.ReadObject ( RhoChargedParticleSelector::Class() );
25
return
buf;
26
}
27
28
RhoChargedParticleSelector::RhoChargedParticleSelector
(
const
char
*
name
,
const
char
* type ) :
29
RhoParticleSelectorBase
( name,type )
30
{}
31
32
Bool_t
RhoChargedParticleSelector::Accept
(
RhoCandidate
&
b
)
33
{
34
if
( &b == 0 ) {
return
kFALSE; }
35
if
( b.
GetCharge
() ==0 ) {
return
kFALSE; }
36
//SetTypeAndMass(b);
37
38
return
kTRUE;
39
}
40
41
Bool_t
RhoChargedParticleSelector::Accept
(
PndPidCandidate
&
b
)
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
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
RhoCandidate.h
PndPidCandidate
Definition:
PndPidCandidate.h:30
RhoCandidate
Definition:
RhoCandidate.h:44
PndPidCandidate.h
RhoParticleSelectorBase
Definition:
RhoParticleSelectorBase.h:27
RhoChargedParticleSelector::RhoChargedParticleSelector
RhoChargedParticleSelector(const char *name="RhoChargedParticleSelector", const char *type=0)
Definition:
RhoChargedParticleSelector.cxx:28
RhoChargedParticleSelector
Definition:
RhoChargedParticleSelector.h:25
name
TString name
Definition:
createRootGeoFile.C:82
ClassImp
ClassImp(PndAnaContFact)
Bool_t
Bool_t
Definition:
SimCompleteLinkDef.h:6
RhoChargedParticleSelector::Accept
virtual Bool_t Accept(RhoCandidate &b)
Definition:
RhoChargedParticleSelector.cxx:32
RhoChargedParticleSelector.h
Generated on Wed Apr 3 2019 10:03:00 for FairRoot/PandaRoot by
1.8.5