CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
parityC Class Reference

#include <EvtParityC.hh>

Public Member Functions

virtual ~parityC ()
 

Static Public Member Functions

static void readParityC ()
 
static double getC (string parname)
 

Detailed Description

Definition at line 11 of file EvtParityC.hh.

Constructor & Destructor Documentation

◆ ~parityC()

virtual parityC::~parityC ( )
inlinevirtual

Definition at line 18 of file EvtParityC.hh.

18{}

Member Function Documentation

◆ getC()

double parityC::getC ( string parname)
static

Definition at line 26 of file EvtParityC.cc.

26 {
27 double thepar;
28 thepar = _parityCMap_[parname];
29 //if(thepar ==0 ){cout<<"parity::getP::No entries in parity list available for "<<parname<<endl; abort();}
30 return thepar;
31}

Referenced by EvtLundCharm::decay().

◆ readParityC()

void parityC::readParityC ( )
static

Definition at line 6 of file EvtParityC.cc.

6 {
7 string location = getenv("BESEVTGENROOT");
8 location += "/share/_parityC.list_";
9 //-- debugging
10 cout<<"The _parity.list_ location is "<<location<<endl;
11 //--
12 ifstream file(location.c_str());
13 string parname;
14 double pval;
15 if(file==0){cout<<" parity::readParity: No particle parity list are available"<<endl;abort();}
16 while(!file.eof()){
17 file>>parname>>pval;
18 pair<string, double> prt(parname,pval);
19 //-- for debugging
20 //cout<<"parname, pval "<<parname<<" "<<pval<<endl;
21
22 _parityCMap_.insert(prt);
23 }
24}
#define prt(n)

Referenced by EvtLundCharm::init().


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