Skip to content

Commit

Permalink
Added TightBad eventClean (#1677)
Browse files Browse the repository at this point in the history
Co-authored-by: Russell Bate <[email protected]>
  • Loading branch information
russbate42 and Russell Bate authored Apr 3, 2024
1 parent 8bc0c28 commit a87d6f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Root/EventInfo.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ void EventInfo::setTree(TTree *tree)
connectBranch<uint32_t>(tree, "SCTFlags", &m_SCTFlags);
connectBranch<uint32_t>(tree, "LArFlags", &m_LArFlags);
connectBranch<bool >(tree, "eventClean_LooseBad", &m_eventClean_LooseBad);
connectBranch<bool >(tree, "eventClean_TightBad", &m_eventClean_TightBad);
}

if ( m_infoSwitch.m_pileup ) {
Expand Down Expand Up @@ -160,6 +161,7 @@ void EventInfo::setBranches(TTree *tree)
tree->Branch("SCTFlags", &m_SCTFlags, "SCTFlags/i");
tree->Branch("LArFlags", &m_LArFlags, "LArFlags/i");
tree->Branch("eventClean_LooseBad",&m_eventClean_LooseBad,"eventClean_LooseBad/O");
tree->Branch("eventClean_TightBad",&m_eventClean_TightBad,"eventClean_TightBad/O");
}

if ( m_infoSwitch.m_pileup ) {
Expand Down Expand Up @@ -235,6 +237,7 @@ void EventInfo::clear()
m_TileFlags = 0;
m_SCTFlags = 0;
m_eventClean_LooseBad = false;
m_eventClean_TightBad = false;
m_mcEventWeight = 1.;
m_DistEmptyBCID = -999;
m_DistLastUnpairedBCID = -999;
Expand Down Expand Up @@ -332,6 +335,9 @@ void EventInfo::FillEvent( const xAOD::EventInfo* eventInfo, xAOD::TEvent* event
static SG::AuxElement::ConstAccessor< char > acc_DFCommonJets_eventClean_LooseBad("DFCommonJets_eventClean_LooseBad");
if ( acc_DFCommonJets_eventClean_LooseBad.isAvailable( *eventInfo ))
m_eventClean_LooseBad = acc_DFCommonJets_eventClean_LooseBad( *eventInfo );
static SG::AuxElement::ConstAccessor< char > acc_DFCommonJets_eventClean_TightBad("DFCommonJets_eventClean_TightBad");
if ( acc_DFCommonJets_eventClean_TightBad.isAvailable( *eventInfo ))
m_eventClean_TightBad = acc_DFCommonJets_eventClean_TightBad( *eventInfo );

}

Expand Down
1 change: 1 addition & 0 deletions xAODAnaHelpers/EventInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ namespace xAH {
uint32_t m_LArFlags;
uint32_t m_SCTFlags;
bool m_eventClean_LooseBad;
bool m_eventClean_TightBad;
int m_mcEventNumber;
int m_mcChannelNumber;
float m_mcEventWeight;
Expand Down

0 comments on commit a87d6f6

Please sign in to comment.