2 #include "MonarchHeader.pb.h" 10 using std::stringstream;
16 fProtobufHeader( new
Protobuf::MonarchHeader() )
104 fProtobufHeader->set_runtype( Protobuf::MonarchHeader_RunType_Signal );
107 fProtobufHeader->set_runtype( Protobuf::MonarchHeader_RunType_Background );
120 case Protobuf::MonarchHeader_RunType_Signal:
122 case Protobuf::MonarchHeader_RunType_Background:
124 case Protobuf::MonarchHeader_RunType_Other:
136 fProtobufHeader->set_runsource( Protobuf::MonarchHeader_RunSource_Mantis );
139 fProtobufHeader->set_runsource( Protobuf::MonarchHeader_RunSource_Simulation );
149 case Protobuf::MonarchHeader_RunSource_Mantis:
151 case Protobuf::MonarchHeader_RunSource_Simulation:
160 switch( aFormatMode )
163 fProtobufHeader->set_formatmode( Protobuf::MonarchHeader_FormatMode_Single );
166 fProtobufHeader->set_formatmode( Protobuf::MonarchHeader_FormatMode_MultiSeparate );
169 fProtobufHeader->set_formatmode( Protobuf::MonarchHeader_FormatMode_MultiInterleaved );
179 case Protobuf::MonarchHeader_FormatMode_Single:
181 case Protobuf::MonarchHeader_FormatMode_MultiSeparate:
183 case Protobuf::MonarchHeader_FormatMode_MultiInterleaved:
274 out <<
"Monarch Header Content: " <<
"\n";
275 out <<
"\tFilename: " << hdr.
GetFilename() <<
"\n";
282 out <<
"\tRun Type: " << hdr.
GetRunType() <<
"\n";
286 out <<
"\tBit Depth: " << hdr.
GetBitDepth() <<
" bits\n";
static const RunType sRunTypeSignal
static const FormatModeType sFormatSingle
static const RunType sRunTypeOther
static const RunSourceType sSourceSimulation
static const RunSourceType sSourceMantis
static const FormatModeType sFormatMultiSeparate
static const RunType sRunTypeBackground
static const FormatModeType sFormatMultiInterleaved