#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 13 of file OMTFinput.h.
typedef std::vector<vector1D> OMTFinput::vector2D |
Definition at line 14 of file OMTFinput.h.
OMTFinput::OMTFinput | ( | const OMTFConfiguration * | omtfConfig | ) |
Definition at line 11 of file OMTFinput.cc.
References clear(), and myOmtfConfig.
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 44 of file OMTFinput.cc.
References cms::cuda::assert(), L1TowerCalibrationProducer_cfi::iEta, measurementsEta, measurementsPhi, myOmtfConfig, MuonTCMETValueMapProducer_cff::nLayers, and OMTFConfiguration::nPhiBins().
Referenced by mergeData().
void OMTFinput::clear | ( | void | ) |
Reset vectors with data.
Definition at line 91 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 17 of file OMTFinput.cc.
References cms::cuda::assert(), 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 26 of file OMTFinput.cc.
References getLayerData(), OMTFConfiguration::getRefHitsDefs(), OMTFConfiguration::getRefToLogicNumber(), L1TowerCalibrationProducer_cfi::iEta, if(), 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 76 of file OMTFinput.cc.
References addLayerHit(), getLayerData(), myOmtfConfig, and OMTFConfiguration::nLayers().
Referenced by operator+=().
Definition at line 41 of file OMTFinput.h.
References mergeData().
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 iEvent, measurementsEta, measurementsPhi, and XMLConfigReader::readEvent().
void OMTFinput::shiftMyPhi | ( | int | phiShift | ) |
Apply shift to all data.
Definition at line 99 of file OMTFinput.cc.
References OMTFConfiguration::getBendingLayers(), createfilelist::int, measurementsPhi, myOmtfConfig, OMTFConfiguration::nPhiBins(), OMTFConfiguration::nPhiBits(), and funct::pow().
|
friend |
Definition at line 121 of file OMTFinput.cc.
|
private |
Eta measurements in logic layers First index: layer number Second index: measurement number within layer
Definition at line 55 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 50 of file OMTFinput.h.
Referenced by addLayerHit(), clear(), getLayerData(), operator<<(), readData(), and shiftMyPhi().
|
private |
Definition at line 60 of file OMTFinput.h.
Referenced by addLayerHit(), clear(), getRefHits(), mergeData(), OMTFinput(), and shiftMyPhi().
|
mutableprivate |