#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 (OMTFinput *aInput) |
OMTFinput () | |
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(), measurementsEta, measurementsPhi, OMTFConfiguration::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, OMTFConfiguration::nLayers, OMTFConfiguration::nPhiBins, and refHitsEta.
Referenced by OMTFinputMaker::buildInputForProcessor(), and 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::nPhiBins, OMTFConfiguration::refHitsDefs, refHitsEta, and OMTFConfiguration::refToLogicNumber.
Referenced by OMTFProcessor::fillCounts(), and OMTFProcessor::processInput().
void OMTFinput::mergeData | ( | OMTFinput * | aInput | ) |
Merge data of two input objects. Method used in DiMuon studies.
Definition at line 75 of file OMTFinput.cc.
References addLayerHit(), getLayerData(), and OMTFConfiguration::nLayers.
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, KineDebug3::count(), measurementsPhi, OMTFConfiguration::nPhiBins, OMTFConfiguration::nPhiBits, and funct::pow().
Referenced by OMTFProcessor::shiftInput().
|
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 56 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 51 of file OMTFinput.h.
Referenced by addLayerHit(), clear(), getLayerData(), operator<<(), readData(), and shiftMyPhi().
|
mutableprivate |