File indexing completed on 2025-01-18 10:06:33
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef Pythia8_VinciaDiagnostics_H
0009 #define Pythia8_VinciaDiagnostics_H
0010
0011 #include "Pythia8/UserHooks.h"
0012
0013 namespace Pythia8 {
0014
0015
0016
0017
0018
0019 class VinciaDiagnostics : public UserHooks {
0020
0021 public:
0022
0023
0024 void init() {};
0025
0026
0027 void increment(string methodName, string variableName, double inc = 1);
0028
0029
0030 void start(string name);
0031
0032
0033 void stop(string name, string counter = "", double inc = 1);
0034
0035
0036 void print();
0037
0038 private:
0039
0040 map<string, bool> isRunning;
0041 map<string, clock_t> startTime;
0042 map<string, double> nStarts, nRestarts;
0043 map<string, double> runTime;
0044 map<string, Hist> hRunTime;
0045 map<string, map<string, double> > counters;
0046
0047 };
0048
0049
0050
0051 }
0052
0053 #endif