test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SymmetricLayerFinder.h
Go to the documentation of this file.
1 #ifndef TkNavigation_SymmetricLayerFinder_H
2 #define TkNavigation_SymmetricLayerFinder_H
3 
4 #include <vector>
5 #include <map>
6 
7 class DetLayer;
8 class BarrelDetLayer;
9 class ForwardDetLayer;
10 
17 
18  typedef std::vector<const ForwardDetLayer*> FDLC;
19  typedef FDLC::iterator FDLI;
20  typedef FDLC::const_iterator ConstFDLI;
21  typedef std::pair< const ForwardDetLayer*, const ForwardDetLayer*> PairType;
22 
23 public:
24 
25  SymmetricLayerFinder( const FDLC&);
26 
27  const ForwardDetLayer* mirror( const ForwardDetLayer* layer) {
28  return theForwardMap[layer];
29  }
30 
31  FDLC mirror( const FDLC& input);
32 
33 private:
34 
35  // typedef map< const ForwardDetLayer*, const ForwardDetLayer*, less<const ForwardDetLayer*> >
36  typedef std::map< const ForwardDetLayer*, const ForwardDetLayer*, std::less<const ForwardDetLayer*> >
38 
40 
41  const ForwardDetLayer* mirrorPartner( const ForwardDetLayer* layer,
42  const FDLC& rightLayers);
43 
44 
45 };
46 #endif // SymmetricLayerFinder_H
47 
std::map< const ForwardDetLayer *, const ForwardDetLayer *, std::less< const ForwardDetLayer * > > ForwardMapType
SymmetricLayerFinder(const FDLC &)
std::pair< const ForwardDetLayer *, const ForwardDetLayer * > PairType
const ForwardDetLayer * mirror(const ForwardDetLayer *layer)
static std::string const input
Definition: EdmProvDump.cc:44
const ForwardDetLayer * mirrorPartner(const ForwardDetLayer *layer, const FDLC &rightLayers)
ForwardMapType theForwardMap
std::vector< const ForwardDetLayer * > FDLC
FDLC::const_iterator ConstFDLI