#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 (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 | |
std::vector< std::vector< int > > | maxRefPhi2D |
std::vector< std::vector< int > > | minRefPhi2D |
OMTFConfiguration * | myOmtfConfig |
Definition at line 17 of file OMTFConfigMaker.h.
OMTFConfigMaker::OMTFConfigMaker | ( | OMTFConfiguration * | omtf_config | ) |
Definition at line 13 of file OMTFConfigMaker.cc.
References maxRefPhi2D, minRefPhi2D, myOmtfConfig, OMTFConfiguration::nLogicRegions(), OMTFConfiguration::nPhiBins(), and OMTFConfiguration::nRefLayers().
OMTFConfigMaker::~OMTFConfigMaker | ( | ) |
Definition at line 23 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 26 of file OMTFConfigMaker.cc.
|
private |
Fill map of used inputs. FIXME: using hack from OMTFConfiguration
Definition at line 97 of file OMTFConfigMaker.cc.
References OMTFinput::getLayerData(), OMTFConfiguration::getMeasurements4D(), myOmtfConfig, OMTFConfiguration::nLayers(), and OMTFConfiguration::nPhiBins().
Referenced by makeConnetionsMap().
|
private |
Definition at line 110 of file OMTFConfigMaker.cc.
References OMTFConfiguration::getMeasurements4Dref(), and myOmtfConfig.
void OMTFConfigMaker::fillPhiMaps | ( | unsigned int | iProcessor, |
const OMTFinput & | aInput | ||
) |
Fill vector with minimal phi in each reference layer for given processor.
Definition at line 32 of file OMTFConfigMaker.cc.
References OMTFinput::getLayerData(), OMTFConfiguration::getRefToLogicNumber(), OMTFConfiguration::getRegionNumberFromMap(), maxRefPhi2D, minRefPhi2D, myOmtfConfig, OMTFConfiguration::nInputs(), OMTFConfiguration::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 73 of file OMTFConfigMaker.cc.
References fillInputRange(), fillPhiMaps(), OMTFinput::getLayerData(), OMTFConfiguration::getRefToLogicNumber(), OMTFConfiguration::getRegionNumberFromMap(), myOmtfConfig, OMTFConfiguration::nLogicRegions(), 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 120 of file OMTFConfigMaker.cc.
References OMTFConfiguration::getMeasurements4Dref(), myOmtfConfig, OMTFConfiguration::nInputs(), 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 50 of file OMTFConfigMaker.cc.
References maxRefPhi2D, minRefPhi2D, myOmtfConfig, OMTFConfiguration::nLogicRegions(), and OMTFConfiguration::nRefLayers().
Referenced by OMTFPatternMaker::endJob().
|
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().
|
private |
Definition at line 71 of file OMTFConfigMaker.h.
Referenced by fillInputRange(), fillPhiMaps(), makeConnetionsMap(), OMTFConfigMaker(), printConnections(), and printPhiMap().