FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
analysis
rho
RhoSelector
RhoPlusParticleSelector.cxx
Go to the documentation of this file.
1
// //
3
// RhoPlusParticleSelector //
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/RhoPlusParticleSelector.h
"
18
#include "
RhoBase/RhoCandidate.h
"
19
#include "
PndPidCandidate.h
"
20
21
22
23
ClassImp
(
RhoPlusParticleSelector
)
24
25
TBuffer& operator>> ( TBuffer& buf,
RhoPlusParticleSelector
*&obj )
26
{
27
obj = (
RhoPlusParticleSelector
* ) buf.ReadObject ( RhoPlusParticleSelector::Class() );
28
return
buf;
29
}
30
31
RhoPlusParticleSelector::RhoPlusParticleSelector
(
const
char
*
name
,
const
char
* type ) :
32
RhoParticleSelectorBase
( name,type )
33
{}
34
35
Bool_t
RhoPlusParticleSelector::Accept
(
RhoCandidate
*
b
)
36
{
37
if
( b == 0 ) {
return
kFALSE; }
38
if
( b->
GetCharge
() <0 ) {
return
kFALSE; }
39
SetTypeAndMass
( b );
40
41
return
kTRUE;
42
}
43
44
Bool_t
RhoPlusParticleSelector::Accept
(
PndPidCandidate
*
b
)
45
{
46
Bool_t
decision = kFALSE;
47
if
( b == 0 ) {
return
kFALSE; }
48
if
( b->
GetCharge
() ==1 ) { decision = kTRUE; }
49
return
decision;
50
}
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
RhoCandidate.h
PndPidCandidate
Definition:
PndPidCandidate.h:30
RhoCandidate
Definition:
RhoCandidate.h:44
RhoPlusParticleSelector::RhoPlusParticleSelector
RhoPlusParticleSelector(const char *name="RhoPlusParticleSelector", const char *type=0)
Definition:
RhoPlusParticleSelector.cxx:31
RhoPlusParticleSelector
Definition:
RhoPlusParticleSelector.h:28
RhoPlusParticleSelector::Accept
virtual Bool_t Accept(RhoCandidate *b)
Definition:
RhoPlusParticleSelector.cxx:35
PndPidCandidate.h
RhoParticleSelectorBase
Definition:
RhoParticleSelectorBase.h:27
RhoParticleSelectorBase::SetTypeAndMass
void SetTypeAndMass(RhoCandidate *b)
Definition:
RhoParticleSelectorBase.cxx:143
name
TString name
Definition:
createRootGeoFile.C:82
ClassImp
ClassImp(PndAnaContFact)
Bool_t
Bool_t
Definition:
SimCompleteLinkDef.h:6
RhoPlusParticleSelector.h
Generated on Wed Apr 3 2019 08:44:05 for FairRoot/PandaRoot by
1.8.5