Skip to content

Commit

Permalink
Merge pull request #79 from UCATLAS/metaDataFlag
Browse files Browse the repository at this point in the history
flag to skip metadata stuff for Derivations >= 20.1.5
  • Loading branch information
mmilesi committed Jun 2, 2015
2 parents ec9ac1b + 8a4e531 commit a2727f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Root/BasicEventSelection.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ EL::StatusCode BasicEventSelection :: configure ()
m_PVNTrack = config->GetValue("NTrackForPrimaryVertex", m_PVNTrack); // harmonized cut
}

// temp flag for derivations with broken meta data
m_useMetaData = config->GetValue("UseMetaData", true);

// Trigger
m_triggerSelection = config->GetValue("Trigger", m_triggerSelection.c_str());
m_cutOnTrigger = config->GetValue("CutOnTrigger", m_cutOnTrigger);
Expand Down Expand Up @@ -238,7 +241,7 @@ EL::StatusCode BasicEventSelection :: fileExecute ()
//check if file is from a DxAOD
bool m_isDerivation = !MetaData->GetBranch("StreamAOD");

if ( m_isDerivation ) {
if ( m_isDerivation && m_useMetaData ) {

// check for corruption
const xAOD::CutBookkeeperContainer* incompleteCBC(nullptr);
Expand Down
1 change: 1 addition & 0 deletions xAODAnaHelpers/BasicEventSelection.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class BasicEventSelection : public xAH::Algorithm
std::string m_GRLxml;
//PU Reweighting
bool m_doPUreweighting;
bool m_useMetaData;
std::string m_triggerSelection;
bool m_cutOnTrigger;
bool m_storeTrigDecisions;
Expand Down

0 comments on commit a2727f0

Please sign in to comment.