53 for(
unsigned int iLogicLayer=0;iLogicLayer<
results.size();++iLogicLayer){
55 for(
unsigned int iRefLayer=0;iRefLayer<
results[iLogicLayer].size();++iRefLayer){
57 unsigned int val =
results[connectedLayer][iRefLayer]>0 ?
results[iLogicLayer][iRefLayer]: 0;
65 hits1D[iRefLayer]+=(val>0);
75 unsigned int nHits = 0;
85 for(
unsigned int iLogicLayer=0;iLogicLayer<aResult.
results.size();++iLogicLayer){
86 out<<
"Logic layer: "<<iLogicLayer<<
" results: ";
87 for(
unsigned int iRefLayer=0;iRefLayer<aResult.
results[iLogicLayer].size();++iRefLayer){
88 out<<aResult.
results[iLogicLayer][iRefLayer]<<
"\t";
93 out<<
" Sum over layers: ";
94 for(
unsigned int iRefLayer=0;iRefLayer<aResult.
results1D.size();++iRefLayer){
100 out<<
" Number of hits: ";
101 for(
unsigned int iRefLayer=0;iRefLayer<aResult.
hits1D.size();++iRefLayer){
102 out<<aResult.
hits1D[iRefLayer]<<
"\t";
const std::set< int > & getBendingLayers() const
unsigned int nRefLayers() const
unsigned int fwVersion() const
const OMTFConfiguration * myOmtfConfig
unsigned int nLayers() const
vector1D results1D
Sum of pdf weights for each reference layer.
vector1D refPhiRHit1D
Reference phi for each reference layer - the input value.
void configure(const OMTFConfiguration *omtfConfig)
const std::map< int, int > & getLogicToLogic() const
void setRefPhiRHits(unsigned int iRefLayer, int iRefPhiRHit)
vector1D refPhi1D
Reference phi for each reference layer.
vector1D hits1D
Number of hits for each reference layer.
void addResult(unsigned int iRefLayer, unsigned int iLayer, unsigned int val, int iRefPhi, int iRefEta)
friend std::ostream & operator<<(std::ostream &out, const OMTFResult &aResult)
vector1D refEta1D
Reference phi for each reference layer.
Power< A, B >::type pow(const A &a, const B &b)
vector1D hitsBits
Words representing nimber of hit layers for each reference layer.