#include <OMTFinput.h>
Public Types | |
typedef std::vector< int > | vector1D |
typedef std::vector< vector1D > | vector2D |
Public Member Functions | |
bool | addLayerHit (unsigned int iLayer, unsigned int iInput, int iPhi, int iEta, bool allowOverwrite=true) |
void | clear () |
Reset vectors with data. More... | |
const OMTFinput::vector1D & | getLayerData (unsigned int iLayer, bool giveEta=false) const |
std::bitset< 128 > | getRefHits (unsigned int iProcessor) const |
void | mergeData (const OMTFinput *aInput) |
OMTFinput (const OMTFConfiguration *) | |
OMTFinput & | operator+= (const OMTFinput &iInput) |
void | readData (XMLConfigReader *aReader, unsigned int iEvent=0, unsigned int iProcessor=0) |
Read data from a XML file. More... | |
void | shiftMyPhi (int phiShift) |
Apply shift to all data. More... | |
Private Attributes | |
vector2D | measurementsEta |
vector2D | measurementsPhi |
const OMTFConfiguration * | myOmtfConfig |
vector1D | refHitsEta |
RefHitsEta. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const OMTFinput &aInput) |
Definition at line 11 of file OMTFinput.h.
typedef std::vector<int> OMTFinput::vector1D |
Definition at line 15 of file OMTFinput.h.
typedef std::vector<vector1D> OMTFinput::vector2D |
Definition at line 16 of file OMTFinput.h.
OMTFinput::OMTFinput | ( | const OMTFConfiguration * | omtfConfig | ) |
bool OMTFinput::addLayerHit | ( | unsigned int | iLayer, |
unsigned int | iInput, | ||
int | iPhi, | ||
int | iEta, | ||
bool | allowOverwrite = true |
||
) |
Add hit to given layer. iInput marks input number (max 14 per layer)
Definition at line 46 of file OMTFinput.cc.
References measurementsEta, measurementsPhi, myOmtfConfig, MuonTCMETValueMapProducer_cff::nLayers, and OMTFConfiguration::nPhiBins().
Referenced by mergeData(), OMTFinputMaker::processCSC(), OMTFinputMaker::processDT(), and OMTFinputMaker::processRPC().
void OMTFinput::clear | ( | void | ) |
Reset vectors with data.
Definition at line 95 of file OMTFinput.cc.
References measurementsEta, measurementsPhi, myOmtfConfig, OMTFConfiguration::nLayers(), OMTFConfiguration::nPhiBins(), and refHitsEta.
Referenced by OMTFinput().
const OMTFinput::vector1D & OMTFinput::getLayerData | ( | unsigned int | iLayer, |
bool | giveEta = false |
||
) | const |
Definition at line 19 of file OMTFinput.cc.
References measurementsEta, and measurementsPhi.
Referenced by OMTFProcessor::fillCounts(), OMTFConfigMaker::fillInputRange(), OMTFConfigMaker::fillPhiMaps(), getRefHits(), OMTFConfigMaker::makeConnetionsMap(), mergeData(), OMTFProcessor::processInput(), and XMLConfigWriter::writeEventData().
std::bitset< 128 > OMTFinput::getRefHits | ( | unsigned int | iProcessor | ) | const |
Definition at line 27 of file OMTFinput.cc.
References getLayerData(), OMTFConfiguration::getRefHitsDefs(), OMTFConfiguration::getRefToLogicNumber(), myOmtfConfig, OMTFConfiguration::nPhiBins(), and refHitsEta.
Referenced by OMTFProcessor::fillCounts(), and OMTFProcessor::processInput().
void OMTFinput::mergeData | ( | const OMTFinput * | aInput | ) |
Merge data of two input objects. Method used in DiMuon studies.
Definition at line 80 of file OMTFinput.cc.
References addLayerHit(), getLayerData(), myOmtfConfig, and OMTFConfiguration::nLayers().
Referenced by operator+=().
void OMTFinput::readData | ( | XMLConfigReader * | aReader, |
unsigned int | iEvent = 0 , |
||
unsigned int | iProcessor = 0 |
||
) |
Read data from a XML file.
Definition at line 70 of file OMTFinput.cc.
References measurementsEta, measurementsPhi, and XMLConfigReader::readEvent().
void OMTFinput::shiftMyPhi | ( | int | phiShift | ) |
Apply shift to all data.
Definition at line 105 of file OMTFinput.cc.
References OMTFConfiguration::getBendingLayers(), createfilelist::int, measurementsPhi, myOmtfConfig, OMTFConfiguration::nPhiBins(), OMTFConfiguration::nPhiBits(), and funct::pow().
|
friend |
Definition at line 126 of file OMTFinput.cc.
|
private |
Eta measurements in logic layers First index: layer number Second index: measurement number within layer
Definition at line 59 of file OMTFinput.h.
Referenced by addLayerHit(), clear(), getLayerData(), and readData().
|
private |
Phi measurements in logic layers First index: layer number Second index: measurement number within layer
Definition at line 54 of file OMTFinput.h.
Referenced by addLayerHit(), clear(), getLayerData(), operator<<(), readData(), and shiftMyPhi().
|
private |
Definition at line 64 of file OMTFinput.h.
Referenced by addLayerHit(), clear(), getRefHits(), mergeData(), OMTFinput(), and shiftMyPhi().
|
mutableprivate |