Go to the documentation of this file.
6 #ifdef USE_STORAGE_MANAGER
9 #else //USE_STORAGE_MANAGER not defined
10 #ifndef _LARGEFILE64_SOURCE
11 #define _LARGEFILE64_SOURCE
12 #endif //_LARGEFILE64_SOURCE not defined
13 #define _FILE_OFFSET_BITS 64
15 #endif //USE_STORAGE_MANAGER defined
46 #ifdef USE_STORAGE_MANAGER
48 typedef std::unique_ptr<Storage>
FILE_t;
66 return (this->run <
a.run) || ((this->run ==
a.run) && (this->orbit <
a.orbit));
70 return (this->run >
a.run) || ((this->run ==
a.run) && (this->orbit >
a.orbit));
90 int64_t
pos(
int orb)
const;
167 bool mread(
char*
buf,
size_t n,
const char* mess =
nullptr,
bool peek =
false);
edm::EDGetTokenT< FEDRawDataCollection > inputRawCollectionToken_
MatacqProducer(const edm::ParameterSet ¶ms)
uint32_t getOrbitId(edm::Event &ev) const
struct MatacqProducer::stats_t stats_
bool getMatacqEvent(uint32_t runNumber, int32_t orbitId, bool fileChange)
std::map< uint32_t, uint32_t > orbitOffset_
const static stats_t stats_init
bool mread(char *buf, size_t n, const char *mess=nullptr, bool peek=false)
std::string rawInstanceName_
bool mcheck(const std::string &name)
NullOut & operator<<(std::ostream &(*pf)(std::ostream &))
bool getMatacqFile(uint32_t runNumber, uint32_t orbitId, bool *fileChange=nullptr)
bool mtell(filepos_t &pos)
MatacqDataFormatter formatter_
void produce(edm::Event &event, const edm::EventSetup &eventSetup) override
void init(MatacqProducer *mp)
const static int orbitTolerance_
uint32_t openedFileRunNumber_
bool getOrbitRange(uint32_t &firstOrb, uint32_t &lastOrb)
MatacqEventId(uint32_t r, uint32_t o)
std::vector< std::string > fileNames_
std::string orbitOffsetFile_
static std::string runSubDir(uint32_t runNumber)
int onErrorDisablingEvtCnt_
uint32_t getRunNumber(edm::Event &ev) const
NullOut & operator<<(const T &a)
std::vector< unsigned char > data_
static const int matacqFedId_
~MatacqProducer() override
bool operator==(const MatacqEventId &a)
void newRun(int prevRun, int newRun)
double nNonLaserEventsWithMatacq
void addMatacqData(edm::Event &event)
double nLaserEventsWithMatacq
int64_t pos(int orb) const
bool mseek(filepos_t offset, int whence=SEEK_SET, const char *mess=nullptr)
edm::InputTag inputRawCollection_
bool mopen(const std::string &name)
bool operator<(const MatacqEventId &a)
bool operator>(const MatacqEventId &a)
static const int bufferSize
int getCalibTriggerType(edm::Event &ev) const
std::string digiInstanceName_