21 nEtaRegions_(
tmtt::KFbase::nEta_ / 2),
22 nKalmanLayers_(
tmtt::KFbase::nKFlayer_) {
24 layerIds_.push_back(std::make_pair(sm.layerId(), sm.barrel()));
45 : hitpattern_(hitpattern),
52 numMissingInterior1_(0),
53 numMissingInterior2_(0),
60 chosenRofZ_(setup_->chosenRofZ()),
63 nKalmanLayers_(setup_->nKalmanLayers()),
64 layermap_(setup_->layermap()) {
68 for (
int iEtaSec = 1; iEtaSec < ((
int)
etaRegions_.size() - 1); iEtaSec++) {
71 if (kfzRef > zRefMax) {
76 if (kf_eta_reg < ((
int)
etaRegions_.size() - 1) / 2) {
83 double d = (
z0_ - sm.z() + sm.r() *
cot_) / (sm.cosTilt() - sm.sinTilt() *
cot_);
89 (
abs(d_p) < sm.numColumns() * sm.pitchCol() / 2. ||
abs(d_m) < sm.numColumns() * sm.pitchCol() / 2.)) {
92 if (!
useNewKF_ &&
abs(
d) < sm.numColumns() * sm.pitchCol() / 2.) {
105 for (
int i = 0;
i < nbits;
i++) {
114 bool realhit =
false;
133 edm::LogVerbatim(
"TrackTriggerHPH") <<
"======================================================";
135 <<
"Looking at hitpattern " << std::bitset<7>(
hitpattern_) <<
"; Looping over KF layers:";
247 edm::LogVerbatim(
"TrackTriggerHPH") <<
"======================================================";
252 if (
hphDebug_ && (layerId > 15 || layerId < 1)) {
256 layerId = layerId - 1;
259 layerId = layerId - 5;
266 if (layerId == (
int)
layers_[
i].layerId()) {
Log< level::Info, true > LogVerbatim
static constexpr std::pair< unsigned, unsigned > layerMap_[nEta_/2][nGPlayer_+1]
Class to process and provide run-time constants used by Track Trigger emulators.
static auto equalID(tt::SensorModule lhs, tt::SensorModule rhs)
std::vector< int > binary_
U second(std::pair< T, U > const &p)
static auto smallerID(tt::SensorModule lhs, tt::SensorModule rhs)
const std::vector< SensorModule > & sensorModules() const
std::vector< double > etaRegions_
def unique(seq, keepstr=True)
std::vector< tt::SensorModule > layers_
static unsigned int calcLayerIdReduced(unsigned int layerId)
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
static auto smallerID(std::pair< int, bool > lhs, std::pair< int, bool > rhs)
std::vector< std::pair< int, bool > > layerIds_
int findLayer(int layerId)
=== This is the base class for the linearised chi-squared track fit algorithms.
std::vector< tt::SensorModule > sensorModules() const
int ReducedId(int layerId)
std::map< int, std::map< int, std::vector< int > > > layermap_
static auto equalID(std::pair< int, bool > lhs, std::pair< int, bool > rhs)
std::map< int, std::map< int, std::vector< int > > > layermap_