parityC Class Reference

#include <EvtParityC.hh>

List of all members.

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_


Detailed Description

Definition at line 11 of file EvtParityC.hh.


Constructor & Destructor Documentation

virtual parityC::~parityC (  )  [inline, virtual]

Definition at line 18 of file EvtParityC.hh.

00018 {}


Member Function Documentation

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 }


Member Data Documentation

std::map< string, double > parityC::_parityCMap_ [static, private]

Definition at line 20 of file EvtParityC.hh.

Referenced by getC(), and readParityC().


Generated on Tue Nov 29 23:20:38 2016 for BOSS_7.0.2 by  doxygen 1.4.7