Skip to content

Commit

Permalink
commit for Jan
Browse files Browse the repository at this point in the history
  • Loading branch information
folguera committed Oct 3, 2017
1 parent 505b05c commit d80ce46
Show file tree
Hide file tree
Showing 12 changed files with 4,052 additions and 70 deletions.
37 changes: 17 additions & 20 deletions Analyzers/plugins/MuonNtuples.cc
Original file line number Diff line number Diff line change
Expand Up @@ -455,17 +455,17 @@ void MuonNtuples::fillHlt(const edm::Handle<edm::TriggerResults> & triggerResu
{
std::string pathName = triggerNames.triggerName(itrig);

if ( pathName.find ("HLT_IsoMu" ) !=std::string::npos ||
pathName.find ("HLT_Mu45" ) !=std::string::npos ||
pathName.find ("HLT_Mu5" ) !=std::string::npos ||
pathName.find ("HLT_TkMu5" ) !=std::string::npos ||
pathName.find ("HLT_IsoTkMu") !=std::string::npos ||
pathName.find ("HLT_Mu17" ) !=std::string::npos ||
pathName.find ("HLT_Mu8_T" ) !=std::string::npos
){
if (isTag) event_.hltTag.triggers.push_back(pathName);
else event_.hlt .triggers.push_back(pathName);
}
// if ( pathName.find ("HLT_IsoMu" ) !=std::string::npos ||
// pathName.find ("HLT_Mu" ) !=std::string::npos ||
// pathName.find ("HLT_Mu5" ) !=std::string::npos ||
// pathName.find ("HLT_TkMu5" ) !=std::string::npos ||
// pathName.find ("HLT_IsoTkMu") !=std::string::npos ||
// pathName.find ("HLT_Mu17" ) !=std::string::npos ||
// pathName.find ("HLT_Mu8_T" ) !=std::string::npos
// ){
if (isTag) event_.hltTag.triggers.push_back(pathName);
else event_.hlt .triggers.push_back(pathName);
// }
}
}

Expand All @@ -475,15 +475,12 @@ void MuonNtuples::fillHlt(const edm::Handle<edm::TriggerResults> & triggerResu
{
std::string filterTag = triggerEvent->filterTag(iFilter).encode();

if ( ( filterTag.find ("sMu22" ) !=std::string::npos ||
filterTag.find ("sMu25" ) !=std::string::npos
// filterTag.find ("DoubleMu" ) !=std::string::npos ||
// filterTag.find ("DiMuonGlb" ) !=std::string::npos
) &&
filterTag.find ("Tau" ) ==std::string::npos &&
filterTag.find ("EG" ) ==std::string::npos &&
filterTag.find ("MultiFit" ) ==std::string::npos
)
if ( ( filterTag.find ("Mu" ) !=std::string::npos)
&&
filterTag.find ("Tau" ) ==std::string::npos &&
filterTag.find ("EG" ) ==std::string::npos &&
filterTag.find ("MultiFit" ) ==std::string::npos
)
{
trigger::Keys objectKeys = triggerEvent->filterKeys(iFilter);
const trigger::TriggerObjectCollection& triggerObjects(triggerEvent->getObjects());
Expand Down
617 changes: 617 additions & 0 deletions Analyzers/test/Cascade/readNtuplesPre_CascadeAndTkMu.C

Large diffs are not rendered by default.

Loading

0 comments on commit d80ce46

Please sign in to comment.