CMS 3D CMS Logo

FRDOutputModule.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_interface_FRDOutputModule_h
2 #define IOPool_Streamer_interface_FRDOutputModule_h
3 
4 // CMSSW headers
7 
8 //#include "DataFormats/FEDRawData/interface/FEDRawData.h"
13 //#include "FWCore/ServiceRegistry/interface/ModuleCallingContext.h"
14 
15 class FRDOutputModule : public edm::one::OutputModule<edm::one::WatchLuminosityBlocks> {
16 public:
17  explicit FRDOutputModule(edm::ParameterSet const& ps);
18  ~FRDOutputModule() override;
19 
20  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
21 
22 private:
23  void write(edm::EventForOutput const& e) override;
24  //void beginRun(edm::RunForOutput const&) override {}
25  //void endRun(edm::RunForOutput const&) override {}
26  void writeRun(const edm::RunForOutput&) override {}
28 
31 
32  void finishFileWrite(int ls);
33  uint32_t adler32() const { return (adlerb_ << 16) | adlera_; }
34 
36 
37  const uint32_t frdVersion_;
38  const uint32_t frdFileVersion_;
41 
42  int outfd_ = -1;
43  uint32_t adlera_;
44  uint32_t adlerb_;
45 
48 
49  bool fileWritten_ = false;
50 };
51 
52 #endif // IOPool_Streamer_interface_FRDOutputModule_h
edm::one::OutputModule
Definition: OutputModule.h:30
eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
OutputModule.h
FRDOutputModule::frdVersion_
const uint32_t frdVersion_
Definition: FRDOutputModule.h:37
FRDOutputModule
Definition: FRDOutputModule.h:15
edm::EDGetTokenT< FEDRawDataCollection >
FRDOutputModule::endLuminosityBlock
void endLuminosityBlock(edm::LuminosityBlockForOutput const &) override
Definition: FRDOutputModule.cc:178
FRDOutputModule::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlockForOutput const &) override
Definition: FRDOutputModule.cc:133
FRDOutputModule::fileWritten_
bool fileWritten_
Definition: FRDOutputModule.h:49
FRDOutputModule::perFileEventCount_
uint32_t perFileEventCount_
Definition: FRDOutputModule.h:46
EventForOutput.h
edm::LuminosityBlockForOutput
Definition: LuminosityBlockForOutput.h:40
edm::RunForOutput
Definition: RunForOutput.h:39
FRDOutputModule::adlera_
uint32_t adlera_
Definition: FRDOutputModule.h:43
FRDOutputModule::frdFileVersion_
const uint32_t frdFileVersion_
Definition: FRDOutputModule.h:38
ParameterSetDescription.h
FRDOutputModule::finishFileWrite
void finishFileWrite(int ls)
Definition: FRDOutputModule.cc:183
FRDOutputModule::~FRDOutputModule
~FRDOutputModule() override
Definition: FRDOutputModule.cc:34
FRDOutputModule::fileName_
std::string fileName_
Definition: FRDOutputModule.h:40
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
FEDRawDataCollection.h
FRDOutputModule::writeRun
void writeRun(const edm::RunForOutput &) override
Definition: FRDOutputModule.h:26
FRDOutputModule::filePrefix_
std::string filePrefix_
Definition: FRDOutputModule.h:39
FRDOutputModule::adler32
uint32_t adler32() const
Definition: FRDOutputModule.h:33
FRDOutputModule::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: FRDOutputModule.cc:36
edm::EventForOutput
Definition: EventForOutput.h:50
FRDOutputModule::outfd_
int outfd_
Definition: FRDOutputModule.h:42
FRDOutputModule::adlerb_
uint32_t adlerb_
Definition: FRDOutputModule.h:44
FRDOutputModule::token_
const edm::EDGetTokenT< FEDRawDataCollection > token_
Definition: FRDOutputModule.h:35
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
FRDOutputModule::write
void write(edm::EventForOutput const &e) override
Definition: FRDOutputModule.cc:45
ParameterSet.h
FRDOutputModule::perFileSize_
uint64_t perFileSize_
Definition: FRDOutputModule.h:47
LuminosityBlockForOutput.h
FRDOutputModule::writeLuminosityBlock
void writeLuminosityBlock(const edm::LuminosityBlockForOutput &) override
Definition: FRDOutputModule.h:27
FRDOutputModule::FRDOutputModule
FRDOutputModule(edm::ParameterSet const &ps)
Definition: FRDOutputModule.cc:25
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37