#include <MuonTrackSteeringStrategy.h>
|
| | MuonTrackSteeringStrategy (const std::string &name, const std::bitset< Last > &bits, std::vector< std::vector< MuonStationIndex::ChIndex > > &path, std::vector< unsigned int > &seedOrder) |
| | MuonTrackSteeringStrategy (const std::string &name, std::vector< std::string > &options, std::vector< std::vector< MuonStationIndex::ChIndex > > &path) |
| | Constructor that assumes the seed order could come as part of the options.
|
| | MuonTrackSteeringStrategy (const std::string &name, std::vector< std::string > &options, std::vector< std::vector< MuonStationIndex::ChIndex > > &path, std::vector< unsigned int > &seedOrder) |
| void | setOption (Option, bool value) |
| void | setOption (const std::string &, bool value) |
| bool | option (Option) const |
| const std::bitset< Last > & | allOptions () const |
| void | setCh (const std::vector< MuonStationIndex::ChIndex > &val, const unsigned int layer) |
| void | setCh (const std::vector< std::vector< MuonStationIndex::ChIndex > > &val) |
| const std::vector< std::vector< MuonStationIndex::ChIndex > > & | getAll () const |
| const std::vector< MuonStationIndex::ChIndex > & | getCh (const unsigned int) const |
| const std::string & | getName () const |
| void | setName (const std::string &name) |
| const std::vector< unsigned int > & | seeds () const |
| void | setSeeds (const std::vector< unsigned int > &val) |
Definition at line 17 of file MuonTrackSteeringStrategy.h.
◆ Option
| Enumerator |
|---|
| CutSeedsOnTracks | |
| CombineSegInStation | |
| DynamicSeeding | |
| PreferOutsideIn | |
| AllowOneSharedHit | |
| DoRefinement | |
| DoAmbiSolving | |
| BarrelEndcapFilter | |
| Last | |
Definition at line 19 of file MuonTrackSteeringStrategy.h.
◆ MuonTrackSteeringStrategy() [1/3]
| Muon::MuonTrackSteeringStrategy::MuonTrackSteeringStrategy |
( |
const std::string & | name, |
|
|
const std::bitset< Last > & | bits, |
|
|
std::vector< std::vector< MuonStationIndex::ChIndex > > & | path, |
|
|
std::vector< unsigned int > & | seedOrder ) |
|
inline |
Definition at line 31 of file MuonTrackSteeringStrategy.h.
32 :
std::vector< unsigned int > m_seeds
std::vector< std::vector< MuonStationIndex::ChIndex > > m_path
std::bitset< Last > m_bits
List of all of the options available.
◆ MuonTrackSteeringStrategy() [2/3]
| Muon::MuonTrackSteeringStrategy::MuonTrackSteeringStrategy |
( |
const std::string & | name, |
|
|
std::vector< std::string > & | options, |
|
|
std::vector< std::vector< MuonStationIndex::ChIndex > > & | path ) |
|
inline |
Constructor that assumes the seed order could come as part of the options.
Definition at line 36 of file MuonTrackSteeringStrategy.h.
37 :
39 for (
unsigned int i = 0;
i <
Last; ++
i)
m_bits.set(i, 0);
41 }
void setOption(Option, bool value)
◆ MuonTrackSteeringStrategy() [3/3]
| Muon::MuonTrackSteeringStrategy::MuonTrackSteeringStrategy |
( |
const std::string & | name, |
|
|
std::vector< std::string > & | options, |
|
|
std::vector< std::vector< MuonStationIndex::ChIndex > > & | path, |
|
|
std::vector< unsigned int > & | seedOrder ) |
|
inline |
◆ allOptions()
| const std::bitset< Last > & Muon::MuonTrackSteeringStrategy::allOptions |
( |
| ) |
const |
|
inline |
◆ getAll()
◆ getCh()
Definition at line 124 of file MuonTrackSteeringStrategy.h.
124 {
125 if (layer >=
m_path.size()) {
126 throw std::range_error("MuonTrackSteering a path beyond the possible paths is chosen");
127 }
129}
◆ getName()
| const std::string & Muon::MuonTrackSteeringStrategy::getName |
( |
| ) |
const |
|
inline |
◆ option()
| bool Muon::MuonTrackSteeringStrategy::option |
( |
Option | | ) |
const |
|
inline |
◆ seeds()
| const std::vector< unsigned int > & Muon::MuonTrackSteeringStrategy::seeds |
( |
| ) |
const |
|
inline |
◆ setCh() [1/2]
| void Muon::MuonTrackSteeringStrategy::setCh |
( |
const std::vector< MuonStationIndex::ChIndex > & | val, |
|
|
const unsigned int | layer ) |
|
inline |
◆ setCh() [2/2]
◆ setName()
| void Muon::MuonTrackSteeringStrategy::setName |
( |
const std::string & | name | ) |
|
|
inline |
◆ setOption() [1/2]
| void Muon::MuonTrackSteeringStrategy::setOption |
( |
const std::string & | opt, |
|
|
bool | value ) |
|
inline |
Definition at line 78 of file MuonTrackSteeringStrategy.h.
78 {
79 if (opt == "CutSeedsOnTracks")
81 else if (opt == "CombineSegInStation")
83 else if (opt == "DynamicSeeding")
85 else if (opt == "PreferOutsideIn")
87 else if (opt == "AllowOneSharedHit")
89 else if (opt == "DoRefinement")
91 else if (opt == "DoAmbiSolving")
93 else if (opt == "BarrelEndcapFilter")
95 else {
96
97 std::vector<unsigned int>
seeds;
98 bool success = true;
99 for (
unsigned int i = 0;
i <
opt.size() && success; ++
i) {
100 int holder =
int(opt[i]) - 48;
101 if (holder < 0 || holder > 9)
102 success = false;
103 else
104 seeds.push_back(holder);
105 }
107 }
108}
void setSeeds(const std::vector< unsigned int > &val)
const std::vector< unsigned int > & seeds() const
◆ setOption() [2/2]
| void Muon::MuonTrackSteeringStrategy::setOption |
( |
Option | opt, |
|
|
bool | value ) |
|
inline |
◆ setSeeds()
| void Muon::MuonTrackSteeringStrategy::setSeeds |
( |
const std::vector< unsigned int > & | val | ) |
|
|
inline |
◆ m_bits
| std::bitset<Last> Muon::MuonTrackSteeringStrategy::m_bits |
|
private |
◆ m_name
| std::string Muon::MuonTrackSteeringStrategy::m_name |
|
private |
◆ m_path
◆ m_seeds
| std::vector<unsigned int> Muon::MuonTrackSteeringStrategy::m_seeds |
|
private |
The documentation for this class was generated from the following file: