#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) |
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 () | |
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 |
vector1D | refHitsEta |
RefHitsEta. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const OMTFinput &aInput) |
Definition at line 10 of file OMTFinput.h.
typedef std::vector<int> OMTFinput::vector1D |
Definition at line 14 of file OMTFinput.h.
typedef std::vector<vector1D> OMTFinput::vector2D |
Definition at line 15 of file OMTFinput.h.
OMTFinput::OMTFinput | ( | ) |
bool OMTFinput::addLayerHit | ( | unsigned int | iLayer, |
unsigned int | iInput, | ||
int | iPhi, | ||
int | iEta | ||
) |
Add hit to given layer. iInput marks input number (max 14 per layer)
Definition at line 45 of file OMTFinput.cc.
References assert(), OMTFConfiguration::instance(), measurementsEta, measurementsPhi, and ecaldqm::binning::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 OMTFConfiguration::instance(), measurementsEta, measurementsPhi, ecaldqm::binning::nPhiBins, and refHitsEta.
Referenced by OMTFinput().
const OMTFinput::vector1D & OMTFinput::getLayerData | ( | unsigned int | iLayer, |
bool | giveEta = false |
||
) | const |
Definition at line 18 of file OMTFinput.cc.
References 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::instance(), ecaldqm::binning::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 75 of file OMTFinput.cc.
References addLayerHit(), getLayerData(), OMTFConfiguration::instance(), 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 65 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::bendingLayers, OMTFConfiguration::instance(), measurementsPhi, OMTFConfiguration::nPhiBins, and funct::pow().
|
friend |
Definition at line 127 of file OMTFinput.cc.
|
private |
Eta measurements in logic layers First index: layer number Second index: measurement number within layer
Definition at line 58 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 53 of file OMTFinput.h.
Referenced by addLayerHit(), clear(), getLayerData(), operator<<(), readData(), and shiftMyPhi().
|
mutableprivate |