CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
CACut::CAValuesByInnerLayerIds Struct Reference

#include <CACut.h>

Public Member Functions

float at (int layerId) const
 
 CAValuesByInnerLayerIds (float cut)
 

Public Attributes

std::vector< float > cutValues_
 
std::vector< int > innerLayerIds_
 
std::vector< int > outerDoubletIds_
 

Private Attributes

double defaultCut_
 

Detailed Description

Definition at line 119 of file CACut.h.

Constructor & Destructor Documentation

◆ CAValuesByInnerLayerIds()

CACut::CAValuesByInnerLayerIds::CAValuesByInnerLayerIds ( float  cut)
inlineexplicit

Definition at line 120 of file CACut.h.

Member Function Documentation

◆ at()

float CACut::CAValuesByInnerLayerIds::at ( int  layerId) const
inline

Definition at line 122 of file CACut.h.

References cutValues_, defaultCut_, and innerLayerIds_.

Referenced by CACell::checkAlignmentAndAct().

122  {
123  for (size_t thisLayer = 0; thisLayer < innerLayerIds_.size(); thisLayer++) {
124  if (innerLayerIds_.at(thisLayer) == layerId)
125  return cutValues_.at(thisLayer);
126  }
127 
128  return defaultCut_;
129  }
std::vector< float > cutValues_
Definition: CACut.h:133
std::vector< int > innerLayerIds_
Definition: CACut.h:132

Member Data Documentation

◆ cutValues_

std::vector<float> CACut::CAValuesByInnerLayerIds::cutValues_

Definition at line 133 of file CACut.h.

Referenced by at().

◆ defaultCut_

double CACut::CAValuesByInnerLayerIds::defaultCut_
private

Definition at line 136 of file CACut.h.

Referenced by at().

◆ innerLayerIds_

std::vector<int> CACut::CAValuesByInnerLayerIds::innerLayerIds_

Definition at line 132 of file CACut.h.

Referenced by at().

◆ outerDoubletIds_

std::vector<int> CACut::CAValuesByInnerLayerIds::outerDoubletIds_

Definition at line 131 of file CACut.h.