FairRoot/PandaRoot
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 
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 
84 
double pzmin
Definition: PndSmpFilt.h:36
double phimin
Definition: PndSmpFilt.h:38
double pzmax
Definition: PndSmpFilt.h:36
Simple container for filter definition (criteria) for PndFilteredPrimaryGenerator.
Definition: PndSmpFilt.h:19
double ptmax
Definition: PndSmpFilt.h:35
double pmin
Definition: PndSmpFilt.h:34
void Print()
Definition: PndSmpFilt.cxx:10
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
ClassImp(PndAnaContFact)
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