FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
pgenerators
eventFilter
PndSmpFilt.cxx
Go to the documentation of this file.
1
#include "
PndSmpFilt.h
"
2
3
#include <iostream>
4
5
using
std::cout;
6
using
std::endl;
7
8
// --------------------------------------------------------------------
9
10
void
PndSmpFilt::Print
()
11
{
12
if
(
compo
)
13
{
14
cout <<
"----------------"
<<endl<<
"mass + count filter \""
<<
name
<<
"\""
<<endl<<
"----------------"
<<endl;
15
cout <<
" dau : "
;
16
for
(
int
j=0;j<
ndau
;++j) cout <<
pdg
[j] <<
" "
;
// << " (" << code_name_map[pdg[j]] << ") ";
17
if
(!
nocc
) cout <<
" (+ c.c.)"
;
18
cout << endl;
19
}
20
else
21
{
22
cout <<
"----------------"
<<endl<<
"count filter \""
<<
name
<<
"\""
<<endl<<
"----------------"
<< endl;
23
cout <<
" pdg : "
<<
pdg
[0] << endl;
// << " (" << code_name_map[pdg[0]] << ")" << endl;
24
}
25
26
if
(
nmin
>0 ||
nmax
<10000){
27
cout <<
" mul : "
;
28
if
(
nmax
==10000) cout <<
" >= "
<<
nmin
<< endl;
29
else
if
(
nmin
==
nmax
) cout <<
nmin
<<endl;
30
else
if
(
nmin
==0 ) cout <<
" <= "
<<
nmax
<< endl;
31
else
cout <<
nmin
<<
" ... "
<<
nmax
<< endl;
32
}
33
34
if
(
pmin
>0 ||
pmax
<1e8)
35
{
36
cout <<
" p : "
;
37
if
(
pmax
==1e8) cout <<
" >= "
<<
pmin
<<
" GeV/c"
<< endl;
38
else
if
(
pmin
==0 ) cout <<
" <= "
<<
pmax
<<
" GeV/c"
<< endl;
39
else
cout <<
pmin
<<
" ... "
<<
pmax
<<
" GeV/c"
<< endl;
40
}
41
42
if
(
ptmin
>0 ||
ptmax
<1e8)
43
{
44
cout <<
" pt : "
;
45
if
(
ptmax
==1e8) cout <<
" >= "
<<
ptmin
<<
" GeV/c"
<< endl;
46
else
if
(
ptmin
==0 ) cout <<
" <= "
<<
ptmax
<<
" GeV/c"
<< endl;
47
else
cout <<
ptmin
<<
" ... "
<<
ptmax
<<
" GeV/c"
<< endl;
48
}
49
50
if
(
pzmin
>-1e8 ||
pzmax
<1e8)
51
{
52
cout <<
" pz : "
;
53
if
(
pzmax
==1e8) cout <<
" >= "
<<
pzmin
<<
" GeV/c"
<< endl;
54
else
if
(
pzmin
==-1e8 ) cout <<
" <= "
<<
pzmax
<<
" GeV/c"
<< endl;
55
else
cout <<
pzmin
<<
" ... "
<<
pzmax
<<
" GeV/c"
<< endl;
56
}
57
58
if
(
thtmin
>0 ||
thtmax
<180)
59
{
60
cout <<
" tht : "
;
61
if
(
thtmax
==180) cout <<
" >= "
<<
thtmin
<<
" deg"
<< endl;
62
else
if
(
thtmin
==0 ) cout <<
" <= "
<<
thtmax
<<
" deg"
<< endl;
63
else
cout <<
thtmin
<<
" ... "
<<
thtmax
<<
" deg"
<< endl;
64
}
65
66
if
(
phimin
>-1e8 ||
phimax
<1e8)
67
{
68
cout <<
" phi : "
;
69
if
(
phimax
==1e8) cout <<
" >= "
<<
phimin
<<
" deg"
<< endl;
70
else
if
(
phimin
==-1e8 ) cout <<
" <= "
<<
phimax
<<
" deg"
<< endl;
71
else
cout <<
phimin
<<
" ... "
<<
phimax
<<
" deg"
<< endl;
72
}
73
74
75
if
(
compo
) cout <<
" mass : "
<<
mcntr
<<
" +- 0.5*"
<<
mwin
<<
" ["
<<
mcntr
-
mwin
/2<<
" ... "
<<
mcntr
+
mwin
/2.<<
"] GeV/c2"
<<endl;
76
if
(
veto
) cout <<
" VETO FILTER"
<<endl;
77
78
cout <<
"----------------"
<<endl;
79
}
80
81
// -------------------------------------------------------------------------
82
83
ClassImp
(
PndSmpFilt
)
84
PndSmpFilt::nmax
int nmax
Definition:
PndSmpFilt.h:33
PndSmpFilt::pzmin
double pzmin
Definition:
PndSmpFilt.h:36
PndSmpFilt.h
PndSmpFilt::phimin
double phimin
Definition:
PndSmpFilt.h:38
PndSmpFilt::ndau
int ndau
Definition:
PndSmpFilt.h:40
PndSmpFilt::pzmax
double pzmax
Definition:
PndSmpFilt.h:36
PndSmpFilt
Simple container for filter definition (criteria) for PndFilteredPrimaryGenerator.
Definition:
PndSmpFilt.h:19
PndSmpFilt::ptmax
double ptmax
Definition:
PndSmpFilt.h:35
PndSmpFilt::pmin
double pmin
Definition:
PndSmpFilt.h:34
PndSmpFilt::Print
void Print()
Definition:
PndSmpFilt.cxx:10
PndSmpFilt::nocc
bool nocc
Definition:
PndSmpFilt.h:42
PndSmpFilt::pmax
double pmax
Definition:
PndSmpFilt.h:34
PndSmpFilt::nmin
int nmin
Definition:
PndSmpFilt.h:33
PndSmpFilt::mcntr
double mcntr
Definition:
PndSmpFilt.h:41
PndSmpFilt::thtmax
double thtmax
Definition:
PndSmpFilt.h:37
PndSmpFilt::ptmin
double ptmin
Definition:
PndSmpFilt.h:35
ClassImp
ClassImp(PndAnaContFact)
PndSmpFilt::name
TString name
Definition:
PndSmpFilt.h:27
PndSmpFilt::mwin
double mwin
Definition:
PndSmpFilt.h:41
PndSmpFilt::compo
bool compo
Definition:
PndSmpFilt.h:29
PndSmpFilt::pdg
int pdg[5]
Definition:
PndSmpFilt.h:32
PndSmpFilt::phimax
double phimax
Definition:
PndSmpFilt.h:38
PndSmpFilt::veto
bool veto
Definition:
PndSmpFilt.h:30
PndSmpFilt::thtmin
double thtmin
Definition:
PndSmpFilt.h:37
Generated on Wed Apr 3 2019 08:44:01 for FairRoot/PandaRoot by
1.8.5