#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()
Muon::MuonSegmentCombination::~MuonSegmentCombination |
( |
| ) |
|
◆ MuonSegmentCombination() [2/2]
◆ 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.
◆ clear()
void Muon::MuonSegmentCombination::clear |
( |
| ) |
|
|
private |
◆ copy()
copy data
Definition at line 34 of file MuonSegmentCombination.cxx.
36 m_nGood[0]=segc.getNGoodCscLayers(0);
37 m_nGood[1]=segc.getNGoodCscLayers(1);
38 unsigned int nst( segc.numberOfStations() );
39 for(
unsigned int i=0;
i<nst;++
i ){
40 SegmentVec::const_iterator vit = segc.stationSegments(
i )->begin();
41 SegmentVec::const_iterator vit_end = segc.stationSegments(
i )->end();
42 std::unique_ptr<SegmentVec> newsegs(
new SegmentVec());
43 for( ; vit!=vit_end; ++vit ) newsegs->push_back( std::unique_ptr<MuonSegment>((*vit)->clone()) );
◆ 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.
122 unsigned int solutions(1);
125 for( ;
it!=it_end; ++
it ) solutions *= (*it)->size();
◆ numberOfStations()
unsigned int Muon::MuonSegmentCombination::numberOfStations |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ setNGoodCscLayers()
void Muon::MuonSegmentCombination::setNGoodCscLayers |
( |
int |
nEta, |
|
|
int |
nPhi |
|
) |
| |
|
inline |
◆ 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: