Class to hold a set of MuonSegments belonging together.
More...
#include <MuonSegmentCombination.h>
Class to hold a set of MuonSegments belonging together.
The MuonSegments are stored per chamber, making it easier to keep track of possible ambiguities per station.
- Author
- niels.nosp@m..van.nosp@m..eldi.nosp@m.k@ce.nosp@m.rn.ch
Definition at line 30 of file MuonSegmentCombination.h.
◆ SegmentVec
◆ SegmentVecVec
◆ MuonSegmentCombination() [1/2]
| Muon::MuonSegmentCombination::MuonSegmentCombination |
( |
| ) |
|
◆ MuonSegmentCombination() [2/2]
Copy constructor.
Definition at line 20 of file MuonSegmentCombination.cxx.
21 {
23 }
void copy(const MuonSegmentCombination &segc)
copy data
◆ ~MuonSegmentCombination()
| Muon::MuonSegmentCombination::~MuonSegmentCombination |
( |
| ) |
|
◆ addSegments()
| bool Muon::MuonSegmentCombination::addSegments |
( |
std::unique_ptr< SegmentVec > | segs | ) |
|
|
inline |
Add a set of Segments for a give station.
For now no sorting but this could be changed so the segments are stored with increasing radius. Also no check is performed whether there are already segments for the given station. This is up to the user.
Definition at line 102 of file MuonSegmentCombination.h.
103 {
105 return true;
106 }
SegmentVecVec m_segmentsPerStation
◆ clear()
| void Muon::MuonSegmentCombination::clear |
( |
| ) |
|
|
private |
clear data
Definition at line 48 of file MuonSegmentCombination.cxx.
49 {
52
53 for( ;
it!=it_end; ++
it ){
54 SegmentVec::iterator vit = (*it)->begin();
55 SegmentVec::iterator vit_end = (*it)->end();
56 for( ; vit!=vit_end; ++vit ) (*vit).reset();
57 (*it)->clear();
58 (*it).reset();
59 }
61 }
◆ copy()
copy data
Definition at line 34 of file MuonSegmentCombination.cxx.
35 {
39 for(
unsigned int i=0;
i<nst;++
i ){
42 std::unique_ptr<SegmentVec> newsegs(
new SegmentVec());
43 for( ; vit!=vit_end; ++vit ) newsegs->push_back( std::unique_ptr<MuonSegment>((*vit)->clone()) );
45 }
46 }
int getNGoodCscLayers(int isEta) const
std::vector< std::unique_ptr< MuonSegment > > SegmentVec
SegmentVec * stationSegments(unsigned int index) const
Access to segments in a given station.
unsigned int numberOfStations() const
Number of stations with segment.
◆ getNGoodCscLayers()
| int Muon::MuonSegmentCombination::getNGoodCscLayers |
( |
int | isEta | ) |
const |
|
inline |
◆ numberOfAmbiguities()
| unsigned int Muon::MuonSegmentCombination::numberOfAmbiguities |
( |
| ) |
const |
|
inline |
Number of ambiguities.
Definition at line 120 of file MuonSegmentCombination.h.
121 {
122 unsigned int solutions(1);
125 for( ;
it!=it_end; ++
it ) solutions *= (*it)->size();
126 return solutions;
127 }
◆ numberOfStations()
| unsigned int Muon::MuonSegmentCombination::numberOfStations |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ setNGoodCscLayers()
| void Muon::MuonSegmentCombination::setNGoodCscLayers |
( |
int | nEta, |
|
|
int | nPhi ) |
|
inline |
Definition at line 64 of file MuonSegmentCombination.h.
constexpr int nEta
Default bin number of eta for vertex map.
constexpr int nPhi
Default bin number of phi for vertex map.
◆ stationSegments()
◆ use2LayerSegments()
| bool Muon::MuonSegmentCombination::use2LayerSegments |
( |
int | isEta | ) |
const |
|
inline |
◆ useStripsInSegment()
| bool Muon::MuonSegmentCombination::useStripsInSegment |
( |
int | isEta | ) |
const |
|
inline |
◆ m_nGood
| int Muon::MuonSegmentCombination::m_nGood[2] {} |
|
private |
◆ m_segmentsPerStation
The documentation for this class was generated from the following files: