// // asci_logger.cpp // mc_electron // // Created by Christian Reiling on 06.05.19. // Copyright © 2019 Christian Reiling. All rights reserved. // #include "asci_logger.hpp" #include #include "katrin_geo.h" #include "error_types.h" using namespace std; // Redundant Code with h5, but ASCI Logger is kept in code as relict. const int ASCI_Logger::numberZBins = load_parameter("LOG_BARS"); ASCI_Logger::ASCI_Logger() { if (numberZBins == 0) { logging = false; } else if (numberZBins == -1 || numberZBins > 0) { logging = true; set_zLogValues(); print_logInfo(); set_outdirName(); create_outdir(); set_outStream(); } else { stringstream ss; ss<<"H5_Logger::Parameter numberZBins invalid value.\nnumberZBins:\t"< oldLoc_m) { if (!logging) { return; } if (logPart->get_species() != electron) { return; } // Assumption: no change of sign in v_z if (numberZBins == -1) { outStream[0]<<*logPart<get_x_m()[2]; double zmin = min(zold,znew); double zmax = max(zold,znew); for (int i=0;i=zmin && zLogValues[i]<=zmax) { outStream[i]<<*logPart<