- Jun 21, 2017
-
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
- Mar 10, 2016
-
-
Carmelo Pellegrino authored
-
- Feb 16, 2016
-
-
Carmelo Pellegrino authored
So... A long time ago a young C (or FORTRAN... or BASIC... or whatever) programmer though that in order to check the 4-bytes tag of a data block a float should had be used. Because float IS 4-bytes long! I don't even know the reason why it happen, but he started to convert 4-char-wide strings like "LONG", "RUNH", etc... in float. And, because float is, as the name, floating point with limited precision, he tested the tags within ranges! I stop this crazyness.
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
- Feb 15, 2016
-
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
- Feb 12, 2016
-
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
Switching to the new GetInputsInfo function. The name of the datacard file name can be specified as an optional command line parameter. If not provided, the default "inputs" is used, as before.
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
this tests whether argc is >= 3, but the previous test closes the program in the exactly opposite case (argc < 3).
-
Carmelo Pellegrino authored
The current method is based on reading a file (filename hard-coded) and parsing for each call of the GetInputsInfo function. The new method stores the values into a std::map with the following characteristics: - key = pair of string and int representing the key and its occurrence index (the file supports multiple lines with the same key) - value = a vector of strings containing the sequence of parameters. The LoadDatacard function initializes the map parsing the content of the file named as the specified parameter and should be executed once per file and before the first call to GetInputsInfo.
-
Carmelo Pellegrino authored
This function returns a std::string containing the stream representation of the given template parameter.
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
-
Carmelo Pellegrino authored
Before the error code was 22 ("invalid argument" (?), hard-coded), which is simply wrong.
-
Carmelo Pellegrino authored
-