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 Member Functions | Private Attributes | Friends
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 Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

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
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 28 of file RecoIdealGeometry.h.

Constructor & Destructor Documentation

RecoIdealGeometry::RecoIdealGeometry ( )
inline

Definition at line 31 of file RecoIdealGeometry.h.

31 { }
RecoIdealGeometry::~RecoIdealGeometry ( )
inline

Definition at line 32 of file RecoIdealGeometry.h.

32 { }

Member Function Documentation

const std::vector<DetId>& RecoIdealGeometry::detIds ( ) const
inline
bool RecoIdealGeometry::insert ( DetId  id,
const std::vector< double > &  trans,
const std::vector< double > &  rot,
const std::vector< double > &  pars 
)
inline

Definition at line 34 of file RecoIdealGeometry.h.

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

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

34  {
35  if ( trans.size() != 3 || rot.size() != 9 ) return false;
36  pDetIds.push_back(id);
37  pNumShapeParms.push_back(pars.size()); // number of shape specific parameters.
38  pParsIndex.push_back(pPars.size()); // start of this guys "blob"
39  pPars.reserve(pPars.size() + trans.size() + rot.size() + pars.size());
40  std::copy ( trans.begin(), trans.end(), std::back_inserter(pPars));
41  std::copy ( rot.begin(), rot.end(), std::back_inserter(pPars));
42  std::copy ( pars.begin(), pars.end(), std::back_inserter(pPars));
43  return true;
44  }
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 46 of file RecoIdealGeometry.h.

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

Referenced by BeautifulSoup.PageElement::_invert().

46  {
47  if ( trans.size() != 3 || rot.size() != 9 ) return false;
48  pDetIds.push_back(id);
49  pNumShapeParms.push_back(pars.size()); // number of shape specific parameters.
50  pParsIndex.push_back(pPars.size()); // start of this guys "blob"
51  pPars.reserve(pPars.size() + trans.size() + rot.size() + pars.size());
52  std::copy ( trans.begin(), trans.end(), std::back_inserter(pPars));
53  std::copy ( rot.begin(), rot.end(), std::back_inserter(pPars));
54  std::copy ( pars.begin(), pars.end(), std::back_inserter(pPars));
55 
56  sNumsParms.push_back(spars.size());
57  sParsIndex.push_back(strPars.size());
58  strPars.reserve(strPars.size()+spars.size());
59  std::copy ( spars.begin(), spars.end(), std::back_inserter(strPars));
60  return true;
61  }
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 93 of file RecoIdealGeometry.h.

References pPars, and pParsIndex.

Referenced by CSCGeometryBuilder::build().

93  {
94  return pPars.begin() + pParsIndex[ind] + 3 + 9;
95  }
std::vector< int > pParsIndex
std::vector< double > pPars
std::vector<double>::const_iterator RecoIdealGeometry::rotStart ( size_t  ind) const
inline
template<class Archive >
void RecoIdealGeometry::serialize ( Archive &  ar,
const unsigned int  version 
)
private
std::vector<double>::const_iterator RecoIdealGeometry::shapeEnd ( size_t  ind) const
inline

Definition at line 101 of file RecoIdealGeometry.h.

References pNumShapeParms, pPars, and pParsIndex.

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

101  {
102  return pPars.begin() + pParsIndex[ind] + 3 + 9 + pNumShapeParms[ind];
103  }
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 63 of file RecoIdealGeometry.h.

References assert(), pDetIds, pNumShapeParms, and pParsIndex.

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

Definition at line 109 of file RecoIdealGeometry.h.

References sNumsParms, sParsIndex, and strPars.

109  {
110  return strPars.begin() + sParsIndex[ind] + sNumsParms[ind];
111  }
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 105 of file RecoIdealGeometry.h.

References sParsIndex, and strPars.

Referenced by GEMGeometryBuilderFromCondDB::build(), RPCGeometryBuilderFromCondDB::build(), and ME0GeometryBuilderFromCondDB::build().

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

Definition at line 85 of file RecoIdealGeometry.h.

References pPars, and pParsIndex.

Referenced by CSCGeometryBuilder::build().

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

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 128 of file RecoIdealGeometry.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 128 of file RecoIdealGeometry.h.

Member Data Documentation

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

Definition at line 116 of file RecoIdealGeometry.h.

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

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

Definition at line 122 of file RecoIdealGeometry.h.

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

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

Definition at line 118 of file RecoIdealGeometry.h.

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

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

Definition at line 121 of file RecoIdealGeometry.h.

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

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

Definition at line 126 of file RecoIdealGeometry.h.

Referenced by insert(), and strEnd().

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

Definition at line 125 of file RecoIdealGeometry.h.

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

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

Definition at line 124 of file RecoIdealGeometry.h.

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