#include <OMTFConfigMaker.h>
Public Member Functions | |
void | fillCounts (unsigned int iProcessor, const OMTFinput &aInput) |
void | fillPhiMaps (unsigned int iProcessor, const OMTFinput &aInput) |
void | makeConnetionsMap (unsigned int iProcessor, const OMTFinput &aInput) |
OMTFConfigMaker (const edm::ParameterSet &cfg, OMTFConfiguration *omtf_config) | |
void | printConnections (std::ostream &out, unsigned int iProcessor, unsigned int iCone) |
void | printPhiMap (std::ostream &out) |
~OMTFConfigMaker () | |
Private Member Functions | |
void | fillInputRange (unsigned int iConfigMaker, unsigned int iCone, const OMTFinput &aInput) |
void | fillInputRange (unsigned int iConfigMaker, unsigned int iCone, unsigned int iRefLayer, unsigned int iInput) |
Private Attributes | |
OMTFConfiguration * | m_omtf_config |
std::vector< std::vector< int > > | maxRefPhi2D |
std::vector< std::vector< int > > | minRefPhi2D |
Definition at line 17 of file OMTFConfigMaker.h.
OMTFConfigMaker::OMTFConfigMaker | ( | const edm::ParameterSet & | cfg, |
OMTFConfiguration * | omtf_config | ||
) |
Definition at line 13 of file OMTFConfigMaker.cc.
References OMTFConfiguration::instance(), maxRefPhi2D, minRefPhi2D, OMTFConfiguration::nLogicRegions, ecaldqm::binning::nPhiBins, and OMTFConfiguration::nPhiBins.
OMTFConfigMaker::~OMTFConfigMaker | ( | ) |
Definition at line 24 of file OMTFConfigMaker.cc.
void OMTFConfigMaker::fillCounts | ( | unsigned int | iProcessor, |
const OMTFinput & | aInput | ||
) |
Fill counts in GoldenPattern pdf bins Normalised counts will make a pdf for given GP.
Definition at line 27 of file OMTFConfigMaker.cc.
|
private |
Fill map of used inputs. FIXME: using hack from OMTFConfiguration
Definition at line 98 of file OMTFConfigMaker.cc.
References OMTFinput::getLayerData(), OMTFConfiguration::instance(), m_omtf_config, OMTFConfiguration::measurements4D, OMTFConfiguration::nLayers, and OMTFConfiguration::nPhiBins.
Referenced by makeConnetionsMap().
|
private |
Definition at line 112 of file OMTFConfigMaker.cc.
References m_omtf_config, and OMTFConfiguration::measurements4Dref.
void OMTFConfigMaker::fillPhiMaps | ( | unsigned int | iProcessor, |
const OMTFinput & | aInput | ||
) |
Fill vector with minimal phi in each reference layer for given processor.
Definition at line 33 of file OMTFConfigMaker.cc.
References OMTFinput::getLayerData(), OMTFConfiguration::getRegionNumberFromMap(), OMTFConfiguration::instance(), maxRefPhi2D, minRefPhi2D, OMTFConfiguration::nInputs, ecaldqm::binning::nPhiBins, and OMTFConfiguration::nRefLayers.
Referenced by makeConnetionsMap().
void OMTFConfigMaker::makeConnetionsMap | ( | unsigned int | iProcessor, |
const OMTFinput & | aInput | ||
) |
Fill histograms used for making the connections maps
Always use two hits from a single chamber. As we use single muons, the second hit has to be added by hand.
Definition at line 74 of file OMTFConfigMaker.cc.
References fillInputRange(), fillPhiMaps(), OMTFinput::getLayerData(), OMTFConfiguration::getRegionNumberFromMap(), OMTFConfiguration::instance(), and OMTFConfiguration::nRefLayers.
Referenced by OMTFPatternMaker::analyze().
void OMTFConfigMaker::printConnections | ( | std::ostream & | out, |
unsigned int | iProcessor, | ||
unsigned int | iCone | ||
) |
Print connections map for given logic cone in given processro. Connection map shows counts on each input.
Definition at line 122 of file OMTFConfigMaker.cc.
References OMTFConfiguration::instance(), OMTFConfiguration::measurements4Dref, and OMTFConfiguration::nLayers.
Referenced by OMTFPatternMaker::endJob().
void OMTFConfigMaker::printPhiMap | ( | std::ostream & | out | ) |
Print starting iPhi for each reference layer in each processor
Definition at line 51 of file OMTFConfigMaker.cc.
References OMTFConfiguration::instance(), maxRefPhi2D, minRefPhi2D, OMTFConfiguration::nLogicRegions, and OMTFConfiguration::nRefLayers.
Referenced by OMTFPatternMaker::endJob().
|
private |
Definition at line 71 of file OMTFConfigMaker.h.
Referenced by fillInputRange().
|
private |
Definition at line 69 of file OMTFConfigMaker.h.
Referenced by fillPhiMaps(), OMTFConfigMaker(), and printPhiMap().
|
private |
Map of phi starting and ending points for each logic region. First index: reference layer number Second index: logic region number
Definition at line 68 of file OMTFConfigMaker.h.
Referenced by fillPhiMaps(), OMTFConfigMaker(), and printPhiMap().