#include <EvtParityC.hh>
Public Member Functions | |
virtual | ~parityC () |
Static Public Member Functions | |
static void | readParityC () |
static double | getC (string parname) |
Static Private Attributes | |
static std::map< string, double > | _parityCMap_ |
Definition at line 11 of file EvtParityC.hh.
virtual parityC::~parityC | ( | ) | [inline, virtual] |
double parityC::getC | ( | string | parname | ) | [static] |
Definition at line 26 of file EvtParityC.cc.
References _parityCMap_.
Referenced by EvtLundCharm::decay().
00026 { 00027 double thepar; 00028 thepar = _parityCMap_[parname]; 00029 //if(thepar ==0 ){cout<<"parity::getP::No entries in parity list available for "<<parname<<endl; abort();} 00030 return thepar; 00031 }
void parityC::readParityC | ( | ) | [static] |
Definition at line 6 of file EvtParityC.cc.
References _parityCMap_, file, prt, and deljobs::string.
Referenced by EvtLundCharm::init().
00006 { 00007 string location = getenv("BESEVTGENROOT"); 00008 location += "/share/_parityC.list_"; 00009 //-- debugging 00010 cout<<"The _parity.list_ location is "<<location<<endl; 00011 //-- 00012 ifstream file(location.c_str()); 00013 string parname; 00014 double pval; 00015 if(file==0){cout<<" parity::readParity: No particle parity list are available"<<endl;abort();} 00016 while(!file.eof()){ 00017 file>>parname>>pval; 00018 pair<string, double> prt(parname,pval); 00019 //-- for debugging 00020 //cout<<"parname, pval "<<parname<<" "<<pval<<endl; 00021 00022 _parityCMap_.insert(prt); 00023 } 00024 }
std::map< string, double > parityC::_parityCMap_ [static, private] |