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