/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenBase/EvtParityC.cc

Go to the documentation of this file.
00001 #include "EvtParityC.hh"
00002 
00003 std::map<string, double> parityC::_parityCMap_;
00004 
00005 
00006 void parityC::readParityC(){
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 }
00025 
00026 double parityC::getC(string parname){
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 } 

Generated on Tue Nov 29 23:12:14 2016 for BOSS_7.0.2 by  doxygen 1.4.7