CMS 3D CMS Logo

SymmetricLayerFinder.h
Go to the documentation of this file.
1 #ifndef TkNavigation_SymmetricLayerFinder_H
2 #define TkNavigation_SymmetricLayerFinder_H
4 
5 #include <vector>
6 #include <map>
7 
8 class DetLayer;
9 class BarrelDetLayer;
10 class ForwardDetLayer;
11 
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  SymmetricLayerFinder(const FDLC&);
25 
26  const ForwardDetLayer* mirror(const ForwardDetLayer* layer) { return theForwardMap[layer]; }
27 
28  FDLC mirror(const FDLC& input);
29 
30 private:
31  // typedef map< const ForwardDetLayer*, const ForwardDetLayer*, less<const ForwardDetLayer*> >
32  typedef std::map<const ForwardDetLayer*, const ForwardDetLayer*, std::less<const ForwardDetLayer*> > ForwardMapType;
33 
35 
36  const ForwardDetLayer* mirrorPartner(const ForwardDetLayer* layer, const FDLC& rightLayers);
37 };
38 #endif // SymmetricLayerFinder_H
SymmetricLayerFinder::ConstFDLI
FDLC::const_iterator ConstFDLI
Definition: SymmetricLayerFinder.h:20
Visibility.h
input
static const std::string input
Definition: EdmProvDump.cc:48
DetLayer
Definition: DetLayer.h:21
SymmetricLayerFinder::FDLC
std::vector< const ForwardDetLayer * > FDLC
Definition: SymmetricLayerFinder.h:18
SymmetricLayerFinder
Definition: SymmetricLayerFinder.h:17
SymmetricLayerFinder::ForwardMapType
std::map< const ForwardDetLayer *, const ForwardDetLayer *, std::less< const ForwardDetLayer * > > ForwardMapType
Definition: SymmetricLayerFinder.h:32
dso_hidden
#define dso_hidden
Definition: Visibility.h:12
SymmetricLayerFinder::mirror
const ForwardDetLayer * mirror(const ForwardDetLayer *layer)
Definition: SymmetricLayerFinder.h:26
EmbeddingLHEProducer_cfi.mirror
mirror
Definition: EmbeddingLHEProducer_cfi.py:9
SymmetricLayerFinder::FDLI
FDLC::iterator FDLI
Definition: SymmetricLayerFinder.h:19
SymmetricLayerFinder::PairType
std::pair< const ForwardDetLayer *, const ForwardDetLayer * > PairType
Definition: SymmetricLayerFinder.h:21
BarrelDetLayer
Definition: BarrelDetLayer.h:22
SymmetricLayerFinder::theForwardMap
ForwardMapType theForwardMap
Definition: SymmetricLayerFinder.h:34
ForwardDetLayer
Definition: ForwardDetLayer.h:22