CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
FRDOutputModule Class Reference

#include <FRDOutputModule.h>

Inheritance diagram for FRDOutputModule:
edm::one::OutputModule< edm::one::WatchLuminosityBlocks > edm::one::OutputModuleBase edm::EDConsumerBase

Public Member Functions

 FRDOutputModule (edm::ParameterSet const &ps)
 
 ~FRDOutputModule () override
 
- Public Member Functions inherited from edm::one::OutputModule< edm::one::WatchLuminosityBlocks >
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const OutputModuleoperator= (const OutputModule &)=delete
 
 OutputModule (const OutputModule &)=delete
 
 OutputModule (edm::ParameterSet const &iPSet)
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::OutputModuleBase
BranchIDLists const * branchIDLists ()
 
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch () const
 
SelectedProductsForBranchType const & keptProducts () const
 
int maxEvents () const
 
const ModuleDescriptionmoduleDescription () const
 
OutputModuleBaseoperator= (OutputModuleBase const &)=delete
 
 OutputModuleBase (OutputModuleBase const &)=delete
 
 OutputModuleBase (ParameterSet const &pset)
 
OutputProcessBlockHelper const & outputProcessBlockHelper () const
 
std::string const & processName () const
 
int remainingEvents () const
 
bool selected (BranchDescription const &desc) const
 
void selectProducts (ProductRegistry const &preg, ThinnedAssociationsHelper const &, ProcessBlockHelperBase const &)
 
SharedResourcesAcquirersharedResourcesAcquirer ()
 
SubProcessParentageHelper const * subProcessParentageHelper () const
 
ThinnedAssociationsHelper const * thinnedAssociationsHelper () const
 
bool wantAllEvents () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~OutputModuleBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::OutputModuleBase
static const std::string & baseType ()
 
static void fillDescription (ParameterSetDescription &desc, std::vector< std::string > const &iDefaultOutputCommands=ProductSelectorRules::defaultSelectionStrings())
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Private Member Functions

uint32_t adler32 () const
 
void beginLuminosityBlock (edm::LuminosityBlockForOutput const &) override
 
void endLuminosityBlock (edm::LuminosityBlockForOutput const &) override
 
void finishFileWrite (int ls)
 
void write (edm::EventForOutput const &e) override
 
void writeLuminosityBlock (const edm::LuminosityBlockForOutput &) override
 
void writeRun (const edm::RunForOutput &) override
 

Private Attributes

uint32_t adlera_
 
uint32_t adlerb_
 
std::string fileName_
 
std::string filePrefix_
 
bool fileWritten_ = false
 
const uint32_t frdFileVersion_
 
const uint32_t frdVersion_
 
int outfd_ = -1
 
uint32_t perFileEventCount_
 
uint64_t perFileSize_
 
const edm::EDGetTokenT< FEDRawDataCollectiontoken_
 

Additional Inherited Members

- Public Types inherited from edm::one::OutputModuleBase
typedef OutputModuleBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::one::OutputModuleBase
void configure (OutputModuleDescription const &desc)
 
ModuleDescription const & description () const
 
void doAccessInputProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
void doBeginJob ()
 
bool doBeginLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *)
 
void doBeginProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
bool doBeginRun (RunTransitionInfo const &, ModuleCallingContext const *)
 
void doEndJob ()
 
bool doEndLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *)
 
void doEndProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
bool doEndRun (RunTransitionInfo const &, ModuleCallingContext const *)
 
