CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
BTLNavigableLayer Class Reference

#include <BTLNavigableLayer.h>

Inheritance diagram for BTLNavigableLayer:
MTDNavigableLayer NavigableLayer

Public Member Functions

 BTLNavigableLayer (BarrelDetLayer *bdl, const MapB &outerBarrel, const MapB &innerBarrel, const MapE &outerBackward, const MapE &outerForward, const MapE &innerBackward, const MapE &innerForward)
 Constructor. More...
 
 BTLNavigableLayer (BarrelDetLayer *bdl, const MapB &outerBarrel, const MapB &innerBarrel, const MapE &outerBackward, const MapE &outerForward, const MapE &innerBackward, const MapE &innerForward, const MapB &allOuterBarrel, const MapB &allInnerBarrel, const MapE &allOuterBackward, const MapE &allOuterForward, const MapE &allInnerBackward, const MapE &allInnerForward)
 
 BTLNavigableLayer (BarrelDetLayer *bdl, const MapB &outerBarrel, const MapE &outerBackward, const MapE &outerForward)
 Constructor with outer layers only. More...
 
 BTLNavigableLayer (const BarrelDetLayer *bdl, const MapB &outerBarrel, const MapE &outerBackward, const MapE &outerForward, const MapB &allOuterBarrel, const MapE &allOuterBackward, const MapE &allOuterForward)
 
std::vector< const DetLayer * > compatibleLayers (const FreeTrajectoryState &fts, PropagationDirection dir) const override
 NavigableLayer interface. More...
 
std::vector< const DetLayer * > compatibleLayers (NavigationDirection dir) const override
 
const DetLayerdetLayer () const override
 return DetLayer More...
 
MapE getAllInnerBackwardLayers () const
 
MapB getAllInnerBarrelLayers () const
 
MapE getAllInnerForwardLayers () const
 
MapE getAllOuterBackwardLayers () const
 
MapB getAllOuterBarrelLayers () const
 
MapE getAllOuterForwardLayers () const
 
MapE getInnerBackwardLayers () const
 
MapB getInnerBarrelLayers () const
 
MapE getInnerForwardLayers () const
 
MapE getOuterBackwardLayers () const
 
MapB getOuterBarrelLayers () const
 
MapE getOuterForwardLayers () const
 
std::vector< const DetLayer * > nextLayers (const FreeTrajectoryState &fts, PropagationDirection dir) const override
 NavigableLayer interface. More...
 
std::vector< const DetLayer * > nextLayers (NavigationDirection dir) const override
 NavigableLayer interface. More...
 
void setDetLayer (const DetLayer *) override
 set DetLayer More...
 
void setInwardCompatibleLinks (const MapB &)
 
void setInwardLinks (const MapB &)
 set inward links More...
 
- Public Member Functions inherited from MTDNavigableLayer
bool isInsideOut (const FreeTrajectoryState &fts) const
 
MTDEtaRange trackingRange (const FreeTrajectoryState &fts) const
 
- Public Member Functions inherited from NavigableLayer
virtual std::vector< const DetLayer * > compatibleLayers (const FreeTrajectoryState &fts, PropagationDirection timeDirection, int &counter) const
 
void setSchool (NavigationSchool const *sh)
 
virtual ~NavigableLayer ()
 

Private Member Functions

void pushCompatibleResult (std::vector< const DetLayer * > &result, const MapB &map, const FreeTrajectoryState &fts) const
 
void pushCompatibleResult (std::vector< const DetLayer * > &result, const MapE &map, const FreeTrajectoryState &fts) const
 
void pushResult (std::vector< const DetLayer * > &result, const MapB &map) const
 
void pushResult (std::vector< const DetLayer * > &result, const MapB &map, const FreeTrajectoryState &fts) const
 
void pushResult (std::vector< const DetLayer * > &result, const MapE &map) const
 
void pushResult (std::vector< const DetLayer * > &result, const MapE &map, const FreeTrajectoryState &fts) const
 

Private Attributes

MapE theAllInnerBackwardLayers
 
MapB theAllInnerBarrelLayers
 
MapE theAllInnerForwardLayers
 
MapE theAllOuterBackwardLayers
 
MapB theAllOuterBarrelLayers
 
MapE theAllOuterForwardLayers
 
const BarrelDetLayertheDetLayer
 
MapE theInnerBackwardLayers
 
MapB theInnerBarrelLayers
 
MapE theInnerForwardLayers
 
MapE theOuterBackwardLayers
 
MapB theOuterBarrelLayers
 
MapE theOuterForwardLayers
 

Additional Inherited Members

- Protected Attributes inherited from NavigableLayer
NavigationSchool const * school = nullptr
 

Detailed Description

Navigable layer for Barrel Timing Layer. Taken from MuonBarrelNavigableLayer.

Author
: L. Gray - FNAL

Navigable layer for Barrel Timing Layer Adapted from MuonBarrelNavigableLayer

Author
: L. Gray

Definition at line 29 of file BTLNavigableLayer.h.

Constructor & Destructor Documentation

◆ BTLNavigableLayer() [1/4]

BTLNavigableLayer::BTLNavigableLayer ( BarrelDetLayer bdl,
const MapB outerBarrel,
const MapB innerBarrel,
const MapE outerBackward,
const MapE outerForward,
const MapE innerBackward,
const MapE innerForward 
)
inline

Constructor.

Definition at line 32 of file BTLNavigableLayer.h.

39  : theDetLayer(bdl),
40  theOuterBarrelLayers(outerBarrel),
41  theInnerBarrelLayers(innerBarrel),
42  theOuterBackwardLayers(outerBackward),
43  theInnerBackwardLayers(innerBackward),
44  theOuterForwardLayers(outerForward),
45  theInnerForwardLayers(innerForward) {}

◆ BTLNavigableLayer() [2/4]

BTLNavigableLayer::BTLNavigableLayer ( BarrelDetLayer bdl,
const MapB outerBarrel,
const MapB innerBarrel,
const MapE outerBackward,
const MapE outerForward,
const MapE innerBackward,
const MapE innerForward,
const MapB allOuterBarrel,
const MapB allInnerBarrel,
const MapE allOuterBackward,
const MapE allOuterForward,
const MapE allInnerBackward,
const MapE allInnerForward 
)
inline

Definition at line 47 of file BTLNavigableLayer.h.

60  : theDetLayer(bdl),
61  theOuterBarrelLayers(outerBarrel),
62  theInnerBarrelLayers(innerBarrel),
63  theOuterBackwardLayers(outerBackward),
64  theInnerBackwardLayers(innerBackward),
65  theOuterForwardLayers(outerForward),
66  theInnerForwardLayers(innerForward),
67  theAllOuterBarrelLayers(allOuterBarrel),
68  theAllInnerBarrelLayers(allInnerBarrel),
69  theAllOuterBackwardLayers(allOuterBackward),
70  theAllInnerBackwardLayers(allInnerBackward),
71  theAllOuterForwardLayers(allOuterForward),
72  theAllInnerForwardLayers(allInnerForward) {}

◆ BTLNavigableLayer() [3/4]

BTLNavigableLayer::BTLNavigableLayer ( BarrelDetLayer bdl,
const MapB outerBarrel,
const MapE outerBackward,
const MapE outerForward 
)
inline

Constructor with outer layers only.

Definition at line 75 of file BTLNavigableLayer.h.

76  : theDetLayer(bdl),
77  theOuterBarrelLayers(outerBarrel),
78  theOuterBackwardLayers(outerBackward),
79  theOuterForwardLayers(outerForward) {}

◆ BTLNavigableLayer() [4/4]

BTLNavigableLayer::BTLNavigableLayer ( const BarrelDetLayer bdl,
const MapB outerBarrel,
const MapE outerBackward,
const MapE outerForward,
const MapB allOuterBarrel,
const MapE allOuterBackward,
const MapE allOuterForward 
)
inline

Definition at line 81 of file BTLNavigableLayer.h.

88  : theDetLayer(bdl),
89  theOuterBarrelLayers(outerBarrel),
90  theOuterBackwardLayers(outerBackward),
91  theOuterForwardLayers(outerForward),
92  theAllOuterBarrelLayers(allOuterBarrel),
93  theAllOuterBackwardLayers(allOuterBackward),
94  theAllOuterForwardLayers(allOuterForward) {}

