CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
edm::StreamerInputFile Class Reference

#include <StreamerInputFile.h>

Public Types

enum  Next { Next::kEvent, Next::kFile, Next::kStop }
 

Public Member Functions

void closeStreamerFile ()
 
EventMsgView const * currentRecord () const
 
bool newHeader ()
 
Next next ()
 
bool openNextFile ()
 
InitMsgView const * startMessage () const
 
 StreamerInputFile (std::string const &name, std::shared_ptr< EventSkipperByID > eventSkipperByID=std::shared_ptr< EventSkipperByID >())
 
 StreamerInputFile (std::string const &name, std::string const &LFN, std::shared_ptr< EventSkipperByID > eventSkipperByID=std::shared_ptr< EventSkipperByID >())
 
 StreamerInputFile (std::vector< FileCatalogItem > const &names, std::shared_ptr< EventSkipperByID > eventSkipperByID=std::shared_ptr< EventSkipperByID >())
 
 ~StreamerInputFile ()
 

Private Member Functions

bool compareHeader ()
 
void logFileAction (char const *msg)
 
void openStreamerFile (std::string const &name, std::string const &LFN)
 
IOSize readBytes (char *buf, IOSize nBytes)
 
int readEventMessage ()
 
void readStartMessage ()
 
IOOffset skipBytes (IOSize nBytes)
 

Private Attributes

edm::propagate_const< std::shared_ptr< EventMsgView > > currentEvMsg_
 
unsigned int currentFile_
 
std::string currentFileName_
 
bool currentFileOpen_
 
uint32 currProto_
 
uint32 currRun_
 
bool endOfFile_
 
std::vector< char > eventBuf_
 
edm::propagate_const< std::shared_ptr< EventSkipperByID > > eventSkipperByID_
 
std::vector< char > headerBuf_
 
bool multiStreams_
 
bool newHeader_
 
edm::propagate_const< std::shared_ptr< InitMsgView > > startMsg_
 
edm::propagate_const< std::unique_ptr< Storage > > storage_
 
std::vector< FileCatalogItemstreamerNames_
 

Detailed Description

Definition at line 19 of file StreamerInputFile.h.

Member Enumeration Documentation

◆ Next

Enumerator
kEvent 
kFile 
kStop 

Definition at line 34 of file StreamerInputFile.h.

34 { kEvent, kFile, kStop };

Constructor & Destructor Documentation

◆ StreamerInputFile() [1/3]

edm::StreamerInputFile::StreamerInputFile ( std::string const &  name,
std::string const &  LFN,
std::shared_ptr< EventSkipperByID eventSkipperByID = std::shared_ptr<EventSkipperByID>() 
)
explicit

Reads a Streamer file

Definition at line 21 of file StreamerInputFile.cc.

24  : startMsg_(),
25  currentEvMsg_(),
26  headerBuf_(1000 * 1000),
27  eventBuf_(1000 * 1000 * 7),
28  currentFile_(0),
30  multiStreams_(false),
32  currentFileOpen_(false),
33  eventSkipperByID_(eventSkipperByID),
34  currRun_(0),
35  currProto_(0),
36  newHeader_(false),
37  storage_(),
38  endOfFile_(false) {
39  openStreamerFile(name, LFN);
41  }

References Skims_PA_cff::name, openStreamerFile(), and readStartMessage().

◆ StreamerInputFile() [2/3]

edm::StreamerInputFile::StreamerInputFile ( std::string const &  name,
std::shared_ptr< EventSkipperByID eventSkipperByID = std::shared_ptr<EventSkipperByID>() 
)
explicit

Definition at line 43 of file StreamerInputFile.cc.

44  : StreamerInputFile(name, name, eventSkipperByID) {}

◆ StreamerInputFile() [3/3]

edm::StreamerInputFile::StreamerInputFile ( std::vector< FileCatalogItem > const &  names,
std::shared_ptr< EventSkipperByID eventSkipperByID = std::shared_ptr<EventSkipperByID>() 
)
explicit

Multiple Streamer files

Definition at line 46 of file StreamerInputFile.cc.

48  : startMsg_(),
49  currentEvMsg_(),
50  headerBuf_(1000 * 1000),
51  eventBuf_(1000 * 1000 * 7),
52  currentFile_(0),
54  multiStreams_(true),
56  currentFileOpen_(false),
57  eventSkipperByID_(eventSkipperByID),
58  currRun_(0),
59  currProto_(0),
60  newHeader_(false),
61  endOfFile_(false) {
62  openStreamerFile(names.at(0).fileName(0), names.at(0).logicalFileName());
63  ++currentFile_;
65  currRun_ = startMsg_->run();
66  currProto_ = startMsg_->protocolVersion();
67  }

References currentFile_, currProto_, currRun_, names, openStreamerFile(), readStartMessage(), and startMsg_.

◆ ~StreamerInputFile()

edm::StreamerInputFile::~StreamerInputFile ( )

Definition at line 19 of file StreamerInputFile.cc.

19 { closeStreamerFile(); }

References closeStreamerFile().

Member Function Documentation

◆ closeStreamerFile()

void edm::StreamerInputFile::closeStreamerFile ( )

Test bit if a new header is encountered

Definition at line 105 of file StreamerInputFile.cc.

105  {
106  if (currentFileOpen_ && storage_) {
107  storage_->close();
108  logFileAction(" Closed file ");
109  }
110  currentFileOpen_ = false;
111  }

References currentFileOpen_, logFileAction(), and storage_.

Referenced by openStreamerFile(), and ~StreamerInputFile().

◆ compareHeader()

bool edm::StreamerInputFile::compareHeader ( )
private

Compares current File header with the newly opened file header Returns false in case of mismatch

Definition at line 209 of file StreamerInputFile.cc.

209  {
210  //Get the new header
212 
213  //Values from new Header should match up
214  if (currRun_ != startMsg_->run() || currProto_ != startMsg_->protocolVersion()) {
215  throw Exception(errors::MismatchedInputFiles, "StreamerInputFile::compareHeader")
216  << "File " << streamerNames_.at(currentFile_).fileNames()[0]
217  << "\nhas different run number or protocol version than previous\n";
218  return false;
219  }
220  return true;
221  }

References currentFile_, currProto_, currRun_, Exception, edm::errors::MismatchedInputFiles, readStartMessage(), startMsg_, and streamerNames_.

Referenced by openNextFile().

◆ currentRecord()

EventMsgView const* edm::StreamerInputFile::currentRecord ( ) const
inline

Points to File Start Header/Message

Definition at line 40 of file StreamerInputFile.h.

40 { return currentEvMsg_.get(); }

References currentEvMsg_, and edm::propagate_const< T >::get().

◆ logFileAction()

void edm::StreamerInputFile::logFileAction ( char const *  msg)
private

Definition at line 285 of file StreamerInputFile.cc.

285  {
286  LogAbsolute("fileAction") << std::setprecision(0) << TimeOfDay() << msg << currentFileName_;
287  FlushMessageLog();
288  }

References currentFileName_, edm::FlushMessageLog(), and mps_check::msg.

Referenced by closeStreamerFile(), and openStreamerFile().

◆ newHeader()

bool edm::StreamerInputFile::newHeader ( )
inline

Points to current Record

Definition at line 43 of file StreamerInputFile.h.

43  {
44  bool tmp = newHeader_;
45  newHeader_ = false;
46  return tmp;
47  }

References newHeader_, and createJobs::tmp.

◆ next()

StreamerInputFile::Next edm::StreamerInputFile::next ( void  )

Definition at line 175 of file StreamerInputFile.cc.

175  {
176  if (this->readEventMessage()) {
177  return Next::kEvent;
178  }
179  if (multiStreams_) {
180  //Try opening next file
181  if (currentFile_ <= streamerNames_.size() - 1) {
182  newHeader_ = true;
183  return Next::kFile;
184  }
185  }
186  return Next::kStop;
187  }

References currentFile_, kEvent, kFile, kStop, multiStreams_, newHeader_, readEventMessage(), and streamerNames_.

◆ openNextFile()

bool edm::StreamerInputFile::openNextFile ( )

Definition at line 189 of file StreamerInputFile.cc.

189  {
190  if (currentFile_ <= streamerNames_.size() - 1) {
191  FDEBUG(10) << "Opening file " << streamerNames_.at(currentFile_).fileNames()[0].c_str() << std::endl;
192 
193  openStreamerFile(streamerNames_.at(currentFile_).fileNames()[0],
194  streamerNames_.at(currentFile_).logicalFileName());
195 
196  // If start message was already there, then compare the
197  // previous and new headers
198  if (startMsg_) {
199  FDEBUG(10) << "Comparing Header" << std::endl;
200  compareHeader();
201  }
202  ++currentFile_;
203  endOfFile_ = false;
204  return true;
205  }
206  return false;
207  }

References compareHeader(), currentFile_, endOfFile_, FDEBUG, openStreamerFile(), startMsg_, and streamerNames_.

◆ openStreamerFile()

void edm::StreamerInputFile::openStreamerFile ( std::string const &  name,
std::string const &  LFN 
)
private

Definition at line 69 of file StreamerInputFile.cc.

69  {
71 
73 
74  // Check if the logical file name was found.
75  if (currentFileName_.empty()) {
76  // LFN not found in catalog.
77  throw cms::Exception("LogicalFileNameNotFound", "StreamerInputFile::openStreamerFile()\n")
78  << "Logical file name '" << LFN << "' was not found in the file catalog.\n"
79  << "If you wanted a local file, you forgot the 'file:' prefix\n"
80  << "before the file name in your configuration file.\n";
81  return;
82  }
83 
84  logFileAction(" Initiating request to open file ");
85 
86  IOOffset size = -1;
87  if (StorageFactory::get()->check(name, &size)) {
88  try {
90  } catch (cms::Exception& e) {
92  ex.addContext("Calling StreamerInputFile::openStreamerFile()");
93  ex.clearMessage();
94  ex << "Error Opening Streamer Input File: " << name << "\n";
95  throw ex;
96  }
97  } else {
98  throw Exception(errors::FileOpenError, "StreamerInputFile::openStreamerFile")
99  << "Error Opening Streamer Input File, file does not exist: " << name << "\n";
100  }
101  currentFileOpen_ = true;
102  logFileAction(" Successfully opened file ");
103  }

References cms::Exception::addContext(), edm::check(), cms::Exception::clearMessage(), closeStreamerFile(), currentFileName_, currentFileOpen_, MillePedeFileConverter_cfg::e, Exception, edm::errors::FileOpenError, StorageFactory::get(), logFileAction(), Skims_PA_cff::name, StorageFactory::open(), IOFlags::OpenRead, findQualityFiles::size, and storage_.

Referenced by openNextFile(), and StreamerInputFile().

◆ readBytes()

IOSize edm::StreamerInputFile::readBytes ( char *  buf,
IOSize  nBytes 
)
private

Definition at line 113 of file StreamerInputFile.cc.

113  {
114  IOSize n = 0;
115  try {
116  n = storage_->read(buf, nBytes);
117  } catch (cms::Exception& ce) {
118  Exception ex(errors::FileReadError, "", ce);
119  ex.addContext("Calling StreamerInputFile::readBytes()");
120  throw ex;
121  }
122  return n;
123  }

References cms::Exception::addContext(), visDQMUpload::buf, edm::errors::FileReadError, dqmiodumpmetadata::n, and storage_.

Referenced by readEventMessage(), and readStartMessage().

◆ readEventMessage()

int edm::StreamerInputFile::readEventMessage ( )
private

Definition at line 223 of file StreamerInputFile.cc.

223  {
224  if (endOfFile_)
225  return 0;
226 
227  bool eventRead = false;
228  while (!eventRead) {
229  IOSize nWant = sizeof(EventHeader);
230  IOSize nGot = readBytes(&eventBuf_[0], nWant);
231  if (nGot == 0) {
232  // no more data available
233  endOfFile_ = true;
234  return 0;
235  }
236  if (nGot != nWant) {
237  throw edm::Exception(errors::FileReadError, "StreamerInputFile::readEventMessage")
238  << "Failed reading streamer file, first read in readEventMessage\n"
239  << "Requested " << nWant << " bytes, read function returned " << nGot << " bytes\n";
240  }
241  HeaderView head(&eventBuf_[0]);
242  uint32 code = head.code();
243 
244  // If it is not an event then something is wrong.
245  if (code != Header::EVENT) {
246  throw Exception(errors::FileReadError, "StreamerInputFile::readEventMessage")
247  << "Failed reading streamer file, unknown code in event header\n"
248  << "code = " << code << "\n";
249  }
250  uint32 eventSize = head.size();
251  if (eventSize <= sizeof(EventHeader)) {
252  throw edm::Exception(errors::FileReadError, "StreamerInputFile::readEventMessage")
253  << "Failed reading streamer file, event header size from data too small\n";
254  }
255  eventRead = true;
256  if (eventSkipperByID_) {
257  EventHeader* evh = (EventHeader*)(&eventBuf_[0]);
258  if (eventSkipperByID_->skipIt(convert32(evh->run_), convert32(evh->lumi_), convert64(evh->event_))) {
259  eventRead = false;
260  }
261  }
262  nWant = eventSize - sizeof(EventHeader);
263  if (eventRead) {
264  if (eventBuf_.size() < eventSize)
265  eventBuf_.resize(eventSize);
266  nGot = readBytes(&eventBuf_[sizeof(EventHeader)], nWant);
267  if (nGot != nWant) {
268  throw Exception(errors::FileReadError, "StreamerInputFile::readEventMessage")
269  << "Failed reading streamer file, second read in readEventMessage\n"
270  << "Requested " << nWant << " bytes, read function returned " << nGot << " bytes\n";
271  }
272  } else {
273  nGot = skipBytes(nWant);
274  if (nGot != nWant) {
275  throw Exception(errors::FileReadError, "StreamerInputFile::readEventMessage")
276  << "Failed reading streamer file, skip event in readEventMessage\n"
277  << "Requested " << nWant << " bytes skipped, seek function returned " << nGot << " bytes\n";
278  }
279  }
280  }
281  currentEvMsg_ = std::make_shared<EventMsgView>((void*)&eventBuf_[0]); // propagate_const<T> has no reset() function
282  return 1;
283  }