bool doEvent (EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
 
void doPreallocate (PreallocationConfiguration const &)
 
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID ()
 
virtual void preallocLumis (unsigned int)
 
ParameterSetID selectorConfig () const
 
void setEventSelectionInfo (std::map< std::string, std::vector< std::pair< std::string, int >>> const &outputModulePathPositions, bool anyProductProduced)
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 15 of file FRDOutputModule.h.

Constructor & Destructor Documentation

◆ FRDOutputModule()

FRDOutputModule::FRDOutputModule ( edm::ParameterSet const &  ps)
explicit

Definition at line 25 of file FRDOutputModule.cc.

28  token_(consumes<FEDRawDataCollection>(ps.getParameter<edm::InputTag>("source"))),
29  frdVersion_(ps.getUntrackedParameter<unsigned int>("frdVersion")),
30  frdFileVersion_(ps.getUntrackedParameter<unsigned int>("frdFileVersion")),
31  filePrefix_(ps.getUntrackedParameter<std::string>("filePrefix")),
32  fileName_(ps.getUntrackedParameter<std::string>("fileName")) {}

◆ ~FRDOutputModule()

FRDOutputModule::~FRDOutputModule ( )
override

Definition at line 34 of file FRDOutputModule.cc.

34 {}

Member Function Documentation

◆ adler32()

uint32_t FRDOutputModule::adler32 ( ) const
inlineprivate

Definition at line 33 of file FRDOutputModule.h.

33 { return (adlerb_ << 16) | adlera_; }

References adlera_, and adlerb_.

◆ beginLuminosityBlock()

void FRDOutputModule::beginLuminosityBlock ( edm::LuminosityBlockForOutput const &  lumiBlock)
overrideprivate

Definition at line 133 of file FRDOutputModule.cc.

133  {
134  int ls = lumiBlock.id().luminosityBlock();
135 
136  if (outfd_ != -1)
138 
139  if (fileWritten_)
140  throw cms::Exception("RawEventFileWriterForBU", "beginLuminosityBlock")
141  << "Multiple lumisections not supported in the same FRD file!";
142 
144  if (fileName_.empty()) {
145  std::stringstream ss;
146  ss << (filePrefix_.empty() ? "" : filePrefix_ + "_") << "run" << std::setfill('0') << std::setw(6)
147  << lumiBlock.run() << "_ls" << std::setfill('0') << std::setw(4) << ls << "_index000000.raw";
148  fileName = ss.str();
149  } else {
150  //use exact filename (will be overwritten by last LS content if input contains multiple lumisections)
152  }
153 
154  outfd_ = open(fileName.c_str(), O_WRONLY | O_CREAT, S_IRWXU | S_IRWXG | S_IRWXO);
155  ftruncate(outfd_, 0);
156 
157  if (outfd_ < 0) { //attention here... it may happen that outfd_ is *not* set (e.g. missing initialize call...)
158  throw cms::Exception("RawEventFileWriterForBU", "beginLuminosityBlock")
159  << "Error opening FED Raw Data event output file: " << fileName << ": " << strerror(errno) << "\n";
160  }
161  edm::LogInfo("RawEventFileWriterForBU") << " Opened " << fileName;
162 
163  perFileEventCount_ = 0;
164  perFileSize_ = 0;
165 
166  adlera_ = 1;
167  adlerb_ = 0;
168 
169  if (frdFileVersion_ > 0) {
170  assert(frdFileVersion_ == 1);
171  //reserve space for file header
172  ftruncate(outfd_, sizeof(FRDFileHeader_v1));
173  lseek(outfd_, sizeof(FRDFileHeader_v1), SEEK_SET);
174  perFileSize_ = sizeof(FRDFileHeader_v1);
175  }
176 }

References adlera_, adlerb_, cms::cuda::assert(), Exception, MillePedeFileConverter_cfg::fileName, fileName_, filePrefix_, fileWritten_, finishFileWrite(), frdFileVersion_, edm::LuminosityBlockForOutput::id(), eostools::ls(), edm::LuminosityBlockID::luminosityBlock(), outfd_, perFileEventCount_, perFileSize_, edm::LuminosityBlockForOutput::run(), contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ endLuminosityBlock()

void FRDOutputModule::endLuminosityBlock ( edm::LuminosityBlockForOutput const &  lumiBlock)
overrideprivate

Definition at line 178 of file FRDOutputModule.cc.

178  {
179  int ls = lumiBlock.id().luminosityBlock();
181 }

References finishFileWrite(), edm::LuminosityBlockForOutput::id(), eostools::ls(), and edm::LuminosityBlockID::luminosityBlock().

◆ fillDescriptions()

void FRDOutputModule::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 36 of file FRDOutputModule.cc.

36  {
38  desc.add<edm::InputTag>("source", edm::InputTag("rawDataCollector"));
39  desc.addUntracked<unsigned int>("frdFileVersion", 1), desc.addUntracked<unsigned int>("frdVersion", 6);
40  desc.addUntracked<std::string>("filePrefix", "");
41  desc.addUntracked<std::string>("fileName", "");
42  descriptions.addWithDefaultLabel(desc);
43 }

References edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ finishFileWrite()

void FRDOutputModule::finishFileWrite ( int  ls)
private

Definition at line 183 of file FRDOutputModule.cc.

183  {
184  if (outfd_ == -1)
185  return;
186 
187  if (frdFileVersion_ > 0) {
188  //rewind
189  lseek(outfd_, 0, SEEK_SET);
190  FRDFileHeader_v1 frdFileHeader(perFileEventCount_, (uint32_t)ls, perFileSize_);
191  ::write(outfd_, (char*)&frdFileHeader, sizeof(FRDFileHeader_v1));
192  }
193 
194  close(outfd_);
195  outfd_ = -1;
196  if (!fileName_.empty())
197  fileWritten_ = true;
198 
199  edm::LogInfo("FRDOutputModule") << "closed RAW input file";
200 }

References fileName_, fileWritten_, frdFileVersion_, eostools::ls(), outfd_, perFileEventCount_, perFileSize_, and write().

Referenced by beginLuminosityBlock(), and endLuminosityBlock().

◆ write()

void FRDOutputModule::write ( edm::EventForOutput const &  e)
overrideprivatevirtual

Implements edm::one::OutputModuleBase.

Definition at line 45 of file FRDOutputModule.cc.

45  {
46  // serialize the FEDRawDataCollection into the format that we expect for
47  // FRDEventMsgView objects (may be better ways to do this)
49  e.getByToken(token_, fedBuffers);
50 
51  // determine the expected size of the FRDEvent IN BYTES !!!!!
53  int headerSize = FRDHeaderVersionSize[frdVersion_];
54  int expectedSize = headerSize;
55  int nFeds = frdVersion_ < 3 ? 1024 : FEDNumbering::lastFEDId() + 1;
56 
57  for (int idx = 0; idx < nFeds; ++idx) {
58  FEDRawData singleFED = fedBuffers->FEDData(idx);
59  expectedSize += singleFED.size();
60  }
61 
62  // build the FRDEvent into a temporary buffer
63  std::unique_ptr<std::vector<unsigned char>> workBuffer(
64  std::make_unique<std::vector<unsigned char>>(expectedSize + 256));
65  uint32* bufPtr = (uint32*)(workBuffer.get()->data());
66  if (frdVersion_ <= 5) {
67  *bufPtr++ = (uint32)frdVersion_; // version number only
68  } else {
69  uint16 flags = 0;
70  if (!e.eventAuxiliary().isRealData())
72  *(uint16*)bufPtr = (uint16)(frdVersion_ & 0xffff);
73  *((uint16*)bufPtr + 1) = flags;
74  bufPtr++;
75  }
76  *bufPtr++ = (uint32)e.id().run();
77  *bufPtr++ = (uint32)e.luminosityBlock();
78  *bufPtr++ = (uint32)e.id().event();
79  if (frdVersion_ == 4)
80  *bufPtr++ = 0; //64-bit event id high part
81 
82  if (frdVersion_ < 3) {
83  uint32 fedsize[1024];
84  for (int idx = 0; idx < 1024; ++idx) {
85  FEDRawData singleFED = fedBuffers->FEDData(idx);
86  fedsize[idx] = singleFED.size();
87  //std::cout << "fed size " << singleFED.size()<< std::endl;
88  }
89  memcpy(bufPtr, fedsize, 1024 * sizeof(uint32));
90  bufPtr += 1024;
91  } else {
92  *bufPtr++ = expectedSize - headerSize;
93  *bufPtr++ = 0;
94  if (frdVersion_ <= 4)
95  *bufPtr++ = 0;
96  }
97  uint32* payloadPtr = bufPtr;
98  for (int idx = 0; idx < nFeds; ++idx) {
99  FEDRawData singleFED = fedBuffers->FEDData(idx);
100  if (singleFED.size() > 0) {
101  memcpy(bufPtr, singleFED.data(), singleFED.size());
102  bufPtr += singleFED.size() / 4;
103  }
104  }
105  if (frdVersion_ > 4) {
106  //crc32c checksum
107  uint32_t crc = 0;
108  *(payloadPtr - 1) = crc32c(crc, (const unsigned char*)payloadPtr, expectedSize - headerSize);
109  } else if (frdVersion_ >= 3) {
110  //adler32 checksum
111  uint32 adlera = 1;
112  uint32 adlerb = 0;
113  cms::Adler32((const char*)payloadPtr, expectedSize - headerSize, adlera, adlerb);
114  *(payloadPtr - 1) = (adlerb << 16) | adlera;
115  }
116 
117  // create the FRDEventMsgView and use the template consumer to write it out
118  FRDEventMsgView msg(workBuffer.get()->data());
119 
120  //write
121  ssize_t retval = ::write(outfd_, (void*)msg.startAddress(), msg.size());
122 
123  if ((unsigned)retval != msg.size()) {
124  throw cms::Exception("FRDOutputModule", "write")
125  << "Error writing FED Raw Data event data to " << fileName_ << ". Possibly the output disk "
126  << "is full?" << std::endl;
127  }
128 
130  perFileSize_ += msg.size();
131 }

References cms::Adler32(), cms::cuda::assert(), crc32c(), FEDRawData::data(), MillePedeFileConverter_cfg::e, Exception, FEDRawDataCollection::FEDData(), fileName_, HLT_FULL_cff::flags, FRDEVENT_MASK_ISGENDATA, FRDHeaderMaxVersion, FRDHeaderVersionSize, frdVersion_, heavyIonCSV_trainingSettings::idx, FEDNumbering::lastFEDId(), mps_check::msg, outfd_, perFileEventCount_, perFileSize_, FEDRawData::size(), and token_.

Referenced by finishFileWrite(), and pkg.AbstractPkg::generate().

◆ writeLuminosityBlock()

void FRDOutputModule::writeLuminosityBlock ( const edm::LuminosityBlockForOutput )
inlineoverrideprivatevirtual

Implements edm::one::OutputModuleBase.

Definition at line 27 of file FRDOutputModule.h.

27 {}

◆ writeRun()

void FRDOutputModule::writeRun ( const edm::RunForOutput )
inlineoverrideprivatevirtual

Implements edm::one::OutputModuleBase.

Definition at line 26 of file FRDOutputModule.h.

26 {}

Member Data Documentation

◆ adlera_

uint32_t FRDOutputModule::adlera_
private

Definition at line 43 of file FRDOutputModule.h.

Referenced by adler32(), and beginLuminosityBlock().

◆ adlerb_

uint32_t FRDOutputModule::adlerb_
private

Definition at line 44 of file FRDOutputModule.h.

Referenced by adler32(), and beginLuminosityBlock().

◆ fileName_

std::string FRDOutputModule::fileName_
private

Definition at line 40 of file FRDOutputModule.h.

Referenced by beginLuminosityBlock(), finishFileWrite(), and write().

◆ filePrefix_

std::string FRDOutputModule::filePrefix_
private

Definition at line 39 of file FRDOutputModule.h.

Referenced by beginLuminosityBlock().

◆ fileWritten_

bool FRDOutputModule::fileWritten_ = false
private

Definition at line 49 of file FRDOutputModule.h.

Referenced by beginLuminosityBlock(), and finishFileWrite().

◆ frdFileVersion_

const uint32_t FRDOutputModule::frdFileVersion_
private

Definition at line 38 of file FRDOutputModule.h.

Referenced by beginLuminosityBlock(), and finishFileWrite().

◆ frdVersion_

const uint32_t FRDOutputModule::frdVersion_
private

Definition at line 37 of file FRDOutputModule.h.

Referenced by write().

◆ outfd_

int FRDOutputModule::outfd_ = -1
private

Definition at line 42 of file FRDOutputModule.h.

Referenced by beginLuminosityBlock(), finishFileWrite(), and write().

◆ perFileEventCount_

uint32_t FRDOutputModule::perFileEventCount_
private

Definition at line 46 of file FRDOutputModule.h.

Referenced by beginLuminosityBlock(), finishFileWrite(), and write().

◆ perFileSize_

uint64_t FRDOutputModule::perFileSize_
private

Definition at line 47 of file FRDOutputModule.h.

Referenced by beginLuminosityBlock(), finishFileWrite(), and write().

◆ token_

const edm::EDGetTokenT<FEDRawDataCollection> FRDOutputModule::token_
private

Definition at line 35 of file FRDOutputModule.h.

Referenced by write().

edm::one::OutputModule< edm::one::WatchLuminosityBlocks >
eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
FRDEventMsgView
Definition: FRDEventMessage.h:137
FRDOutputModule::frdVersion_
const uint32_t frdVersion_
Definition: FRDOutputModule.h:37
FEDNumbering::lastFEDId
static constexpr int lastFEDId()
Definition: FEDNumbering.h:19
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
FRDOutputModule::fileWritten_
bool fileWritten_
Definition: FRDOutputModule.h:49
cms::cuda::assert
assert(be >=bs)
FRDOutputModule::perFileEventCount_
uint32_t perFileEventCount_
Definition: FRDOutputModule.h:46
mps_check.msg
tuple msg
Definition: mps_check.py:285
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
edm::Handle< FEDRawDataCollection >
FRDHeaderVersionSize
constexpr std::array< uint32, FRDHeaderMaxVersion+1 > FRDHeaderVersionSize
Definition: FRDEventMessage.h:129
FEDRawData::data
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition: FEDRawData.cc:24
edm::one::OutputModuleBase::OutputModuleBase
OutputModuleBase(ParameterSet const &pset)
Definition: OutputModuleBase.cc:46
uint32
unsigned int uint32
Definition: MsgTools.h:13
FEDRawData
Definition: FEDRawData.h:19
FRDEVENT_MASK_ISGENDATA
const uint16 FRDEVENT_MASK_ISGENDATA
Definition: FRDEventMessage.h:126
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
cms::Adler32
void Adler32(char const *data, size_t len, uint32_t &a, uint32_t &b)
Definition: Adler32Calculator.cc:10
FRDOutputModule::adlera_
uint32_t adlera_
Definition: FRDOutputModule.h:43
FRDOutputModule::frdFileVersion_
const uint32_t frdFileVersion_
Definition: FRDOutputModule.h:38
FRDHeaderMaxVersion
constexpr size_t FRDHeaderMaxVersion
Definition: FRDEventMessage.h:128
uint16
unsigned short uint16
Definition: MsgTools.h:12
FRDOutputModule::finishFileWrite
void finishFileWrite(int ls)
Definition: FRDOutputModule.cc:183
FEDRawDataCollection::FEDData
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
Definition: FEDRawDataCollection.cc:19
FRDOutputModule::fileName_
std::string fileName_
Definition: FRDOutputModule.h:40
crc32c
uint32_t crc32c(uint32_t crc, const unsigned char *buf, size_t len)
Definition: crc32c.cc:340
FRDOutputModule::filePrefix_
std::string filePrefix_
Definition: FRDOutputModule.h:39
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FEDRawData::size
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:45
FRDFileHeader_v1
Definition: FRDFileHeader.h:24
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
FRDOutputModule::outfd_
int outfd_
Definition: FRDOutputModule.h:42
FRDOutputModule::adlerb_
uint32_t adlerb_
Definition: FRDOutputModule.h:44
Exception
Definition: hltDiff.cc:245
FRDOutputModule::token_
const edm::EDGetTokenT< FEDRawDataCollection > token_
Definition: FRDOutputModule.h:35
FRDOutputModule::write
void write(edm::EventForOutput const &e) override
Definition: FRDOutputModule.cc:45
FRDOutputModule::perFileSize_
uint64_t perFileSize_
Definition: FRDOutputModule.h:47
HLT_FULL_cff.flags
flags
Definition: HLT_FULL_cff.py:13168
edm::InputTag
Definition: InputTag.h:15
edm::ConfigurationDescriptions::addWithDefaultLabel
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:87
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37