20 std::unique_ptr<mkfit::TrackerInfo> trackerInfo)
26 throw cms::Exception(
"Assert") <<
"For now this code works only with phase1 tracker, you have something else";
30 dets_.resize(lnc_->nLayers(),
nullptr);
31 auto setDet = [
this](
const int subdet,
const int layer,
const int isStereo,
const DetId& detId,
const DetLayer* lay) {
32 const int index = lnc_->convertLayerNumber(subdet,
layer,
false, isStereo, isPlusSide(*ttopo_, detId));
33 if (
index < 0
or static_cast<unsigned>(
index) >= dets_.size()) {
34 throw cms::Exception(
"LogicError") <<
"Invalid mkFit layer index " <<
index <<
" for DetId " << detId.rawId()
35 <<
" subdet " << subdet <<
" layer " <<
layer <<
" isStereo " << isStereo;
39 constexpr
int monoLayer = 0;
40 constexpr
int stereoLayer = 1;
42 const auto&
comp = lay->basicComponents();
44 throw cms::Exception(
"LogicError") <<
"Got a tracker layer (subdet " << lay->subDetector()
45 <<
") with empty basicComponents.";
48 const auto& detId =
comp.front()->geographicalId();
49 const auto subdet = detId.subdetId();
50 const auto layer = ttopo.layer(detId);
53 setDet(subdet,
layer, monoLayer, detId, lay);
56 setDet(subdet,
layer, stereoLayer, detId, lay);
66 return lnc_->convertLayerNumber(
static constexpr auto TEC
std::unique_ptr< mkfit::LayerNumberConverter > lnc_
bool isStereo(const DetId &id) const
unsigned int side(const DetId &id) const
unsigned int layer(const DetId &id) const
constexpr std::array< uint8_t, layerIndexSize > layer
const TrackerTopology * ttopo_
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static constexpr auto TOB
static constexpr auto TIB
int mkFitLayerNumber(DetId detId) const
MkFitGeometry(const TrackerGeometry &geom, const GeometricSearchTracker &tracker, const TrackerTopology &ttopo, std::unique_ptr< mkfit::TrackerInfo > trackerInfo)
static constexpr auto TID