Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mbluj committed Oct 12, 2021
1 parent e0b982c commit 3a1f7a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions RecoTauTag/HLTProducers/src/L1THLTTauMatching.cc
Expand Up @@ -18,7 +18,7 @@ L1THLTTauMatching::L1THLTTauMatching(const edm::ParameterSet& iConfig)
tauTrigger(consumes<trigger::TriggerFilterObjectWithRefs>(iConfig.getParameter<InputTag>("L1TauTrigger"))),
mEt_Min(iConfig.getParameter<double>("EtMin")),
reduceTauContent(iConfig.getParameter<bool>("ReduceTauContent")),
keepOriginalVertex(iConfig.getParameter<bool>("KeepOriginalVertex")){
keepOriginalVertex(iConfig.getParameter<bool>("KeepOriginalVertex")) {
produces<PFTauCollection>();
}
L1THLTTauMatching::~L1THLTTauMatching() {}
Expand Down Expand Up @@ -81,9 +81,8 @@ void L1THLTTauMatching::fillDescriptions(edm::ConfigurationDescriptions& descrip
->setComment("Input collection of PFTaus");
desc.add<double>("EtMin", 0.0)->setComment("Minimal pT of PFTau to match");
desc.add<bool>("ReduceTauContent", true)->setComment("Should produce taus with reduced content (Only p4 and vertex)");
desc.add<bool>("KeepOriginalVertex", false)->setComment("Should use original vertex instead of setting the vertex to that of the leading charged hadron");
descriptions.setComment(
"This module produces collection of PFTaus matched to L1 Taus / Jets passing a HLT filter.");
desc.add<bool>("KeepOriginalVertex", false)
->setComment("Should use original vertex instead of setting the vertex to that of the leading charged hadron");
descriptions.setComment("This module produces collection of PFTaus matched to L1 Taus / Jets passing a HLT filter.");
descriptions.add("L1THLTTauMatching", desc);
}

6 changes: 3 additions & 3 deletions RecoTauTag/RecoTau/src/DeepTauBase.cc
Expand Up @@ -31,7 +31,7 @@ namespace deep_tau {
static const auto handler = [](int, Bool_t, const char*, const char*) -> void {};

std::string fn_str = prefix;
if(cut_str.find("return") == std::string::npos)
if (cut_str.find("return") == std::string::npos)
fn_str += " return " + cut_str + ";}";
else
fn_str += cut_str + "}";
Expand All @@ -44,7 +44,7 @@ namespace deep_tau {
}

double TauWPThreshold::operator()(const reco::BaseTau& tau, bool isPFTau) const {
if (!fn_){
if (!fn_) {
return value_;
}

Expand All @@ -53,7 +53,7 @@ namespace deep_tau {
else
fn_->SetParameter(0, dynamic_cast<const pat::Tau&>(tau).decayMode());
fn_->SetParameter(1, tau.pt());
fn_->SetParameter(2, tau.eta());
fn_->SetParameter(2, tau.eta());
return fn_->Eval(0);
}

Expand Down

0 comments on commit 3a1f7a2

Please sign in to comment.