@@ -31,36 +31,35 @@ class NameConf : public o2::conf::ConfigurableParamHelper<NameConf>
3131
3232 public:
3333 // The Hits file name are generated by hardcoded schema, only prefix is mutable to allow the embedding
34- std::string getHitsFileName (o2::detectors::DetID d, const std::string_view prefix = DefSimFileNamePrefix) const
34+ static std::string getHitsFileName (o2::detectors::DetID d, const std::string_view prefix = STANDARDSIMPREFIX )
3535 {
36- return o2::utils::concat_string (prefix, HitsFileName , d.getName (), " .root" );
36+ return o2::utils::concat_string (prefix, " _ " , HITS_STRING , d.getName (), " .root" );
3737 }
3838
3939 // The Digits file name are generated by hardcoded schema, only prefix is mutable to allow the embedding
40- std::string getDigitsFileName (o2::detectors::DetID d, const std::string_view prefix = DefSimFileNamePrefix) const
40+ static std::string getDigitsFileName (o2::detectors::DetID d, const std::string_view prefix = STANDARDSIMPREFIX )
4141 {
42- return o2::utils::concat_string (prefix, DigitsFileName , d.getName (), " .root" );
42+ return o2::utils::concat_string (prefix, " _ " , DIGITS_STRING , d.getName (), " .root" );
4343 }
4444
4545 // Filename to store kinematics + TrackRefs
46- std::string getGRPFileName (const std::string_view prefix = DefSimFileNamePrefix) const
46+ static std::string getGRPFileName (const std::string_view prefix = STANDARDSIMPREFIX )
4747 {
48- return o2::utils::concat_string (prefix, GRPFileName , " .root" );
48+ return o2::utils::concat_string (prefix, " _ " , GRP_STRING , " .root" );
4949 }
5050
5151 // Filename to store kinematics + TrackRefs
52- std::string getMCTruthFileName (const std::string_view prefix = DefSimFileNamePrefix) const
52+ static std::string getMCKinematicsFileName (const std::string_view prefix = STANDARDSIMPREFIX )
5353 {
54- return o2::utils::concat_string (prefix, mMCTruthFileName , " .root" );
54+ return o2::utils::concat_string (prefix, " _ " , KINE_STRING , " .root" );
5555 }
5656
5757 private:
58- static constexpr std::string_view DefSimFileNamePrefix = " o2sim" ;
59- static constexpr std::string_view HitsFileName = " Hits" ; // hardcoded
60- static constexpr std::string_view DigitsFileName = " Digits" ; // hardcoded
61- static constexpr std::string_view GRPFileName = " GRP" ; // hardcoded
62-
63- std::string mMCTruthFileName = " MCTruth" ;
58+ static constexpr std::string_view STANDARDSIMPREFIX = " o2sim" ;
59+ static constexpr std::string_view HITS_STRING = " Hits" ; // hardcoded
60+ static constexpr std::string_view DIGITS_STRING = " Digits" ; // hardcoded
61+ static constexpr std::string_view GRP_STRING = " grp" ; // hardcoded
62+ static constexpr std::string_view KINE_STRING = " Kine" ; // hardcoded
6463
6564 O2ParamDef (NameConf, " NameConf" );
6665};
0 commit comments