From 46726e258895a202f44389924a604fc836ea1636 Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Tue, 8 Jun 2021 20:43:42 +0200 Subject: [PATCH] [GEOMETRY] apply code-format --- DetectorDescription/Core/interface/DDValuePair.h | 4 ++-- .../RegressionTest/bin/DDErrorReport.cpp | 9 +++++---- Geometry/HcalTowerAlgo/src/HcalGeometry.cc | 16 ++++++++-------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/DetectorDescription/Core/interface/DDValuePair.h b/DetectorDescription/Core/interface/DDValuePair.h index 89ee55e409869..6d988b9aaf605 100644 --- a/DetectorDescription/Core/interface/DDValuePair.h +++ b/DetectorDescription/Core/interface/DDValuePair.h @@ -11,8 +11,8 @@ struct DDValuePair : public std::pair { DDValuePair(const std::string& s) : std::pair(s, 0) {} DDValuePair(double d) : std::pair("", d) {} - operator const std::string &() const { return first; } - operator std::string &() { return first; } + operator const std::string&() const { return first; } + operator std::string&() { return first; } operator const double&() const { return second; } operator double&() { return second; } }; diff --git a/DetectorDescription/RegressionTest/bin/DDErrorReport.cpp b/DetectorDescription/RegressionTest/bin/DDErrorReport.cpp index 34567a36ff608..a4f74cd91f394 100644 --- a/DetectorDescription/RegressionTest/bin/DDErrorReport.cpp +++ b/DetectorDescription/RegressionTest/bin/DDErrorReport.cpp @@ -31,10 +31,11 @@ int main(int argc, char* argv[]) { "file,f", boost::program_options::value(), "XML configuration file name. " - "Default is DetectorDescription/RegressionTest/test/configuration.xml")( - "path,p", - "Specifies filename is a full path and not to use FileInPath to find file. " - " This option is ignored if a filename is not specified"); + "Default is DetectorDescription/RegressionTest/test/configuration.xml")("path,p", + "Specifies filename is a full path and " + "not to use FileInPath to find file. " + " This option is ignored if a filename " + "is not specified"); boost::program_options::positional_options_description p; p.add("file", -1); diff --git a/Geometry/HcalTowerAlgo/src/HcalGeometry.cc b/Geometry/HcalTowerAlgo/src/HcalGeometry.cc index 303af177e043e..ba095dbd4570b 100644 --- a/Geometry/HcalTowerAlgo/src/HcalGeometry.cc +++ b/Geometry/HcalTowerAlgo/src/HcalGeometry.cc @@ -372,10 +372,10 @@ DetId HcalGeometry::detIdFromLocalAlignmentIndex(unsigned int i) { const unsigned int nF(numberOfForwardAlignments()); // const unsigned int nO ( numberOfOuterAlignments() ) ; - return (i < nB ? detIdFromBarrelAlignmentIndex(i) - : i < nB + nE ? detIdFromEndcapAlignmentIndex(i - nB) - : i < nB + nE + nF ? detIdFromForwardAlignmentIndex(i - nB - nE) - : detIdFromOuterAlignmentIndex(i - nB - nE - nF)); + return (i < nB ? detIdFromBarrelAlignmentIndex(i) + : i < nB + nE ? detIdFromEndcapAlignmentIndex(i - nB) + : i < nB + nE + nF ? detIdFromForwardAlignmentIndex(i - nB - nE) + : detIdFromOuterAlignmentIndex(i - nB - nE - nF)); } unsigned int HcalGeometry::alignmentBarEndForIndexLocal(const DetId& id, unsigned int nD) { @@ -424,10 +424,10 @@ unsigned int HcalGeometry::alignmentTransformIndexLocal(const DetId& id) { const unsigned int nF(numberOfForwardAlignments()); // const unsigned int nO ( numberOfOuterAlignments() ) ; - const unsigned int index(isHB ? alignmentBarrelIndexLocal(id) - : isHE ? alignmentEndcapIndexLocal(id) + nB - : isHF ? alignmentForwardIndexLocal(id) + nB + nE - : alignmentOuterIndexLocal(id) + nB + nE + nF); + const unsigned int index(isHB ? alignmentBarrelIndexLocal(id) + : isHE ? alignmentEndcapIndexLocal(id) + nB + : isHF ? alignmentForwardIndexLocal(id) + nB + nE + : alignmentOuterIndexLocal(id) + nB + nE + nF); assert(index < numberOfAlignments()); return index;