73 produces<DetSetVector<TotemRPLocalTrack>>();
81 LogVerbatim(
"TotemRPLocalTrackFitter") <<
">> TotemRPLocalTrackFitter::produce";
97 for (
const auto &rpv : *input)
102 unsigned int n_U=0, n_V=0;
103 unsigned int idx_U=0, idx_V=0;
104 for (
unsigned int pi = 0;
pi < rpv.size();
pi++)
132 if (n_U != 1 || n_V != 1)
136 <<
">> TotemRPLocalTrackFitter::produce > Impossible to combine U and V patterns in RP " <<
rpId 137 <<
" (n_U=" << n_U <<
", n_V=" << n_V <<
").";
143 if (!rpv[idx_U].getFittable() || !rpv[idx_V].getFittable())
148 for (
auto &ids : rpv[idx_U].getHits())
155 for (
auto &ids : rpv[idx_V].getHits())
173 unsigned int n_hits = 0;
174 for (
auto &hds : track.
getHits())
175 n_hits += hds.size();
178 <<
" track in RP " <<
rpId <<
": valid = " << track.
isValid() <<
", hits = " << n_hits;
194 ->setComment(
"input U-V patterns collection to retrieve" );
195 desc.
add<
int>(
"verbosity", 0 );
197 descr.
add(
"totemRPLocalTrackFitter", desc );
T getParameter(std::string const &) const
TotemRPLocalTrackFitter(const edm::ParameterSet &conf)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void push_back(const T &t)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void produce(edm::Event &e, const edm::EventSetup &c) override
edm::ESWatcher< VeryForwardRealGeometryRecord > geometryWatcher
A watcher to detect geometry changes.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~TotemRPLocalTrackFitter() override
void reset()
Resets the reconstruction-data cache.
def setup(process, global_tag, zero_tesla=False)
ProjectionType getProjection() const
Fits tracks trough a single RP.
A track fit through a single RP.
Event setup record containing the real (actual) geometry information.
static std::string const input
reference find_or_insert(det_id_type id)
const edm::DetSetVector< FittedRecHit > & getHits() const
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
A linear pattern in U or V projection. The intercept b is taken at the middle of a RP: (geometry->Get...
CLHEP::Hep3Vector getRPTranslation(unsigned int id) const
TotemRPLocalTrackFitterAlgorithm fitter_
The instance of the fitter module.
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 add(std::string const &label, ParameterSetDescription const &psetDescription)
bool check(const edm::EventSetup &iSetup)
Base class for CTPPS detector IDs.
ESHandle< TrackerGeometry > geometry
edm::InputTag tagUVPattern
Selection of the pattern-recognition module.
edm::EDGetTokenT< edm::DetSetVector< TotemRPUVPattern > > patternCollectionToken