Member Function Documentation

◆ compatibleLayers() [1/2]

std::vector< const DetLayer * > BTLNavigableLayer::compatibleLayers ( const FreeTrajectoryState fts,
PropagationDirection  dir 
) const
overridevirtual

◆ compatibleLayers() [2/2]

std::vector< const DetLayer * > BTLNavigableLayer::compatibleLayers ( NavigationDirection  dir) const
overridevirtual

Implements MTDNavigableLayer.

Definition at line 60 of file BTLNavigableLayer.cc.

60  {
61  std::vector<const DetLayer*> result;
62 
63  if (dir == insideOut) {
67  } else {
69  reverse(result.begin(), result.end());
72  }
73 
74  result.reserve(result.size());
75  return result;
76 }

References DeadROC_duringRun::dir, insideOut, mps_fire::result, and groupFilesInBlocks::reverse.

◆ detLayer()

const DetLayer * BTLNavigableLayer::detLayer ( ) const
overridevirtual

return DetLayer

Implements MTDNavigableLayer.

Definition at line 140 of file BTLNavigableLayer.cc.

140 { return theDetLayer; }

◆ getAllInnerBackwardLayers()

MapE BTLNavigableLayer::getAllInnerBackwardLayers ( ) const
inline

Definition at line 124 of file BTLNavigableLayer.h.

124 { return theAllInnerBackwardLayers; }

References theAllInnerBackwardLayers.

◆ getAllInnerBarrelLayers()

MapB BTLNavigableLayer::getAllInnerBarrelLayers ( ) const
inline

Definition at line 122 of file BTLNavigableLayer.h.

122 { return theAllInnerBarrelLayers; }

References theAllInnerBarrelLayers.

◆ getAllInnerForwardLayers()

MapE BTLNavigableLayer::getAllInnerForwardLayers ( ) const
inline

Definition at line 126 of file BTLNavigableLayer.h.

126 { return theAllInnerForwardLayers; }

References theAllInnerForwardLayers.

◆ getAllOuterBackwardLayers()

MapE BTLNavigableLayer::getAllOuterBackwardLayers ( ) const
inline

Definition at line 123 of file BTLNavigableLayer.h.

123 { return theAllOuterBackwardLayers; }

References theAllOuterBackwardLayers.

Referenced by MTDNavigationSchool::createInverseLinks().

◆ getAllOuterBarrelLayers()

MapB BTLNavigableLayer::getAllOuterBarrelLayers ( ) const
inline

Definition at line 121 of file BTLNavigableLayer.h.

121 { return theAllOuterBarrelLayers; }

References theAllOuterBarrelLayers.

Referenced by MTDNavigationSchool::createInverseLinks().

◆ getAllOuterForwardLayers()

MapE BTLNavigableLayer::getAllOuterForwardLayers ( ) const
inline

Definition at line 125 of file BTLNavigableLayer.h.

125 { return theAllOuterForwardLayers; }

References theAllOuterForwardLayers.

Referenced by MTDNavigationSchool::createInverseLinks().

◆ getInnerBackwardLayers()

MapE BTLNavigableLayer::getInnerBackwardLayers ( ) const
inline

Definition at line 117 of file BTLNavigableLayer.h.

117 { return theInnerBackwardLayers; }

References theInnerBackwardLayers.

◆ getInnerBarrelLayers()

MapB BTLNavigableLayer::getInnerBarrelLayers ( ) const
inline

Definition at line 115 of file BTLNavigableLayer.h.

115 { return theInnerBarrelLayers; }

References theInnerBarrelLayers.

◆ getInnerForwardLayers()

MapE BTLNavigableLayer::getInnerForwardLayers ( ) const
inline

Definition at line 119 of file BTLNavigableLayer.h.

119 { return theInnerForwardLayers; }

References theInnerForwardLayers.

◆ getOuterBackwardLayers()

MapE BTLNavigableLayer::getOuterBackwardLayers ( ) const
inline

Definition at line 116 of file BTLNavigableLayer.h.

116 { return theOuterBackwardLayers; }

References theOuterBackwardLayers.

Referenced by MTDNavigationSchool::createInverseLinks().

◆ getOuterBarrelLayers()

MapB BTLNavigableLayer::getOuterBarrelLayers ( ) const
inline

Definition at line 114 of file BTLNavigableLayer.h.

114 { return theOuterBarrelLayers; }

References theOuterBarrelLayers.

Referenced by MTDNavigationSchool::createInverseLinks().

◆ getOuterForwardLayers()

MapE BTLNavigableLayer::getOuterForwardLayers ( ) const
inline

Definition at line 118 of file BTLNavigableLayer.h.

118 { return theOuterForwardLayers; }

References theOuterForwardLayers.

Referenced by MTDNavigationSchool::createInverseLinks().

◆ nextLayers() [1/2]

std::vector< const DetLayer * > BTLNavigableLayer::nextLayers ( const FreeTrajectoryState fts,
PropagationDirection  dir 
) const
overridevirtual

NavigableLayer interface.

Implements MTDNavigableLayer.

Definition at line 42 of file BTLNavigableLayer.cc.

43  {
44  std::vector<const DetLayer*> result;
45 
46  if ((isInsideOut(fts) && dir == alongMomentum) || (!isInsideOut(fts) && dir == oppositeToMomentum)) {
50  } else {
52  reverse(result.begin(), result.end());
55  }
56  result.reserve(result.size());
57  return result;
58 }

References alongMomentum, DeadROC_duringRun::dir, oppositeToMomentum, mps_fire::result, and groupFilesInBlocks::reverse.

◆ nextLayers() [2/2]

std::vector< const DetLayer * > BTLNavigableLayer::nextLayers ( NavigationDirection  dir) const
overridevirtual

NavigableLayer interface.

Implements MTDNavigableLayer.

Definition at line 24 of file BTLNavigableLayer.cc.

24  {
25  std::vector<const DetLayer*> result;
26 
27  if (dir == insideOut) {
31  } else {
33  reverse(result.begin(), result.end());
36  }
37 
38  result.reserve(result.size());
39  return result;
40 }

References DeadROC_duringRun::dir, insideOut, mps_fire::result, and groupFilesInBlocks::reverse.

◆ pushCompatibleResult() [1/2]

void BTLNavigableLayer::pushCompatibleResult ( std::vector< const DetLayer * > &  result,
const MapB map,
const FreeTrajectoryState fts 
) const
private

Definition at line 122 of file BTLNavigableLayer.cc.

124  {
126  for (MapBI i = map.begin(); i != map.end(); i++)
127  if ((*i).second.isCompatible(range))
128  result.push_back((*i).first);
129 }

References mps_fire::i, genParticles_cff::map, FastTimerService_cff::range, and mps_fire::result.

◆ pushCompatibleResult() [2/2]

void BTLNavigableLayer::pushCompatibleResult ( std::vector< const DetLayer * > &  result,
const MapE map,
const FreeTrajectoryState fts 
) const
private

Definition at line 131 of file BTLNavigableLayer.cc.

133  {
135  for (MapEI i = map.begin(); i != map.end(); i++)
136  if ((*i).second.isCompatible(range))
137  result.push_back((*i).first);
138 }

References mps_fire::i, genParticles_cff::map, FastTimerService_cff::range, and mps_fire::result.

◆ pushResult() [1/4]

void BTLNavigableLayer::pushResult ( std::vector< const DetLayer * > &  result,
const MapB map 
) const
private

Definition at line 96 of file BTLNavigableLayer.cc.

96  {
97  for (MapBI i = map.begin(); i != map.end(); i++)
98  result.push_back((*i).first);
99 }

References mps_fire::i, genParticles_cff::map, and mps_fire::result.

◆ pushResult() [2/4]

void BTLNavigableLayer::pushResult ( std::vector< const DetLayer * > &  result,
const MapB map,
const FreeTrajectoryState fts 
) const
private

Definition at line 106 of file BTLNavigableLayer.cc.

108  {
109  for (MapBI i = map.begin(); i != map.end(); i++)
110  if ((*i).second.isInside(fts.position().eta()))
111  result.push_back((*i).first);
112 }

References PV3DBase< T, PVType, FrameType >::eta(), mps_fire::i, genParticles_cff::map, FreeTrajectoryState::position(), and mps_fire::result.

◆ pushResult() [3/4]

void BTLNavigableLayer::pushResult ( std::vector< const DetLayer * > &  result,
const MapE map 
) const
private

Definition at line 101 of file BTLNavigableLayer.cc.

101  {
102  for (MapEI i = map.begin(); i != map.end(); i++)
103  result.push_back((*i).first);
104 }

References mps_fire::i, genParticles_cff::map, and mps_fire::result.

◆ pushResult() [4/4]

void BTLNavigableLayer::pushResult ( std::vector< const DetLayer * > &  result,
const MapE map,
const FreeTrajectoryState fts 
) const
private

Definition at line 114 of file BTLNavigableLayer.cc.

116  {
117  for (MapEI i = map.begin(); i != map.end(); i++)
118  if ((*i).second.isInside(fts.position().eta()))
119  result.push_back((*i).first);
120 }

References PV3DBase< T, PVType, FrameType >::eta(), mps_fire::i, genParticles_cff::map, FreeTrajectoryState::position(), and mps_fire::result.

◆ setDetLayer()

void BTLNavigableLayer::setDetLayer ( const DetLayer dl)
overridevirtual

set DetLayer

Implements MTDNavigableLayer.

Definition at line 142 of file BTLNavigableLayer.cc.

142  {
143  edm::LogError("BTLNavigableLayer") << "BTLNavigableLayer::setDetLayer called!! " << endl;
144 }

◆ setInwardCompatibleLinks()

void BTLNavigableLayer::setInwardCompatibleLinks ( const MapB innerCBL)

Definition at line 147 of file BTLNavigableLayer.cc.

147 { theAllInnerBarrelLayers = innerCBL; }

Referenced by MTDNavigationSchool::createInverseLinks().

◆ setInwardLinks()

void BTLNavigableLayer::setInwardLinks ( const MapB innerBL)

set inward links

Definition at line 146 of file BTLNavigableLayer.cc.

146 { theInnerBarrelLayers = innerBL; }

Referenced by MTDNavigationSchool::createInverseLinks().

Member Data Documentation

◆ theAllInnerBackwardLayers

MapE BTLNavigableLayer::theAllInnerBackwardLayers
private

Definition at line 159 of file BTLNavigableLayer.h.

Referenced by getAllInnerBackwardLayers().

◆ theAllInnerBarrelLayers

MapB BTLNavigableLayer::theAllInnerBarrelLayers
private

Definition at line 157 of file BTLNavigableLayer.h.

Referenced by getAllInnerBarrelLayers().

◆ theAllInnerForwardLayers

MapE BTLNavigableLayer::theAllInnerForwardLayers
private

Definition at line 161 of file BTLNavigableLayer.h.

Referenced by getAllInnerForwardLayers().

◆ theAllOuterBackwardLayers

MapE BTLNavigableLayer::theAllOuterBackwardLayers
private

Definition at line 158 of file BTLNavigableLayer.h.

Referenced by getAllOuterBackwardLayers().

◆ theAllOuterBarrelLayers

MapB BTLNavigableLayer::theAllOuterBarrelLayers
private

Definition at line 156 of file BTLNavigableLayer.h.

Referenced by getAllOuterBarrelLayers().

◆ theAllOuterForwardLayers

MapE BTLNavigableLayer::theAllOuterForwardLayers
private

Definition at line 160 of file BTLNavigableLayer.h.

Referenced by getAllOuterForwardLayers().

◆ theDetLayer

const BarrelDetLayer* BTLNavigableLayer::theDetLayer
private

Definition at line 149 of file BTLNavigableLayer.h.

◆ theInnerBackwardLayers

MapE BTLNavigableLayer::theInnerBackwardLayers
private

Definition at line 153 of file BTLNavigableLayer.h.

Referenced by getInnerBackwardLayers().

◆ theInnerBarrelLayers

MapB BTLNavigableLayer::theInnerBarrelLayers
private

Definition at line 151 of file BTLNavigableLayer.h.

Referenced by getInnerBarrelLayers().

◆ theInnerForwardLayers

MapE BTLNavigableLayer::theInnerForwardLayers
private

Definition at line 155 of file BTLNavigableLayer.h.

Referenced by getInnerForwardLayers().

◆ theOuterBackwardLayers

MapE BTLNavigableLayer::theOuterBackwardLayers
private

Definition at line 152 of file BTLNavigableLayer.h.

Referenced by getOuterBackwardLayers().

◆ theOuterBarrelLayers

MapB BTLNavigableLayer::theOuterBarrelLayers
private

Definition at line 150 of file BTLNavigableLayer.h.

Referenced by getOuterBarrelLayers().

◆ theOuterForwardLayers

MapE BTLNavigableLayer::theOuterForwardLayers
private

Definition at line 154 of file BTLNavigableLayer.h.

Referenced by getOuterForwardLayers().

FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
mps_fire.i
i
Definition: mps_fire.py:355
BTLNavigableLayer::theAllOuterForwardLayers
MapE theAllOuterForwardLayers
Definition: BTLNavigableLayer.h:160
BTLNavigableLayer::theOuterForwardLayers
MapE theOuterForwardLayers
Definition: BTLNavigableLayer.h:154
MTDNavigableLayer::trackingRange
MTDEtaRange trackingRange(const FreeTrajectoryState &fts) const
Definition: MTDNavigableLayer.cc:36
oppositeToMomentum
Definition: PropagationDirection.h:4
MapBI
MapB::const_iterator MapBI
Definition: MTDDetLayerMap.h:38
BTLNavigableLayer::theAllOuterBarrelLayers
MapB theAllOuterBarrelLayers
Definition: BTLNavigableLayer.h:156
FreeTrajectoryState::position
GlobalPoint position() const
Definition: FreeTrajectoryState.h:67
BTLNavigableLayer::theDetLayer
const BarrelDetLayer * theDetLayer
Definition: BTLNavigableLayer.h:149
MTDEtaRange
Definition: MTDEtaRange.h:15
groupFilesInBlocks.reverse
reverse
Definition: groupFilesInBlocks.py:131
BTLNavigableLayer::theInnerBarrelLayers
MapB theInnerBarrelLayers
Definition: BTLNavigableLayer.h:151
MTDNavigableLayer::isInsideOut
bool isInsideOut(const FreeTrajectoryState &fts) const
Definition: MTDNavigableLayer.cc:76
BTLNavigableLayer::theInnerBackwardLayers
MapE theInnerBackwardLayers
Definition: BTLNavigableLayer.h:153
MapEI
MapE::const_iterator MapEI
Definition: MTDDetLayerMap.h:39
BTLNavigableLayer::theOuterBarrelLayers
MapB theOuterBarrelLayers
Definition: BTLNavigableLayer.h:150
BTLNavigableLayer::theAllInnerBarrelLayers
MapB theAllInnerBarrelLayers
Definition: BTLNavigableLayer.h:157
edm::LogError
Definition: MessageLogger.h:183
BTLNavigableLayer::theAllOuterBackwardLayers
MapE theAllOuterBackwardLayers
Definition: BTLNavigableLayer.h:158
BTLNavigableLayer::theInnerForwardLayers
MapE theInnerForwardLayers
Definition: BTLNavigableLayer.h:155
PV3DBase::eta
T eta() const
Definition: PV3DBase.h:73
BTLNavigableLayer::theAllInnerForwardLayers
MapE theAllInnerForwardLayers
Definition: BTLNavigableLayer.h:161
insideOut
Definition: NavigationDirection.h:4
BTLNavigableLayer::pushCompatibleResult
void pushCompatibleResult(std::vector< const DetLayer * > &result, const MapB &map, const FreeTrajectoryState &fts) const
Definition: BTLNavigableLayer.cc:122
mps_fire.result
result
Definition: mps_fire.py:303
genParticles_cff.map
map
Definition: genParticles_cff.py:11
alongMomentum
Definition: PropagationDirection.h:4
BTLNavigableLayer::theOuterBackwardLayers
MapE theOuterBackwardLayers
Definition: BTLNavigableLayer.h:152
BTLNavigableLayer::theAllInnerBackwardLayers
MapE theAllInnerBackwardLayers
Definition: BTLNavigableLayer.h:159
BTLNavigableLayer::pushResult
void pushResult(std::vector< const DetLayer * > &result, const MapB &map) const
Definition: BTLNavigableLayer.cc:96
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23