Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:38

0001 
0002 #ifndef L1Trigger_DemonstratorTools_utilities_h
0003 #define L1Trigger_DemonstratorTools_utilities_h
0004 
0005 #include <iosfwd>
0006 
0007 #include "L1Trigger/DemonstratorTools/interface/BoardData.h"
0008 #include "L1Trigger/DemonstratorTools/interface/FileFormat.h"
0009 
0010 namespace l1t::demo {
0011 
0012   // Simple function that converts string to file format enum (for e.g. CMSSW configs)
0013   FileFormat parseFileFormat(const std::string&);
0014 
0015   BoardData read(const std::string& filePath, const FileFormat);
0016 
0017   BoardData read(std::istream&, const FileFormat);
0018 
0019   void write(const BoardData&, const std::string& filePath, const FileFormat);
0020 
0021   void write(const BoardData&, std::ostream&, const FileFormat);
0022 
0023 }  // namespace l1t::demo
0024 
0025 #endif