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<ForwardDetLayer*> FDLC;
19  typedef FDLC::iterator FDLI;
20  typedef FDLC::const_iterator ConstFDLI;
21  typedef std::pair< ForwardDetLayer*, ForwardDetLayer*> PairType;
22 
23 public:
24 
25  SymmetricLayerFinder( const FDLC&);
26 
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*, ForwardDetLayer*, std::less<const ForwardDetLayer*> >
38 
40 
42  const FDLC& rightLayers);
43 
44 
45 };
46 #endif // SymmetricLayerFinder_H
47 
SymmetricLayerFinder(const FDLC &)
ForwardDetLayer * mirrorPartner(const ForwardDetLayer *layer, const FDLC &rightLayers)
std::vector< ForwardDetLayer * > FDLC
std::pair< ForwardDetLayer *, ForwardDetLayer * > PairType
std::map< const ForwardDetLayer *, ForwardDetLayer *, std::less< const ForwardDetLayer * > > ForwardMapType
ForwardMapType theForwardMap
ForwardDetLayer * mirror(const ForwardDetLayer *layer)
FDLC::const_iterator ConstFDLI