FairRoot/PandaRoot
Public Member Functions | Public Attributes | List of all members
PndSmpFilt Class Reference

Simple container for filter definition (criteria) for PndFilteredPrimaryGenerator. More...

#include <PndSmpFilt.h>

Public Member Functions

 PndSmpFilt ()
 
void Print ()
 

Public Attributes

TString name
 
bool compo
 
bool veto
 
int pdg [5]
 
int nmin
 
int nmax
 
double pmin
 
double pmax
 
double ptmin
 
double ptmax
 
double pzmin
 
double pzmax
 
double thtmin
 
double thtmax
 
double phimin
 
double phimax
 
int ndau
 
double mcntr
 
double mwin
 
bool nocc
 

Detailed Description

Simple container for filter definition (criteria) for PndFilteredPrimaryGenerator.

Author
Klaus Goetzen <k [dot] goetzen (at) gsi [dot] de>

Definition at line 19 of file PndSmpFilt.h.

Constructor & Destructor Documentation

PndSmpFilt::PndSmpFilt ( )
inline

Definition at line 21 of file PndSmpFilt.h.

References pdg.

21  : name(""), compo(false), veto(false), nmin(1), nmax(10000), pmin(0.0), pmax(1e8), ptmin(0.0), ptmax(1e8),
22  pzmin(-1e8), pzmax(1e8), thtmin(0.0), thtmax(180.0), phimin(-1e8), phimax(1e8), ndau(0), mcntr(0.0), mwin(0.0), nocc(false)
23  { pdg[0] = pdg[1] = pdg[2] = pdg[3] = pdg[4] = 0; }
double pzmin
Definition: PndSmpFilt.h:36
double phimin
Definition: PndSmpFilt.h:38
double pzmax
Definition: PndSmpFilt.h:36
double ptmax
Definition: PndSmpFilt.h:35
double pmin
Definition: PndSmpFilt.h:34
bool nocc
Definition: PndSmpFilt.h:42
double pmax
Definition: PndSmpFilt.h:34
double mcntr
Definition: PndSmpFilt.h:41
double thtmax
Definition: PndSmpFilt.h:37
double ptmin
Definition: PndSmpFilt.h:35
TString name
Definition: PndSmpFilt.h:27
double mwin
Definition: PndSmpFilt.h:41
bool compo
Definition: PndSmpFilt.h:29
int pdg[5]
Definition: PndSmpFilt.h:32
double phimax
Definition: PndSmpFilt.h:38
bool veto
Definition: PndSmpFilt.h:30
double thtmin
Definition: PndSmpFilt.h:37

Member Function Documentation

void PndSmpFilt::Print ( )

Definition at line 10 of file PndSmpFilt.cxx.

References compo, mcntr, mwin, name, ndau, nmax, nmin, nocc, pdg, phimax, phimin, pmax, pmin, ptmax, ptmin, pzmax, pzmin, thtmax, thtmin, and veto.

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 }
double pzmin
Definition: PndSmpFilt.h:36
double phimin
Definition: PndSmpFilt.h:38
double pzmax
Definition: PndSmpFilt.h:36
double ptmax
Definition: PndSmpFilt.h:35
double pmin
Definition: PndSmpFilt.h:34
bool nocc
Definition: PndSmpFilt.h:42
double pmax
Definition: PndSmpFilt.h:34
double mcntr
Definition: PndSmpFilt.h:41
double thtmax
Definition: PndSmpFilt.h:37
double ptmin
Definition: PndSmpFilt.h:35
TString name
Definition: PndSmpFilt.h:27
double mwin
Definition: PndSmpFilt.h:41
bool compo
Definition: PndSmpFilt.h:29
int pdg[5]
Definition: PndSmpFilt.h:32
double phimax
Definition: PndSmpFilt.h:38
bool veto
Definition: PndSmpFilt.h:30
double thtmin
Definition: PndSmpFilt.h:37

Member Data Documentation

bool PndSmpFilt::compo
double PndSmpFilt::mcntr
double PndSmpFilt::mwin
TString PndSmpFilt::name

Definition at line 27 of file PndSmpFilt.h.

Referenced by PndFilteredPrimaryGenerator::AddFilter(), and Print().

int PndSmpFilt::ndau
int PndSmpFilt::nmax
int PndSmpFilt::nmin

Definition at line 33 of file PndSmpFilt.h.

Referenced by PndFilteredPrimaryGenerator::AddFilter(), and Print().

bool PndSmpFilt::nocc
int PndSmpFilt::pdg[5]
double PndSmpFilt::phimax
double PndSmpFilt::phimin
double PndSmpFilt::pmax
double PndSmpFilt::pmin
double PndSmpFilt::ptmax
double PndSmpFilt::ptmin
double PndSmpFilt::pzmax
double PndSmpFilt::pzmin
double PndSmpFilt::thtmax
double PndSmpFilt::thtmin
bool PndSmpFilt::veto

The documentation for this class was generated from the following files: