FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
analysis
rho
RhoSelector
RhoSimpleProtonSelector.cxx
Go to the documentation of this file.
1
// //
3
// RhoSimpleProtonSelector //
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/RhoSimpleProtonSelector.h
"
18
#include "
RhoBase/RhoCandidate.h
"
19
#include "
PndPidCandidate.h
"
20
21
22
23
24
25
ClassImp
(
RhoSimpleProtonSelector
)
26
27
TBuffer& operator>> ( TBuffer&
buf
,
RhoSimpleProtonSelector
*&
obj
)
28
{
29
obj = (
RhoSimpleProtonSelector
* ) buf.ReadObject ( RhoSimpleProtonSelector::Class() );
30
return
buf
;
31
}
32
33
RhoSimpleProtonSelector::RhoSimpleProtonSelector
(
const
char
*
name
,
const
char
* type ) :
34
RhoParticleSelectorBase
( name,type )
35
{}
36
37
Bool_t
RhoSimpleProtonSelector::Accept
(
RhoCandidate
*
b
)
38
{
39
if
( b == 0 ) {
return
kFALSE; }
40
41
SetTypeAndMass
( b );
42
43
double
Le = b->
GetPidInfo
( 0 );
44
double
Lmu = b->
GetPidInfo
( 1 );
45
double
Lpi = b->
GetPidInfo
( 2 );
46
double
Lk = b->
GetPidInfo
( 3 );
47
double
Lp = b->
GetPidInfo
( 4 );
48
49
if
(
fCriterion
==
loose
) {
50
if
( Lp<0.2 ) {
return
kFALSE; }
51
}
else
if
(
fCriterion
==
veryLoose
||
fCriterion
==
variable
||
fCriterion
==
all
) {
52
return
kTRUE;
53
}
else
if
(
fCriterion
==
best
) {
54
if
( Lp<Le || Lp<Lmu || Lp<Lpi || Lp<Lk ) {
return
kFALSE; }
55
}
else
if
(
fCriterion
==
tight
) {
56
if
( Lp<0.5 ) {
return
kFALSE; }
57
}
else
{
58
if
( Lp<0.9 ) {
return
kFALSE; }
59
}
60
61
return
kTRUE;
62
}
63
64
Bool_t
RhoSimpleProtonSelector::Accept
(
PndPidCandidate
* )
65
{
66
return
kFALSE;
67
}
68
b
TTree * b
Definition:
GammaSpectraAnalysis.C:24
variable
Definition:
RhoParticleSelectorBase.h:25
RhoParticleSelectorBase::fCriterion
criterion fCriterion
Particle type to accept.
Definition:
RhoParticleSelectorBase.h:53
all
Definition:
RhoParticleSelectorBase.h:25
RhoSimpleProtonSelector.h
RhoCandidate.h
PndPidCandidate
Definition:
PndPidCandidate.h:30
RhoSimpleProtonSelector::RhoSimpleProtonSelector
RhoSimpleProtonSelector(const char *name="RhoSimpleProtonSelector", const char *type="p+")
Definition:
RhoSimpleProtonSelector.cxx:33
RhoCandidate
Definition:
RhoCandidate.h:44
tight
Definition:
RhoParticleSelectorBase.h:25
ClassImp
ClassImp(RhoSimpleProtonSelector) TBuffer &operator>>(TBuffer &buf
PndPidCandidate.h
RhoSimpleProtonSelector
Definition:
RhoSimpleProtonSelector.h:28
RhoParticleSelectorBase
Definition:
RhoParticleSelectorBase.h:27
loose
Definition:
RhoParticleSelectorBase.h:25
RhoParticleSelectorBase::SetTypeAndMass
void SetTypeAndMass(RhoCandidate *b)
Definition:
RhoParticleSelectorBase.cxx:143
name
TString name
Definition:
createRootGeoFile.C:82
best
Definition:
RhoParticleSelectorBase.h:25
Bool_t
Bool_t
Definition:
SimCompleteLinkDef.h:6
obj
RhoSimpleProtonSelector *& obj
Definition:
RhoSimpleProtonSelector.cxx:28
veryLoose
Definition:
RhoParticleSelectorBase.h:25
RhoSimpleProtonSelector::Accept
virtual Bool_t Accept(RhoCandidate *b)
Definition:
RhoSimpleProtonSelector.cxx:37
buf
return buf
Definition:
RhoSimpleProtonSelector.cxx:30
RhoCandidate::GetPidInfo
double GetPidInfo(int hypo)
Definition:
RhoCandidate.cxx:1752
Generated on Sun Aug 18 2019 03:01:57 for FairRoot/PandaRoot by
1.8.8