|
|
Go to the documentation of this file.
67 : verbosity_(conf.getParameter<
int>(
"verbosity")), fitter_(conf) {
71 produces<DetSetVector<TotemRPLocalTrack>>();
78 LogVerbatim(
"TotemRPLocalTrackFitter") <<
">> TotemRPLocalTrackFitter::produce";
94 for (
const auto &rpv : *
input) {
98 unsigned int n_U = 0, n_V = 0;
99 unsigned int idx_U = 0, idx_V = 0;
100 for (
unsigned int pi = 0;
pi < rpv.size();
pi++) {
110 switch (
pattern.projection()) {
126 if (n_U != 1 || n_V != 1) {
129 <<
">> TotemRPLocalTrackFitter::produce > Impossible to combine U and V patterns in RP " <<
rpId
130 <<
" (n_U=" << n_U <<
", n_V=" << n_V <<
").";
136 if (!rpv[idx_U].fittable() || !rpv[idx_V].fittable())
141 for (
auto &ids : rpv[idx_U].
hits()) {
142 auto &ods =
hits.find_or_insert(ids.detId());
147 for (
auto &ids : rpv[idx_V].
hits()) {
148 auto &ods =
hits.find_or_insert(ids.detId());
163 unsigned int n_hits = 0;
164 for (
auto &hds :
track.hits())
165 n_hits += hds.size();
168 <<
" track in RP " <<
rpId <<
": valid = " <<
track.isValid() <<
", hits = " << n_hits;
182 ->setComment(
"input U-V patterns collection to retrieve");
183 desc.
add<
int>(
"verbosity", 0);
185 descr.
add(
"totemRPLocalTrackFitter", desc);
bool check(const edm::EventSetup &iSetup)
Event setup record containing the real (actual) geometry information.
void push_back(const T &t)
ESHandle< TrackerGeometry > geometry
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static const std::string input
~TotemRPLocalTrackFitter() override
bool fitTrack(const edm::DetSetVector< TotemRPRecHit > &hits, double z_0, const CTPPSGeometry &tot_geom, TotemRPLocalTrack &fitted_track)
performs the track fit, returns true if successful
Algorithm for fitting tracks through a single RP.
void produce(edm::Event &e, const edm::EventSetup &c) override
edm::ESWatcher< VeryForwardRealGeometryRecord > geometryWatcher
A watcher to detect geometry changes.
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Fits tracks trough a single RP.
void reset()
Resets the reconstruction-data cache.
A linear pattern in U or V projection. The intercept b is taken at the middle of a RP: (geometry->Get...
Base class for CTPPS detector IDs.
static void fillDescriptions(edm::ConfigurationDescriptions &)
TotemRPLocalTrackFitterAlgorithm fitter_
The instance of the fitter module.
T getParameter(std::string const &) const
edm::InputTag tagUVPattern
Selection of the pattern-recognition module.
A track fit through a single RP.
TotemRPLocalTrackFitter(const edm::ParameterSet &conf)
edm::EDGetTokenT< edm::DetSetVector< TotemRPUVPattern > > patternCollectionToken