/*////////////////////////////////////////////////////////////////////////////// // CMT Cosmic Muon Tomography project ////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// Copyright (c) 2014, Universita' degli Studi di Padova, INFN sez. di Padova All rights reserved Authors: Andrea Rigoni Garola < andrea.rigoni@pd.infn.it > ------------------------------------------------------------------ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library. //////////////////////////////////////////////////////////////////////////////*/ #include "Math/Accumulator.h" #include "testing-prototype.h" #include //#include //#include //#include using namespace uLib; int test_ABTrim() { Accumulator_ABTrim acc; acc.SetABTrim(1,1); std::vector v; for(float tmpf : {1,5,5,5,300}) v.push_back(tmpf); //v << 1,5,5,5,300; for(std::vector::iterator itr=v.begin(); itr mean; TRandom rnd; const int c = 10000000; std::vector v; v.reserve(c); for(int i=0;i