34 lines
593 B
C++
34 lines
593 B
C++
//
|
|
// logger.hpp
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 27.02.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef logger_hpp
|
|
#define logger_hpp
|
|
|
|
#include "parameter.hpp"
|
|
#include "electron.hpp"
|
|
|
|
|
|
class Logger : private Parameter {
|
|
public:
|
|
Logger();
|
|
|
|
void logElectron(Electron *logElectron,blitz::TinyVector<double,3> oldLoc_m);
|
|
private:
|
|
bool logging;
|
|
std::vector<double> zLogValues;
|
|
std::ofstream *outStream;
|
|
|
|
void set_zLogValues();
|
|
void set_outStream();
|
|
std::string getDirName();
|
|
std::string getTimeString();
|
|
};
|
|
|
|
|
|
#endif /* logger_hpp */
|