45 outputTrackTag_(iConfig.getParameter<
std::
string>(
"outputTrackTag")) {
55 ->setComment(
"tag of the input CTPPSLocalTrackLiteCollection");
59 desc.add<
std::string>(
"outputTrackTag",
"")->setComment(
"tag of the output CTPPSLocalTrackLiteCollection");
61 descr.
add(
"ppsLocalTrackLiteReAligner",
desc);
71 auto output = std::make_unique<CTPPSLocalTrackLiteCollection>();
76 auto it =
alignment.getRPMap().find(tr.rpId());
78 edm::LogError(
"PPS") <<
"Cannot find alignment correction for RP " << tr.rpId() <<
". The track will be skipped.";
80 output->emplace_back(tr.rpId(),
81 tr.x() + it->second.getShX(),
83 tr.y() + it->second.getShY(),
89 tr.chiSquaredOverNDF(),
90 tr.pixelTrackRecoInfo(),
91 tr.numberOfPointsUsedForFit(),
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
static void fillDescriptions(edm::ConfigurationDescriptions &)
Log< level::Error, false > LogError
#define DEFINE_FWK_MODULE(type)
const std::string outputTrackTag_
const edm::EDGetTokenT< CTPPSLocalTrackLiteCollection > inputTrackToken_
std::vector< CTPPSLocalTrackLite > CTPPSLocalTrackLiteCollection
Collection of CTPPSLocalTrackLite objects.
void add(std::string const &label, ParameterSetDescription const &psetDescription)
PPSLocalTrackLiteReAligner(const edm::ParameterSet &)
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
const edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPRealAlignmentRecord > alignmentToken_