#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 int | getHitEta (unsigned int iLayer, unsigned int iInput) const |
const OMTFinput::vector1D & | getLayerData (unsigned int iLayer, bool giveEta=false) const |
const MuonStubPtr | getMuonStub (unsigned int iLayer, unsigned int iInput) const |
int | getPhiHw (unsigned int iLayer, unsigned int iInput) const override |
std::bitset< 128 > | getRefHits (unsigned int iProcessor) const |
std::bitset< 128 > | getRefHits (unsigned int iProcessor) const |
void | mergeData (const OMTFinput *aInput) |
void | mergeData (const OMTFinput *aInput) |
OMTFinput (const OMTFConfiguration *) | |
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 | 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... | |
void | shiftMyPhi (int phiShift) |
Apply shift to all data. More... | |
~OMTFinput () override | |
Public Member Functions inherited from MuonStubsInput | |
virtual void | addStub (unsigned int iLayer, const MuonStubPtr &stub) |
virtual MuonStubPtrs2D & | getMuonStubs () |
virtual const MuonStubPtrs2D & | getMuonStubs () const |
MuonStubsInput (const ProcConfigurationBase *config) | |
virtual | ~MuonStubsInput () |
Private Attributes | |
vector2D | measurementsEta |
vector2D | measurementsPhi |
const OMTFConfiguration * | myOmtfConfig = nullptr |
vector1D | refHitsEta |
RefHitsEta. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const OMTFinput &aInput) |
std::ostream & | operator<< (std::ostream &out, const OMTFinput &aInput) |
Additional Inherited Members | |
Protected Attributes inherited from MuonStubsInput | |
const ProcConfigurationBase * | config = nullptr |
MuonStubPtrs2D | muonStubsInLayers |
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 | ) |
OMTFinput::OMTFinput | ( | const OMTFConfiguration * | ) |
|
inlineoverride |
Definition at line 18 of file OMTFinput.h.
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(), l1tTowerCalibrationProducer_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 int OMTFinput::getHitEta | ( | unsigned int | iLayer, |
unsigned int | iInput | ||
) | const |
Definition at line 34 of file OMTFinput.cc.
References getMuonStub(), OMTFConfiguration::isBendingLayer(), myOmtfConfig, and OMTFConfiguration::nPhiBins().
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< GoldenPatternType >::fillCounts(), OMTFConfigMaker::fillInputRange(), OMTFConfigMaker::fillPhiMaps(), getRefHits(), OMTFConfigMaker::makeConnetionsMap(), mergeData(), OMTFProcessor< GoldenPatternType >::processInput(), and XMLConfigWriter::writeEventData().
|
inline |
Definition at line 30 of file OMTFinput.h.
References MuonStubsInput::muonStubsInLayers.
Referenced by getHitEta(), getPhiHw(), and OMTFProcessor< GoldenPatternType >::processInput().
|
overridevirtual |
Reimplemented from MuonStubsInput.
Definition at line 18 of file OMTFinput.cc.
References getMuonStub(), OMTFConfiguration::isBendingLayer(), myOmtfConfig, and OMTFConfiguration::nPhiBins().
Referenced by operator<<().
std::bitset< 128 > OMTFinput::getRefHits | ( | unsigned int | iProcessor | ) | const |
Definition at line 26 of file OMTFinput.cc.
References getLayerData(), OMTFConfiguration::getRefHitsDefs(), OMTFConfiguration::getRefToLogicNumber(), l1tTowerCalibrationProducer_cfi::iEta, caHitNtupletGeneratorKernels::if(), myOmtfConfig, OMTFConfiguration::nPhiBins(), and refHitsEta.
Referenced by OMTFProcessor< GoldenPatternType >::fillCounts(), and OMTFProcessor< GoldenPatternType >::processInput().
std::bitset<128> OMTFinput::getRefHits | ( | unsigned int | iProcessor | ) | const |
void OMTFinput::mergeData | ( | const OMTFinput * | aInput | ) |
Merge data of two input objects. Method used in DiMuon studies.
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+=().
void OMTFinput::readData | ( | XMLConfigReader * | aReader, |
unsigned int | iEvent = 0 , |
||
unsigned int | iProcessor = 0 |
||
) |
Read data from a XML file.
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.
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.
|
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(), getHitEta(), getPhiHw(), getRefHits(), mergeData(), OMTFinput(), and shiftMyPhi().
|
mutableprivate |