#include <MatacqProducer.h>
|
| MatacqProducer (const edm::ParameterSet ¶ms) |
|
virtual void | produce (edm::Event &event, const edm::EventSetup &eventSetup) |
|
| ~MatacqProducer () |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducer () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| ProducerBase () |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription
const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
virtual | ~ProducerBase () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
|
void | addMatacqData (edm::Event &event) |
|
int | getCalibTriggerType (edm::Event &ev) const |
|
bool | getMatacqEvent (uint32_t runNumber, int32_t orbitId, bool fileChange) |
|
bool | getMatacqFile (uint32_t runNumber, uint32_t orbitId, bool *fileChange=0) |
|
uint32_t | getOrbitId (edm::Event &ev) const |
|
uint32_t | getRunNumber (edm::Event &ev) const |
|
void | loadOrbitOffset () |
|
bool | mcheck (const std::string &name) |
|
void | mclose () |
|
bool | meof () |
|
bool | misOpened () |
|
bool | mopen (const std::string &name) |
|
bool | mread (char *buf, size_t n, const char *mess=0, bool peek=false) |
|
bool | mrewind () |
|
bool | mseek (filepos_t offset, int whence=SEEK_SET, const char *mess=0) |
|
bool | msize (filepos_t &s) |
|
bool | mtell (filepos_t &pos) |
|
void | newRun (int prevRun, int newRun) |
|
|
static std::string | runSubDir (uint32_t runNumber) |
|
Definition at line 45 of file MatacqProducer.h.
Enumerator |
---|
laserType |
|
ledType |
|
tpType |
|
pedType |
|
Definition at line 48 of file MatacqProducer.h.
Constructor
- Parameters
-
params | seletive readout parameters |
Definition at line 65 of file MatacqProducer.cc.
MatacqProducer::~MatacqProducer |
( |
| ) |
|
void MatacqProducer::addMatacqData |
( |
edm::Event & |
event | ) |
|
|
private |
Add matacq digi to the event
- Parameters
-
event | the event |
digiInstanceName_ | name to give to the matacq digi instance |
Definition at line 179 of file MatacqProducer.cc.
int MatacqProducer::getCalibTriggerType |
( |
edm::Event & |
ev | ) |
const |
|
private |
bool MatacqProducer::getMatacqEvent |
( |
uint32_t |
runNumber, |
|
|
int32_t |
orbitId, |
|
|
bool |
fileChange |
|
) |
| |
|
private |
bool MatacqProducer::getMatacqFile |
( |
uint32_t |
runNumber, |
|
|
uint32_t |
orbitId, |
|
|
bool * |
fileChange = 0 |
|
) |
| |
|
private |
Retrieve the file containing a given matacq event
- Parameters
-
runNumber | Number of the run the matacq event is looking from |
orbitId | Id of the orbit of the matacq event |
fileChange | if not null pointer, set to true if the file changed. |
- Returns
- true if file retrieval succeeded, false otherwise. found.
Definition at line 543 of file MatacqProducer.cc.
uint32_t MatacqProducer::getOrbitId |
( |
edm::Event & |
ev | ) |
const |
|
private |
uint32_t MatacqProducer::getRunNumber |
( |
edm::Event & |
ev | ) |
const |
|
private |
void MatacqProducer::loadOrbitOffset |
( |
| ) |
|
|
private |
bool MatacqProducer::mcheck |
( |
const std::string & |
name | ) |
|
|
private |
void MatacqProducer::mclose |
( |
| ) |
|
|
private |
bool MatacqProducer::meof |
( |
| ) |
|
|
private |
bool MatacqProducer::misOpened |
( |
| ) |
|
|
private |
bool MatacqProducer::mopen |
( |
const std::string & |
name | ) |
|
|
private |
bool MatacqProducer::mread |
( |
char * |
buf, |
|
|
size_t |
n, |
|
|
const char * |
mess = 0 , |
|
|
bool |
peek = false |
|
) |
| |
|
private |
Read a data block from input file. On failure file position is restored and if position restoring fails, file is rewind.
- Parameters
-
buf | buffer to store read data |
n | size of data block |
mess | text to insert in the eventual error message. |
peek | if true file position is restored after the data read |
- Returns
- true on success, false on failure
Definition at line 959 of file MatacqProducer.cc.
bool MatacqProducer::mrewind |
( |
| ) |
|
|
private |
bool MatacqProducer::mseek |
( |
filepos_t |
offset, |
|
|
int |
whence = SEEK_SET , |
|
|
const char * |
mess = 0 |
|
) |
| |
|
private |
Move input file read pointer. On failure file is rewind.
- Parameters
-
buf | buffer to store read data |
n | size of data block |
mess | text to insert in the eventual error message. |
- Returns
- true on success, false on failure
Definition at line 939 of file MatacqProducer.cc.
bool MatacqProducer::mtell |
( |
filepos_t & |
pos | ) |
|
|
private |
void MatacqProducer::newRun |
( |
int |
prevRun, |
|
|
int |
newRun |
|
) |
| |
|
private |
std::string MatacqProducer::runSubDir |
( |
uint32_t |
runNumber | ) |
|
|
staticprivate |
const int MatacqProducer::bufferSize = 30000 |
|
staticprivate |
std::vector<unsigned char> MatacqProducer::data_ |
|
private |
std::string MatacqProducer::digiInstanceName_ |
|
private |
Instance name to use for the produced Matacq digi collection
Definition at line 212 of file MatacqProducer.h.
bool MatacqProducer::disabled_ |
|
private |
Parameter to disable matacq data production. For timing purpose.
Definition at line 224 of file MatacqProducer.h.
bool MatacqProducer::doOrbitOffset_ |
|
private |
int MatacqProducer::eventSkipCounter_ |
|
private |
int MatacqProducer::fastRetrievalThresh_ |
|
private |
std::vector<std::string> MatacqProducer::fileNames_ |
|
private |
bool MatacqProducer::ignoreTriggerType_ |
|
private |
When true look for matacq data independently of trigger type.
Definition at line 256 of file MatacqProducer.h.
FILE_t MatacqProducer::inFile_ |
|
private |
std::string MatacqProducer::inFileName_ |
|
private |
Name of the raw data collection the Matacq data must be merge to if merging is enabled.
Definition at line 241 of file MatacqProducer.h.
EDM token to access the raw data collection the Matacq data must be merge to if merging is enabled.
Definition at line 247 of file MatacqProducer.h.
int32_t MatacqProducer::lastOrb_ |
|
private |
std::ofstream MatacqProducer::logFile_ |
|
private |
std::string MatacqProducer::logFileName_ |
|
private |
bool MatacqProducer::logTiming_ |
|
private |
const int MatacqProducer::matacqFedId_ = 655 |
|
staticprivate |
bool MatacqProducer::mergeRaw_ |
|
private |
Switch for merging Matacq raw data with existing raw data collection.
Definition at line 252 of file MatacqProducer.h.
int MatacqProducer::onErrorDisablingEvtCnt_ |
|
private |
uint32_t MatacqProducer::openedFileRunNumber_ |
|
private |
std::map<uint32_t,uint32_t> MatacqProducer::orbitOffset_ |
|
private |
std::string MatacqProducer::orbitOffsetFile_ |
|
private |
File name of table with orbit offset between matacq event and DCC. Used to recover data suffering from orbit miss-synchonization
Definition at line 281 of file MatacqProducer.h.
const int MatacqProducer::orbitTolerance_ = 80 |
|
staticprivate |
bool MatacqProducer::produceDigis_ |
|
private |
bool MatacqProducer::produceRaw_ |
|
private |
std::string MatacqProducer::rawInstanceName_ |
|
private |
Instance name to use for the produced Matacq raw data collection
Definition at line 216 of file MatacqProducer.h.
uint32_t MatacqProducer::runNumber_ |
|
private |
timeval MatacqProducer::startTime_ |
|
private |
std::ofstream MatacqProducer::timeLog_ |
|
private |
std::string MatacqProducer::timeLogFile_ |
|
private |
timeval MatacqProducer::timer_ |
|
private |
bool MatacqProducer::timing_ |
|
private |
int MatacqProducer::verbosity_ |
|
private |