diff --git a/reco/L1/L1Algo/L1Algo.cxx b/reco/L1/L1Algo/L1Algo.cxx index bebda2986c90a210e4d5296f66fc92760045e07d..fb284671321e0516b47cca0d6b18eae9466e76f6 100644 --- a/reco/L1/L1Algo/L1Algo.cxx +++ b/reco/L1/L1Algo/L1Algo.cxx @@ -130,7 +130,7 @@ void L1Algo::Init(const L1Vector<fscal>& geo, const bool UseHitErrors, const Tra double f_sigma = geo[ind++]; double b_phi = geo[ind++]; double b_sigma = geo[ind++]; - double dt = geo[ind++]; + double dt = geo[ind++]; //TODO: Add this field to L1BaseStationInfo and to ToString fcn (S.Zharko) double c_f = cos(f_phi); double s_f = sin(f_phi); double c_b = cos(b_phi); diff --git a/reco/L1/L1Algo/L1BaseStationInfo.cxx b/reco/L1/L1Algo/L1BaseStationInfo.cxx index 648cb0fd32f06692b5cbb38ff3da68be1c7ebc37..0ad560312afa0867d120d329aa86ccc57adeb72d 100644 --- a/reco/L1/L1Algo/L1BaseStationInfo.cxx +++ b/reco/L1/L1Algo/L1BaseStationInfo.cxx @@ -439,3 +439,28 @@ std::string L1BaseStationInfo::ToString(int verbosityLevel, int indentLevel) con } return aStream.str(); } + +//----------------------------------------------------------------------------------------------------------------------// +// +std::string L1BaseStationInfo::ToString(int verbosityLevel, int indentLevel) const +{ + std::stringstream aStream {}; + constexpr char indentChar = '\t'; + std::string indent(indentLevel, indentChar); + + if (verbosityLevel == 0) { + aStream << indent << "L1BaseStationInfo object: {stationID, detectorID, address} = {" << fStationID << ", " + << static_cast<int>(fDetectorID) << ", " << this << '}'; + } + else if (verbosityLevel > 0) { + aStream << indent << "L1BaseStationInfo object: at " << this << '\n'; + aStream << indent << indentChar << "Station ID: " << fStationID << '\n'; + aStream << indent << indentChar << "Detector ID: " << static_cast<int>(fDetectorID) << '\n'; + aStream << indent << indentChar << "L1Station object:" << '\n'; + aStream << fL1Station.ToString(verbosityLevel - 1, indentLevel + 1) << '\n'; + aStream << indent << indentChar << "Additional fields:\n"; + aStream << indent << indentChar << indentChar << "Xmax: " << fXmax << '\n'; + aStream << indent << indentChar << indentChar << "Ymax: " << fYmax << '\n'; + } + return aStream.str(); +}