Skip to content

Commit bfb5e13

Browse files
authored
Add parseTEnvConfiguration method
Added a method to parse TEnv configuration files.
1 parent 007c2ca commit bfb5e13

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ALICE3/Core/FastTracker.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ class FastTracker
6868
void AddSiliconALICE3v2(std::vector<float> pixelResolution);
6969
void AddSiliconALICE3(float scaleX0VD, std::vector<float> pixelResolution);
7070
void AddTPC(float phiResMean, float zResMean);
71+
72+
/**
73+
* @brief Parses a TEnv configuration file and returns the key-value pairs split per entry
74+
* @param filename Path to the TEnv configuration file
75+
* @return A map where each key is a layer name and the value is another map of key-value pairs for that layer
76+
*/
77+
std::map<std::string, std::map<std::string, std::string>> parseTEnvConfiguration(std::string filename);
78+
7179
/**
7280
* @brief Adds a generic detector configuration from the specified file.
7381
*

0 commit comments

Comments
 (0)