When we were running p17 skimming for the single top, we got this error:
cafe: caught exception during running: METsigAlg [met_significance] ERROR. ApplyMuonSmear must be run for MC.
We found that this error comes from
We did a hack in the file like this and gmake caf_util.all and the error went away. The part between /* ... */ were the original codes.
cafe: caught exception during running: METsigAlg [met_significance] ERROR. ApplyMuonSmear must be run for MC.
We found that this error comes from
caf_util/src/METsigAlg.cpp
We did a hack in the file like this and gmake caf_util.all and the error went away. The part between /* ... */ were the original codes.
if ( _event->isRun2b() ) option = "Run2b" ;
else { option="Run2a"; }
/*
else {
// period is 0 for RunIIa pre-shutdown and 1 for post-shutdown
if (_event->isMC()) {
// Get period from ApplyMuonSmear!
int period = -1;
if ( !_event->get("caf_mc_util::period", period) )
throw runtime_error("METsigAlg [" + name() + "] ERROR. ApplyMuonSmear must be run for MC.");
if (period==0) option = "Run2a0";
else if (period==1) option = "Run2a1";
// DATA
} else {
const TMBGlobal *global = _event->getGlobal();
if (global->runno()<200000) option = "Run2a0";
else option = "Run2a1";
}
}
*/
else { option="Run2a"; }
/*
else {
// period is 0 for RunIIa pre-shutdown and 1 for post-shutdown
if (_event->isMC()) {
// Get period from ApplyMuonSmear!
int period = -1;
if ( !_event->get("caf_mc_util::period", period) )
throw runtime_error("METsigAlg [" + name() + "] ERROR. ApplyMuonSmear must be run for MC.");
if (period==0) option = "Run2a0";
else if (period==1) option = "Run2a1";
// DATA
} else {
const TMBGlobal *global = _event->getGlobal();
if (global->runno()<200000) option = "Run2a0";
else option = "Run2a1";
}
}
*/
Comments
Post a Comment
https://gengwg.blogspot.com/