CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
RecoIdealGeometry Class Reference

#include <RecoIdealGeometry.h>

Public Member Functions

const std::vector< DetId > & detIds () const
 
bool insert (DetId id, const std::vector< double > &trans, const std::vector< double > &rot, const std::vector< double > &pars)
 
bool insert (DetId id, const std::vector< double > &trans, const std::vector< double > &rot, const std::vector< double > &pars, const std::vector< std::string > &spars)
 
 RecoIdealGeometry ()
 
std::vector< double >
::const_iterator 
rotEnd (size_t ind) const
 
std::vector< double >
::const_iterator 
rotStart (size_t ind) const
 
std::vector< double >
::const_iterator 
shapeEnd (size_t ind) const
 
std::vector< double >
::const_iterator 
shapeStart (size_t ind) const
 
size_t size ()
 
std::vector< std::string >
::const_iterator 
strEnd (size_t ind) const
 
std::vector< std::string >
::const_iterator 
strStart (size_t ind) const
 
std::vector< double >
::const_iterator 
tranEnd (size_t ind) const
 
std::vector< double >
::const_iterator 
tranStart (size_t ind) const
 
 ~RecoIdealGeometry ()
 

Private Attributes

std::vector< DetIdpDetIds
 
std::vector< int > pNumShapeParms
 
std::vector< double > pPars
 
std::vector< int > pParsIndex
 
std::vector< int > sNumsParms
 
std::vector< int > sParsIndex
 
std::vector< std::string > strPars
 

Detailed Description

Definition at line 26 of file RecoIdealGeometry.h.

Constructor & Destructor Documentation

RecoIdealGeometry::RecoIdealGeometry ( )
inline

Definition at line 29 of file RecoIdealGeometry.h.

29 { }
RecoIdealGeometry::~RecoIdealGeometry ( )
inline

Definition at line 30 of file RecoIdealGeometry.h.

30 { }

Member Function Documentation

const std::vector<DetId>& RecoIdealGeometry::detIds ( ) const
inline

Definition at line 75 of file RecoIdealGeometry.h.

References pDetIds.

Referenced by RPCGeometryBuilderFromCondDB::build(), CSCGeometryBuilder::build(), and DTGeometryBuilderFromCondDB::build().

75  {
76  return pDetIds;
77  }
std::vector< DetId > pDetIds
bool RecoIdealGeometry::insert ( DetId  id,
const std::vector< double > &  trans,
const std::vector< double > &  rot,
const std::vector< double > &  pars 
)
inline

Definition at line 32 of file RecoIdealGeometry.h.

References filterCSVwithJSON::copy, pDetIds, pNumShapeParms, pPars, and pParsIndex.

Referenced by BeautifulSoup.PageElement::_invert(), CSCGeometryParsFromDD::build(), RPCGeometryParsFromDD::buildGeometry(), DTGeometryParsFromDD::insertChamber(), DTGeometryParsFromDD::insertLayer(), and DTGeometryParsFromDD::insertSuperLayer().

32  {
33  if ( trans.size() != 3 || rot.size() != 9 ) return false;
34  pDetIds.push_back(id);
35  pNumShapeParms.push_back(pars.size()); // number of shape specific parameters.
36  pParsIndex.push_back(pPars.size()); // start of this guys "blob"
37  pPars.reserve(pPars.size() + trans.size() + rot.size() + pars.size());
38  std::copy ( trans.begin(), trans.end(), std::back_inserter(pPars));
39  std::copy ( rot.begin(), rot.end(), std::back_inserter(pPars));
40  std::copy ( pars.begin(), pars.end(), std::back_inserter(pPars));
41  return true;
42  }
std::vector< int > pNumShapeParms
std::vector< DetId > pDetIds
std::vector< int > pParsIndex
std::vector< double > pPars
bool RecoIdealGeometry::insert ( DetId  id,
const std::vector< double > &  trans,
const std::vector< double > &  rot,
const std::vector< double > &  pars,
const std::vector< std::string > &  spars 
)
inline

Definition at line 44 of file RecoIdealGeometry.h.

References filterCSVwithJSON::copy, pDetIds, pNumShapeParms, pPars, pParsIndex, sNumsParms, sParsIndex, and strPars.

Referenced by BeautifulSoup.PageElement::_invert().

44  {
45  if ( trans.size() != 3 || rot.size() != 9 ) return false;
46  pDetIds.push_back(id);
47  pNumShapeParms.push_back(pars.size()); // number of shape specific parameters.
48  pParsIndex.push_back(pPars.size()); // start of this guys "blob"
49  pPars.reserve(pPars.size() + trans.size() + rot.size() + pars.size());
50  std::copy ( trans.begin(), trans.end(), std::back_inserter(pPars));
51  std::copy ( rot.begin(), rot.end(), std::back_inserter(pPars));
52  std::copy ( pars.begin(), pars.end(), std::back_inserter(pPars));
53 
54  sNumsParms.push_back(spars.size());
55  sParsIndex.push_back(strPars.size());
56  strPars.reserve(strPars.size()+spars.size());
57  std::copy ( spars.begin(), spars.end(), std::back_inserter(strPars));
58  return true;
59  }
std::vector< int > pNumShapeParms
std::vector< DetId > pDetIds
std::vector< int > pParsIndex
std::vector< int > sNumsParms
std::vector< double > pPars
std::vector< std::string > strPars
std::vector< int > sParsIndex
std::vector<double>::const_iterator RecoIdealGeometry::rotEnd ( size_t  ind) const
inline

Definition at line 91 of file RecoIdealGeometry.h.

References pPars, and pParsIndex.

Referenced by CSCGeometryBuilder::build().

91  {
92  return pPars.begin() + pParsIndex[ind] + 3 + 9;
93  }
std::vector< int > pParsIndex
std::vector< double > pPars
std::vector<double>::const_iterator RecoIdealGeometry::rotStart ( size_t  ind) const
inline
std::vector<double>::const_iterator RecoIdealGeometry::shapeEnd ( size_t  ind) const
inline

Definition at line 99 of file RecoIdealGeometry.h.

References pNumShapeParms, pPars, and pParsIndex.

Referenced by RPCGeometryBuilderFromCondDB::build(), and CSCGeometryBuilder::build().

99  {
100  return pPars.begin() + pParsIndex[ind] + 3 + 9 + pNumShapeParms[ind];
101  }
std::vector< int > pNumShapeParms
std::vector< int > pParsIndex
std::vector< double > pPars
std::vector<double>::const_iterator RecoIdealGeometry::shapeStart ( size_t  ind) const
inline
size_t RecoIdealGeometry::size ( void  )
inline

Definition at line 61 of file RecoIdealGeometry.h.

References pDetIds, pNumShapeParms, and pParsIndex.

61  {
62  assert ( (pDetIds.size() == pNumShapeParms.size()) && (pNumShapeParms.size() == pParsIndex.size()) );
63  return pDetIds.size();
64  }
std::vector< int > pNumShapeParms
std::vector< DetId > pDetIds
std::vector< int > pParsIndex
std::vector<std::string>::const_iterator RecoIdealGeometry::strEnd ( size_t  ind) const
inline

Definition at line 107 of file RecoIdealGeometry.h.

References sNumsParms, sParsIndex, and strPars.

107  {
108  return strPars.begin() + sParsIndex[ind] + sNumsParms[ind];
109  }
std::vector< int > sNumsParms
std::vector< std::string > strPars
std::vector< int > sParsIndex
std::vector<std::string>::const_iterator RecoIdealGeometry::strStart ( size_t  ind) const
inline

Definition at line 103 of file RecoIdealGeometry.h.

References sParsIndex, and strPars.

Referenced by RPCGeometryBuilderFromCondDB::build().

103  {
104  return strPars.begin() + sParsIndex[ind];
105  }
std::vector< std::string > strPars
std::vector< int > sParsIndex
std::vector<double>::const_iterator RecoIdealGeometry::tranEnd ( size_t  ind) const
inline

Definition at line 83 of file RecoIdealGeometry.h.

References pPars, and pParsIndex.

Referenced by CSCGeometryBuilder::build().

83  {
84  return pPars.begin() + pParsIndex[ind] + 3;
85  }
std::vector< int > pParsIndex
std::vector< double > pPars
std::vector<double>::const_iterator RecoIdealGeometry::tranStart ( size_t  ind) const
inline

Member Data Documentation

std::vector<DetId> RecoIdealGeometry::pDetIds
private

Definition at line 114 of file RecoIdealGeometry.h.

Referenced by detIds(), insert(), and size().

std::vector<int> RecoIdealGeometry::pNumShapeParms
private

Definition at line 120 of file RecoIdealGeometry.h.

Referenced by insert(), shapeEnd(), and size().

std::vector<double> RecoIdealGeometry::pPars
private

Definition at line 116 of file RecoIdealGeometry.h.

Referenced by insert(), rotEnd(), rotStart(), shapeEnd(), shapeStart(), tranEnd(), and tranStart().

std::vector<int> RecoIdealGeometry::pParsIndex
private

Definition at line 119 of file RecoIdealGeometry.h.

Referenced by insert(), rotEnd(), rotStart(), shapeEnd(), shapeStart(), size(), tranEnd(), and tranStart().

std::vector<int> RecoIdealGeometry::sNumsParms
private

Definition at line 124 of file RecoIdealGeometry.h.

Referenced by insert(), and strEnd().

std::vector<int> RecoIdealGeometry::sParsIndex
private

Definition at line 123 of file RecoIdealGeometry.h.

Referenced by insert(), strEnd(), and strStart().

std::vector<std::string> RecoIdealGeometry::strPars
private

Definition at line 122 of file RecoIdealGeometry.h.

Referenced by insert(), strEnd(), and strStart().