Skip to content

LArHitEMapToDigitAlg : Use static_vector when we should be knowing the max size we will ever need

LArHitEMapToDigitAlg : Use static_vector when we should be knowing the max size we will ever need

ping @jchapman .

This is due to

36493711 calls to allocation functions with 1.76M peak consumption from         
     7 std::vector<>::_M_fill_insert(__gnu_cxx::__normal_iterator<>, unsigned long, double const&)
     8   in /cvmfs/atlas-nightlies.cern.ch/repo/sw/23.0_Athena_x86_64-centos7-gcc11-opt/sw/lcg/releases/LCG_102b_ATLAS_11/ROOT/6.26.08/x86_64-centos7-gcc11-opt/lib/libHist.so

     9 18246800 calls with 0B peak consumption from:                                   
    10     std::vector<>::resize(unsigned long, double const&)                         
    11       at /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/include/c++/11.2.0/bits/stl_vector.h:960
    12       in /cvmfs/atlas-nightlies.cern.ch/repo/sw/23.0_Athena_x86_64-centos7-gcc11-opt/2023-04-24T2101/Athena/23.0.25/InstallArea/x86_64-centos7-gcc11-opt/lib/libLArDigitization.so
    13     LArHitEMapToDigitAlg::MakeDigit(EventContext const&, Identifier const&, HWIdentifier const&, LArDigit*&, LArDigit*&, std::vector<> const*, LArDigit const*, CLHEP::HepRandomEngine*, std::vector<       > const*) const
    14       at /build/atnight/localbuilds/nightlies/Athena/23.0/athena/LArCalorimeter/LArDigitization/src/LArHitEMapToDigitAlg.cxx:264
    15     LArHitEMapToDigitAlg::execute(EventContext const&) const
  at /build/atnight/localbuilds/nightlies/Athena/23.0/athena/LArCalorimeter/LArDigitization/src/LArHitEMapToDigitAlg.cxx:157                    
8246800 calls with 0B peak consumption from:                                   
    50     std::vector<>::resize(unsigned long, double const&)                         
    51       at /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/include/c++/11.2.0/bits/stl_vector.h:960
    52       in /cvmfs/atlas-nightlies.cern.ch/repo/sw/23.0_Athena_x86_64-centos7-gcc11-opt/2023-04-24T2101/Athena/23.0.25/InstallArea/x86_64-centos7-gcc11-opt/lib/libLArDigitization.so
    53     LArHitEMapToDigitAlg::MakeDigit(EventContext const&, Identifier const&, HWIdentifier const&, LArDigit*&, LArDigit*&, std::vector<> const*, LArDigit const*, CLHEP::HepRandomEngine*, std::vector<       > const*) const
    54       at /build/atnight/localbuilds/nightlies/Athena/23.0/athena/LArCalorimeter/LArDigitization/src/LArHitEMapToDigitAlg.cxx:262
    55     LArHitEMapToDigitAlg::execute(EventContext const&) const                    
    56       at /build/atnight/localbuilds/nightlies/Athena/23.0/athena/LArCalorimeter/LArDigitization/src/LArHitEMapToDigitAlg.cxx:157
Edited by Christos Anastopoulos

Merge request reports