Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:20

0001 #ifndef GENERS_RPFOOTERRECORD_HH_
0002 #define GENERS_RPFOOTERRECORD_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 RPFooterRecord : public AbsRecord
0011         {
0012         public:
0013             inline RPFooterRecord(const Ntuple& obj)
0014                 : AbsRecord(obj.classId(), "gs::RPFooter",
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 write_item(os, obj_.idlist_, false);
0023             }
0024 
0025         private:
0026             RPFooterRecord();
0027             const Ntuple& obj_;
0028         };
0029     }
0030 }
0031 
0032 #endif // GENERS_RPFOOTERRECORD_HH_
0033