CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 120 of file CACut.h.

Member Function Documentation

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

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

Definition at line 133 of file CACut.h.

Referenced by at().

double CACut::CAValuesByInnerLayerIds::defaultCut_
private

Definition at line 136 of file CACut.h.

Referenced by at().

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

Definition at line 132 of file CACut.h.

Referenced by at().

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

Definition at line 131 of file CACut.h.