Skip to content
Snippets Groups Projects
Commit 853ca358 authored by Bertram Kopf's avatar Bertram Kopf
Browse files

minor bug fix for performing qa with efficiency correction

parent e809e087
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,7 @@ ParserBase::ParserBase(int argc,char **argv)
, _config(new po::options_description("Configuration file options"))
,_useDataEvtWeight(false)
,_useMCEvtWeight(false)
,_useTruthEvtWeight(false)
,_usePhaseSpaceHyp(false)
,_doScaling(false)
,_pdgTableFile("/Particle/pdtNew.table")
......@@ -122,6 +123,7 @@ ParserBase::ParserBase(int argc,char **argv)
("saveContributionHistos",po::value<bool>(&_saveContributionHistos), "creates a histogram root-file for each contribution of Option: calcContribution")
("useDataEventWeight",po::value<bool>(&_useDataEvtWeight), "enable/disable input for data event weight")
("useMCEventWeight",po::value<bool>(&_useMCEvtWeight), "enable/disable input for Monte Carlo event weight")
("useTruthEventWeight",po::value<bool>(&_useTruthEvtWeight), "enable/disable input for truth event weight")
("usePhaseSpaceHyp",po::value<bool>(&_usePhaseSpaceHyp), "use hypothesis for phase space")
("doScaling",po::value<bool>(&_doScaling), "enable/disable prefit with free scaling factor")
("name",po::value<string>(&_outputFileNameSuffix), "name that is attached to all otuput file names")
......@@ -247,6 +249,7 @@ bool ParserBase::parseCommandLine(int argc, char **argv)
<< "cache amplitudes: " << _cacheAmps << "\n\n"
<< "use data event weight: " << _useDataEvtWeight << "\n\n"
<< "use Monte Carlo event weight: " << _useMCEvtWeight << "\n\n"
<< "use truth event weight: " << _useTruthEvtWeight << "\n\n"
<< "use phase space hyp: " << _usePhaseSpaceHyp << "\n\n"
<< "prefit with free scaling factor: " << _doScaling << "\n\n"
<< "pdg table: " << _pdgTableFile << "\n\n"
......
......@@ -82,6 +82,7 @@ public:
const bool saveContributionHistos() const {return _saveContributionHistos;}
const bool useDataEvtWeight() const {return _useDataEvtWeight; }
const bool useMCEvtWeight() const {return _useMCEvtWeight; }
const bool useTruthEvtWeight() const {return _useTruthEvtWeight; }
const bool usePhaseSpaceHyp() const {return _usePhaseSpaceHyp; }
const bool doScaling() const {return _doScaling;}
const std::string pdgTableFile() const {return _pdgTableFile;}
......@@ -150,6 +151,7 @@ protected:
po::options_description* _config;
bool _useDataEvtWeight;
bool _useMCEvtWeight;
bool _useTruthEvtWeight;
bool _usePhaseSpaceHyp;
bool _doScaling;
std::string _pdgTableFile;
......
......@@ -249,7 +249,7 @@ int main(int __argc,char *__argv[]){
std::vector<std::string> truthFileNames;
truthFileNames.push_back(truthFile);
EventList truthData;
theAppBase.readEvents(truthData, truthFileNames, 0, GlobalEnv::instance()->Channel()->useMCEvtWeight(), 0, maxTruthEvts-1);
theAppBase.readEvents(truthData, truthFileNames, 0, GlobalEnv::instance()->parser()->useTruthEvtWeight(), 0, maxTruthEvts-1);
theAppBase.qaModeEffCorrection(eventsData, mcData, truthData, startPawianParams);
return 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment