diff --git a/PhysicsTools/NanoAOD/interface/SimpleFlatTableProducer.h b/PhysicsTools/NanoAOD/interface/SimpleFlatTableProducer.h index ebfd12dc637d8..d8b55ff52e9cc 100644 --- a/PhysicsTools/NanoAOD/interface/SimpleFlatTableProducer.h +++ b/PhysicsTools/NanoAOD/interface/SimpleFlatTableProducer.h @@ -165,9 +165,10 @@ class SimpleFlatTableProducerBase : public edm::stream::EDProducer<> { edm::ParameterSetDescription variable; variable.add("expr")->setComment("a function to define the content of the branch in the flat table"); variable.add("doc")->setComment("few words description of the branch content"); - variable.ifValue(edm::ParameterDescription( - "type", "int", true, edm::Comment("the c++ type of the branch in the flat table")), - edm::allowedValues("int", "uint", "float", "double", "int8", "uint8", "int16", "uint16", "bool")); + variable.ifValue( + edm::ParameterDescription( + "type", "int", true, edm::Comment("the c++ type of the branch in the flat table")), + edm::allowedValues("int", "uint", "float", "double", "int8", "uint8", "int16", "uint16", "bool")); variable.addOptionalNode( edm::ParameterDescription( "precision", true, edm::Comment("the precision with which to store the value in the flat table")) xor @@ -279,9 +280,10 @@ class SimpleFlatTableProducer : public SimpleFlatTableProducerBase("src")->setComment("valuemap input collection to fill the flat table"); extvariable.add("doc")->setComment("few words description of the branch content"); - extvariable.ifValue(edm::ParameterDescription( - "type", "int", true, edm::Comment("the c++ type of the branch in the flat table")), - edm::allowedValues("int", "uint", "float", "double", "int8", "uint8", "int16", "uint16", "bool")); + extvariable.ifValue( + edm::ParameterDescription( + "type", "int", true, edm::Comment("the c++ type of the branch in the flat table")), + edm::allowedValues("int", "uint", "float", "double", "int8", "uint8", "int16", "uint16", "bool")); extvariable.addOptionalNode( edm::ParameterDescription( "precision", true, edm::Comment("the precision with which to store the value in the flat table")) xor diff --git a/PhysicsTools/NanoAOD/plugins/LumiOutputBranches.cc b/PhysicsTools/NanoAOD/plugins/LumiOutputBranches.cc index 5fd18bb155875..f87b2e0e8bd38 100644 --- a/PhysicsTools/NanoAOD/plugins/LumiOutputBranches.cc +++ b/PhysicsTools/NanoAOD/plugins/LumiOutputBranches.cc @@ -72,7 +72,8 @@ void LumiOutputBranches::fill(const edm::LuminosityBlockForOutput &iLumi, TTree // ROOT native array size branches may only be signed integers, // until this is changed we need to make sure the vector sizes do not exceed that if (size > std::numeric_limits::max()) { - throw cms::Exception("Table " + tab.name() + " size is " + std::to_string(size) + ", is too large for ROOT native array branch"); + throw cms::Exception("Table " + tab.name() + " size is " + std::to_string(size) + + ", is too large for ROOT native array branch"); } m_counter = size; m_singleton = tab.singleton(); diff --git a/PhysicsTools/NanoAOD/plugins/TableOutputBranches.cc b/PhysicsTools/NanoAOD/plugins/TableOutputBranches.cc index 639628e26fe5a..784f89ae8b9ac 100644 --- a/PhysicsTools/NanoAOD/plugins/TableOutputBranches.cc +++ b/PhysicsTools/NanoAOD/plugins/TableOutputBranches.cc @@ -65,17 +65,14 @@ void TableOutputBranches::branch(TTree &tree) { } } std::string varsize = m_singleton ? "" : "[n" + m_baseName + "]"; - for (std::vector *branches : - { - &m_int8Branches, - &m_uint8Branches, - &m_int16Branches, - &m_uint16Branches, - &m_int32Branches, - &m_uint32Branches, - &m_floatBranches, - &m_doubleBranches - }) { + for (std::vector *branches : {&m_int8Branches, + &m_uint8Branches, + &m_int16Branches, + &m_uint16Branches, + &m_int32Branches, + &m_uint32Branches, + &m_floatBranches, + &m_doubleBranches}) { for (auto &pair : *branches) { std::string branchName = makeBranchName(m_baseName, pair.name); pair.branch = @@ -98,7 +95,8 @@ void TableOutputBranches::fill(const edm::OccurrenceForOutput &iWhatever, TTree // ROOT native array size branches may only be signed integers, // until this is changed we need to make sure the vector sizes do not exceed that if (size > std::numeric_limits::max()) { - throw cms::Exception("Table " + tab.name() + " size is " + std::to_string(size) + ", is too large for ROOT native array branch"); + throw cms::Exception("Table " + tab.name() + " size is " + std::to_string(size) + + ", is too large for ROOT native array branch"); } m_counter = size; m_singleton = tab.singleton();