References HeaderView::code(), convert32(), convert64(), currentEvMsg_, endOfFile_, Header::EVENT, EventHeader::event_, eventBuf_, eventSkipperByID_, Exception, edm::errors::FileReadError, EventHeader::lumi_, readBytes(), EventHeader::run_, HeaderView::size(), and skipBytes().

Referenced by next().

◆ readStartMessage()

void edm::StreamerInputFile::readStartMessage ( )
private

Not an init message should return

Definition at line 139 of file StreamerInputFile.cc.

139  {
140  IOSize nWant = sizeof(HeaderView);
141  IOSize nGot = readBytes(&headerBuf_[0], nWant);
142  if (nGot != nWant) {
143  throw Exception(errors::FileReadError, "StreamerInputFile::readStartMessage")
144  << "Failed reading streamer file, first read in readStartMessage\n";
145  }
146 
147  HeaderView head(&headerBuf_[0]);
148  uint32 code = head.code();
149  if (code != Header::INIT)
150  {
151  throw Exception(errors::FileReadError, "StreamerInputFile::readStartMessage")
152  << "Expecting an init Message at start of file\n";
153  return;
154  }
155 
156  uint32 headerSize = head.size();
157  if (headerBuf_.size() < headerSize)
158  headerBuf_.resize(headerSize);
159 
160  if (headerSize > sizeof(HeaderView)) {
161  nWant = headerSize - sizeof(HeaderView);
162  nGot = readBytes(&headerBuf_[sizeof(HeaderView)], nWant);
163  if (nGot != nWant) {
164  throw Exception(errors::FileReadError, "StreamerInputFile::readStartMessage")
165  << "Failed reading streamer file, second read in readStartMessage\n";
166  }
167  } else {
168  throw Exception(errors::FileReadError, "StreamerInputFile::readStartMessage")
169  << "Failed reading streamer file, init header size from data too small\n";
170  }
171 
172  startMsg_ = std::make_shared<InitMsgView>(&headerBuf_[0]); // propagate_const<T> has no reset() function
173  }

References HeaderView::code(), Exception, edm::errors::FileReadError, headerBuf_, Header::INIT, readBytes(), HeaderView::size(), and startMsg_.

Referenced by compareHeader(), and StreamerInputFile().

◆ skipBytes()

IOOffset edm::StreamerInputFile::skipBytes ( IOSize  nBytes)
private

Definition at line 125 of file StreamerInputFile.cc.

125  {
126  IOOffset n = 0;
127  try {
128  // We wish to return the number of bytes skipped, not the final offset.
129  n = storage_->position(0, Storage::CURRENT);
130  n = storage_->position(nBytes, Storage::CURRENT) - n;
131  } catch (cms::Exception& ce) {
132  Exception ex(errors::FileReadError, "", ce);
133  ex.addContext("Calling StreamerInputFile::skipBytes()");
134  throw ex;
135  }
136  return n;
137  }

References cms::Exception::addContext(), Storage::CURRENT, edm::errors::FileReadError, dqmiodumpmetadata::n, and storage_.

Referenced by readEventMessage().

◆ startMessage()

InitMsgView const* edm::StreamerInputFile::startMessage ( ) const
inline

Moves the handler to next Event Record

Definition at line 37 of file StreamerInputFile.h.

37 { return startMsg_.get(); }

References edm::propagate_const< T >::get(), and startMsg_.

Member Data Documentation

◆ currentEvMsg_

edm::propagate_const<std::shared_ptr<EventMsgView> > edm::StreamerInputFile::currentEvMsg_
private

Definition at line 67 of file StreamerInputFile.h.

Referenced by currentRecord(), and readEventMessage().

◆ currentFile_

unsigned int edm::StreamerInputFile::currentFile_
private

Buffer to store Event Data

Definition at line 72 of file StreamerInputFile.h.

Referenced by compareHeader(), next(), openNextFile(), and StreamerInputFile().

◆ currentFileName_

std::string edm::StreamerInputFile::currentFileName_
private

True if Multiple Streams are Read

Definition at line 75 of file StreamerInputFile.h.

Referenced by logFileAction(), and openStreamerFile().

◆ currentFileOpen_

bool edm::StreamerInputFile::currentFileOpen_
private

Definition at line 76 of file StreamerInputFile.h.

Referenced by closeStreamerFile(), and openStreamerFile().

◆ currProto_

uint32 edm::StreamerInputFile::currProto_
private

Definition at line 81 of file StreamerInputFile.h.

Referenced by compareHeader(), and StreamerInputFile().

◆ currRun_

uint32 edm::StreamerInputFile::currRun_
private

Definition at line 80 of file StreamerInputFile.h.

Referenced by compareHeader(), and StreamerInputFile().

◆ endOfFile_

bool edm::StreamerInputFile::endOfFile_
private

Definition at line 87 of file StreamerInputFile.h.

Referenced by openNextFile(), and readEventMessage().

◆ eventBuf_

std::vector<char> edm::StreamerInputFile::eventBuf_
private

Buffer to store file Header

Definition at line 70 of file StreamerInputFile.h.

Referenced by readEventMessage().

◆ eventSkipperByID_

edm::propagate_const<std::shared_ptr<EventSkipperByID> > edm::StreamerInputFile::eventSkipperByID_
private

Definition at line 78 of file StreamerInputFile.h.

Referenced by readEventMessage().

◆ headerBuf_

std::vector<char> edm::StreamerInputFile::headerBuf_
private

Definition at line 69 of file StreamerInputFile.h.

Referenced by readStartMessage().

◆ multiStreams_

bool edm::StreamerInputFile::multiStreams_
private

names of Streamer files

Definition at line 74 of file StreamerInputFile.h.

Referenced by next().

◆ newHeader_

bool edm::StreamerInputFile::newHeader_
private

Definition at line 83 of file StreamerInputFile.h.

Referenced by newHeader(), and next().

◆ startMsg_

edm::propagate_const<std::shared_ptr<InitMsgView> > edm::StreamerInputFile::startMsg_
private

◆ storage_

edm::propagate_const<std::unique_ptr<Storage> > edm::StreamerInputFile::storage_
private

Definition at line 85 of file StreamerInputFile.h.

Referenced by closeStreamerFile(), openStreamerFile(), readBytes(), and skipBytes().

◆ streamerNames_

std::vector<FileCatalogItem> edm::StreamerInputFile::streamerNames_
private

keeps track of which file is in use at the moment

Definition at line 73 of file StreamerInputFile.h.

Referenced by compareHeader(), next(), and openNextFile().

edm::errors::MismatchedInputFiles
Definition: EDMException.h:52
edm::StreamerInputFile::newHeader_
bool newHeader_
Definition: StreamerInputFile.h:83
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
edm::StreamerInputFile::currProto_
uint32 currProto_
Definition: StreamerInputFile.h:81
StorageFactory::open
std::unique_ptr< Storage > open(const std::string &url, int mode=IOFlags::OpenRead) const
Definition: StorageFactory.cc:124
edm::StreamerInputFile::readEventMessage
int readEventMessage()
Definition: StreamerInputFile.cc:223
EventHeader
Definition: EventHeader.h:18
edm::propagate_const::get
constexpr element_type const * get() const
Definition: propagate_const.h:64
mps_check.msg
tuple msg
Definition: mps_check.py:285
edm::StreamerInputFile::Next::kEvent
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
edm::StreamerInputFile::skipBytes
IOOffset skipBytes(IOSize nBytes)
Definition: StreamerInputFile.cc:125
edm::StreamerInputFile::currentFileName_
std::string currentFileName_
Definition: StreamerInputFile.h:75
edm::StreamerInputFile::currentEvMsg_
edm::propagate_const< std::shared_ptr< EventMsgView > > currentEvMsg_
Definition: StreamerInputFile.h:67
Header::INIT
Definition: MsgHeader.h:15
edm::StreamerInputFile::streamerNames_
std::vector< FileCatalogItem > streamerNames_
Definition: StreamerInputFile.h:73
uint32
unsigned int uint32
Definition: MsgTools.h:13
edm::errors::FileOpenError
Definition: EDMException.h:49
EventHeader::lumi_
char_uint32 lumi_
Definition: EventMessage.h:66
Header::EVENT
Definition: MsgHeader.h:16
names
const std::string names[nVars_]
Definition: PhotonIDValueMapProducer.cc:124
StorageFactory::get
static const StorageFactory * get(void)
Definition: StorageFactory.cc:28
edm::StreamerInputFile::storage_
edm::propagate_const< std::unique_ptr< Storage > > storage_
Definition: StreamerInputFile.h:85
edm::StreamerInputFile::startMsg_
edm::propagate_const< std::shared_ptr< InitMsgView > > startMsg_
Definition: StreamerInputFile.h:66
edm::StreamerInputFile::compareHeader
bool compareHeader()
Definition: StreamerInputFile.cc:209
IOFlags::OpenRead
Definition: IOFlags.h:7
convert32
uint32 convert32(char_uint32 v)
Definition: MsgTools.h:28
HeaderView
Definition: MsgHeader.h:35
edm::StreamerInputFile::closeStreamerFile
void closeStreamerFile()
Definition: StreamerInputFile.cc:105
edm::shared_memory::channel_names::kStop
constexpr char const *const kStop
Definition: channel_names.h:34
edm::FlushMessageLog
void FlushMessageLog()
Definition: MessageLogger.cc:34
FDEBUG
#define FDEBUG(lev)
Definition: DebugMacros.h:19
Exception
IOOffset
int64_t IOOffset
Definition: IOTypes.h:19
EventHeader::run_
char_uint32 run_
Definition: EventMessage.h:64
edm::StreamerInputFile::headerBuf_
std::vector< char > headerBuf_
Definition: StreamerInputFile.h:69
edm::LogAbsolute
Log< level::System, true > LogAbsolute
Definition: MessageLogger.h:134
convert64
uint64 convert64(char_uint64 v)
Definition: MsgTools.h:20
edm::StreamerInputFile::readStartMessage
void readStartMessage()
Definition: StreamerInputFile.cc:139
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
edm::StreamerInputFile::eventSkipperByID_
edm::propagate_const< std::shared_ptr< EventSkipperByID > > eventSkipperByID_
Definition: StreamerInputFile.h:78
edm::StreamerInputFile::Next::kStop
EventHeader::event_
char_uint64 event_
Definition: EventMessage.h:65
edm::StreamerInputFile::currRun_
uint32 currRun_
Definition: StreamerInputFile.h:80
edm::check
static void check(T const &p, std::string const &id, SelectedProducts const &iProducts)
Definition: GetProductCheckerOutputModule.cc:80
edm::StreamerInputFile::Next::kFile
Exception
Definition: hltDiff.cc:246
edm::StreamerInputFile::openStreamerFile
void openStreamerFile(std::string const &name, std::string const &LFN)
Definition: StreamerInputFile.cc:69
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
edm::StreamerInputFile::multiStreams_
bool multiStreams_
Definition: StreamerInputFile.h:74
edm::StreamerInputFile::endOfFile_
bool endOfFile_
Definition: StreamerInputFile.h:87
edm::StreamerInputFile::currentFile_
unsigned int currentFile_
Definition: StreamerInputFile.h:72
Storage::CURRENT
Definition: Storage.h:22
edm::StreamerInputFile::logFileAction
void logFileAction(char const *msg)
Definition: StreamerInputFile.cc:285
cms::Exception
Definition: Exception.h:70
edm::StreamerInputFile::StreamerInputFile
StreamerInputFile(std::string const &name, std::string const &LFN, std::shared_ptr< EventSkipperByID > eventSkipperByID=std::shared_ptr< EventSkipperByID >())
Definition: StreamerInputFile.cc:21
edm::StreamerInputFile::readBytes
IOSize readBytes(char *buf, IOSize nBytes)
Definition: StreamerInputFile.cc:113
edm::StreamerInputFile::eventBuf_
std::vector< char > eventBuf_
Definition: StreamerInputFile.h:70
edm::StreamerInputFile::currentFileOpen_
bool currentFileOpen_
Definition: StreamerInputFile.h:76
IOSize
size_t IOSize
Definition: IOTypes.h:14
edm::errors::FileReadError
Definition: EDMException.h:50
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37