File indexing completed on 2024-04-06 11:56:18
0001 #ifndef GENERS_CPFOOTERRECORD_HH_
0002 #define GENERS_CPFOOTERRECORD_HH_
0003
0004 #include "Alignment/Geners/interface/AbsRecord.hh"
0005 #include "Alignment/Geners/interface/GenericIO.hh"
0006
0007 namespace gs {
0008 namespace Private {
0009 template<class Ntuple>
0010 class CPFooterRecord : public AbsRecord
0011 {
0012 public:
0013 inline CPFooterRecord(const Ntuple& obj)
0014 : AbsRecord(obj.classId(), "gs::CPFooter",
0015 obj.name_.c_str(), obj.category_.c_str()),
0016 obj_(obj) {}
0017
0018 inline bool writeData(std::ostream& os) const
0019 {
0020 write_pod(os, obj_.fillCount_);
0021 write_pod(os, obj_.headerSaved_);
0022 return !os.fail() && write_item(os, obj_.bufIds_, false);
0023 }
0024
0025 private:
0026 CPFooterRecord();
0027 const Ntuple& obj_;
0028 };
0029 }
0030 }
0031
0032 #endif
0033