BOSS 8.0.0
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 17 of file EvtParityC.hh.

17{}

Member Function Documentation

◆ getC()

double parityC::getC ( string parname)
static

Definition at line 30 of file EvtParityC.cc.

30 {
31 double thepar;
32 thepar = _parityCMap_[parname];
33 // if(thepar ==0 ){cout<<"parity::getP::No entries in parity list available for
34 // "<<parname<<endl; abort();}
35 return thepar;
36}

Referenced by EvtLundCharm::decay().

◆ readParityC()

void parityC::readParityC ( )
static

Definition at line 5 of file EvtParityC.cc.

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

Referenced by EvtLundCharm::init().


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