Skip to content

Commit

Permalink
Clang-Format
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsbuild committed Feb 7, 2020
1 parent 1edbed3 commit e9f80c8
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,94 +73,106 @@ namespace l1t {
namespace stage1 {
bool IsoEGammaUnpackerLeft::unpack(const Block& block, UnpackerCollections* coll) {
auto res = static_cast<CaloCollections*>(coll)->getEGammas();
return process(block,
res,
[](l1t::EGamma eg) {
eg.setHwIso(1);
return eg;
},
true,
true,
false);
return process(
block,
res,
[](l1t::EGamma eg) {
eg.setHwIso(1);
return eg;
},
true,
true,
false);
}

bool NonIsoEGammaUnpackerLeft::unpack(const Block& block, UnpackerCollections* coll) {
auto res = static_cast<CaloCollections*>(coll)->getEGammas();
return process(block, res, [](const l1t::EGamma& eg) { return eg; }, true, false, false);
return process(
block, res, [](const l1t::EGamma& eg) { return eg; }, true, false, false);
}

bool CentralJetUnpackerLeft::unpack(const Block& block, UnpackerCollections* coll) {
auto res = static_cast<CaloCollections*>(coll)->getJets();
return process(block, res, [](const l1t::Jet& j) { return j; }, true, true, false);
return process(
block, res, [](const l1t::Jet& j) { return j; }, true, true, false);
}

bool ForwardJetUnpackerLeft::unpack(const Block& block, UnpackerCollections* coll) {
auto res = static_cast<CaloCollections*>(coll)->getJets();
return process(block,
res,
[](l1t::Jet j) {
j.setHwQual(j.hwQual() | 2);
return j;
},
true,
false,
false);
return process(
block,
res,
[](l1t::Jet j) {
j.setHwQual(j.hwQual() | 2);
return j;
},
true,
false,
false);
}

bool TauUnpackerLeft::unpack(const Block& block, UnpackerCollections* coll) {
auto res = static_cast<CaloCollections*>(coll)->getTaus();
return process(block, res, [](const l1t::Tau& t) { return t; }, true, true, true);
return process(
block, res, [](const l1t::Tau& t) { return t; }, true, true, true);
}

bool IsoTauUnpackerLeft::unpack(const Block& block, UnpackerCollections* coll) {
auto res = static_cast<CaloCollections*>(coll)->getIsoTaus();
return process(block, res, [](const l1t::Tau& t) { return t; }, true, true, true);
return process(
block, res, [](const l1t::Tau& t) { return t; }, true, true, true);
}

bool IsoEGammaUnpackerRight::unpack(const Block& block, UnpackerCollections* coll) {
auto res = static_cast<CaloCollections*>(coll)->getEGammas();
return process(block,
res,
[](l1t::EGamma eg) {
eg.setHwIso(1);
return eg;
},
false,
true,
false);
return process(
block,
res,
[](l1t::EGamma eg) {
eg.setHwIso(1);
return eg;
},
false,
true,
false);
}

bool NonIsoEGammaUnpackerRight::unpack(const Block& block, UnpackerCollections* coll) {
auto res = static_cast<CaloCollections*>(coll)->getEGammas();
return process(block, res, [](const l1t::EGamma& eg) { return eg; }, false, false, false);
return process(
block, res, [](const l1t::EGamma& eg) { return eg; }, false, false, false);
}

bool CentralJetUnpackerRight::unpack(const Block& block, UnpackerCollections* coll) {
auto res = static_cast<CaloCollections*>(coll)->getJets();
return process(block, res, [](const l1t::Jet& j) { return j; }, false, true, false);
return process(
block, res, [](const l1t::Jet& j) { return j; }, false, true, false);
}

bool ForwardJetUnpackerRight::unpack(const Block& block, UnpackerCollections* coll) {
auto res = static_cast<CaloCollections*>(coll)->getJets();
return process(block,
res,
[](l1t::Jet j) {
j.setHwQual(j.hwQual() | 2);
return j;
},
false,
false,
false);
return process(
block,
res,
[](l1t::Jet j) {
j.setHwQual(j.hwQual() | 2);
return j;
},
false,
false,
false);
}

bool TauUnpackerRight::unpack(const Block& block, UnpackerCollections* coll) {
auto res = static_cast<CaloCollections*>(coll)->getTaus();
return process(block, res, [](const l1t::Tau& t) { return t; }, false, true, true);
return process(
block, res, [](const l1t::Tau& t) { return t; }, false, true, true);
}

bool IsoTauUnpackerRight::unpack(const Block& block, UnpackerCollections* coll) {
auto res = static_cast<CaloCollections*>(coll)->getIsoTaus();
return process(block, res, [](const l1t::Tau& t) { return t; }, false, true, true);
return process(
block, res, [](const l1t::Tau& t) { return t; }, false, true, true);
}
} // namespace stage1
} // namespace l1t
Expand Down
28 changes: 21 additions & 7 deletions L1Trigger/L1TMuonBarrel/src/L1MuBMAssignmentUnit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,9 @@ unsigned int L1MuBMAssignmentUnit::Quality() {
quality = 1;
break;
}
default: { quality = 0; }
default: {
quality = 0;
}
}

return quality;
Expand Down Expand Up @@ -478,7 +480,9 @@ int L1MuBMAssignmentUnit::getCharge(L1MuBMLUTHandler::PtAssMethod method) {
// << endl;
break;
}
default: { chargesign = 0; }
default: {
chargesign = 0;
}
}

return chargesign;
Expand Down Expand Up @@ -612,7 +616,9 @@ int L1MuBMAssignmentUnit::getPtAddress(L1MuBMLUTHandler::PtAssMethod method, int
// cerr << "AssignmentUnit::getPtAddress : undefined PtAssMethod" << endl;
break;
}
default: { bendangle = 0; }
default: {
bendangle = 0;
}
}

int signo = 1;
Expand Down Expand Up @@ -708,7 +714,9 @@ L1MuBMLUTHandler::PtAssMethod L1MuBMAssignmentUnit::getPt1Method(L1MuBMLUTHandle
pam = L1MuBMLUTHandler::NODEF;
break;
}
default: { pam = L1MuBMLUTHandler::NODEF; }
default: {
pam = L1MuBMLUTHandler::NODEF;
}
}

return pam;
Expand Down Expand Up @@ -739,7 +747,9 @@ L1MuBMLUTHandler::PtAssMethod L1MuBMAssignmentUnit::getPt2Method(L1MuBMLUTHandle
pam = L1MuBMLUTHandler::NODEF;
break;
}
default: { pam = L1MuBMLUTHandler::NODEF; }
default: {
pam = L1MuBMLUTHandler::NODEF;
}
}

return pam;
Expand Down Expand Up @@ -784,7 +794,9 @@ int L1MuBMAssignmentUnit::getPt1Address(L1MuBMLUTHandler::PtAssMethod method) co
bendangle = -999;
break;
}
default: { bendangle = -999; }
default: {
bendangle = -999;
}
}

return bendangle;
Expand Down Expand Up @@ -819,7 +831,9 @@ int L1MuBMAssignmentUnit::getPt2Address(L1MuBMLUTHandler::PtAssMethod method) co
bendangle = -999;
break;
}
default: { bendangle = -999; }
default: {
bendangle = -999;
}
}

return bendangle;
Expand Down

0 comments on commit e9f80c8

Please sign in to comment.