Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:18:10

0001 #include "MvtxEventInfov3.h"
0002 
0003 #include <phool/phool.h>
0004 
0005 PHObject* MvtxEventInfov3::CloneMe() const
0006 {
0007   std::cout << PHWHERE << "::" << __func__ << " is not implemented in daughter class" << std::endl;
0008   return nullptr;
0009 }
0010 
0011 void MvtxEventInfov3::Reset()
0012 {
0013   m_strobe_BCOs.clear();
0014   m_L1_BCOs.clear();
0015   m_Int64EventProperties.clear();
0016   m_IntEventProperties.clear();
0017   m_Int64EventProperties.clear();
0018   m_UintEventProperties.clear();
0019   m_Uint64EventProperties.clear();
0020   m_FloatEventProperties.clear();
0021 
0022   return;
0023 }
0024 
0025 void MvtxEventInfov3::identify(std::ostream& out) const
0026 {
0027   out << "MvtxEventInfov1 information" << std::endl;
0028 
0029   for (const auto& m_StringEventPropertie : m_StringEventProperties)
0030   {
0031     out << m_StringEventPropertie.first << ": " << m_StringEventPropertie.second << std::endl;
0032   }
0033 
0034   if (get_number_strobes() > 0)
0035   {
0036     out << "List of strobe BCOs in this event" << std::endl;
0037 
0038     for (unsigned long iterStrobe : m_strobe_BCOs)
0039     {
0040       out << "Strobe BCO: " << iterStrobe << std::endl;
0041       out << std::endl;
0042     }
0043   }
0044 
0045   if (get_number_L1s() > 0)
0046   {
0047     out << "List of L1 BCOs in this event" << std::endl;
0048 
0049     for (unsigned long iterStrobe : m_L1_BCOs)
0050     {
0051       out << "L1 BCO: " << iterStrobe << std::endl;
0052       out << std::endl;
0053     }
0054   }
0055 
0056   for (const auto& m_IntEventPropertie : m_IntEventProperties)
0057   {
0058     out << m_IntEventPropertie.first << ": " << m_IntEventPropertie.second << std::endl;
0059   }
0060 
0061   for (const auto& m_Int64EventPropertie : m_Int64EventProperties)
0062   {
0063     out << m_Int64EventPropertie.first << ": " << m_Int64EventPropertie.second << std::endl;
0064   }
0065 
0066   for (const auto& m_UintEventPropertie : m_UintEventProperties)
0067   {
0068     out << m_UintEventPropertie.first << ": " << m_UintEventPropertie.second << std::endl;
0069   }
0070 
0071   for (const auto& m_Uint64EventPropertie : m_Uint64EventProperties)
0072   {
0073     out << m_Uint64EventPropertie.first << ": " << m_Uint64EventPropertie.second << std::endl;
0074   }
0075 
0076   for (const auto& m_FloatEventPropertie : m_FloatEventProperties)
0077   {
0078     out << m_FloatEventPropertie.first << ": " << m_FloatEventPropertie.second << std::endl;
0079   }
0080   return;
0081 }
0082 
0083 int MvtxEventInfov3::isValid() const
0084 {
0085   std::cout << PHWHERE << " isValid not implemented by daughter class" << std::endl;
0086   return 0;
0087 }