62 produces< std::vector<CTPPSLocalTrackLite> >();
74 std::unique_ptr< std::vector<CTPPSLocalTrackLite> > pOut(
new std::vector<CTPPSLocalTrackLite>() );
83 for (
const auto& rpv : *inputSiStripTracks ) {
84 const uint32_t rpId = rpv.detId();
85 for (
const auto& trk : rpv ) {
86 if ( !trk.isValid() )
continue;
87 pOut->emplace_back( rpId, trk.getX0(), trk.getX0Sigma(), trk.getY0(), trk.getY0Sigma() );
98 for (
const auto& rpv : *inputDiamondTracks ) {
99 const unsigned int rpId = rpv.detId();
100 for (
const auto& trk : rpv ) {
101 if ( !trk.isValid() )
continue;
102 pOut->emplace_back( rpId, trk.getX0(), trk.getX0Sigma(), trk.getY0(), trk.getY0Sigma(), trk.getT() );
115 for (
const auto& rpv : *inputPixelTracks ) {
116 const uint32_t rpId = rpv.detId();
117 for (
const auto& trk : rpv ) {
118 if ( !trk.isValid() )
continue;
119 pOut->emplace_back( rpId, trk.getX0(), trk.getX0Sigma(), trk.getY0(), trk.getY0Sigma() );
135 ->setComment(
"input TOTEM strips' local tracks collection to retrieve" );
137 ->setComment(
"input diamond detectors' local tracks collection to retrieve" );
139 ->setComment(
"input pixel detectors' local tracks collection to retrieve" );
140 desc.
add<
bool>(
"doNothing",
true )
141 ->setComment(
"disable the module" );
143 descr.
add(
"ctppsLocalTrackLiteDefaultProducer", desc );
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &, const edm::EventSetup &) override
CTPPSLocalTrackLiteProducer(const edm::ParameterSet &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
~CTPPSLocalTrackLiteProducer() override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Distills the essential track data from all RPs.
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelLocalTrack > > pixelTrackToken_
bool isUninitialized() const
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondLocalTrack > > diamondTrackToken_
edm::EDGetTokenT< edm::DetSetVector< TotemRPLocalTrack > > siStripTrackToken_
static void fillDescriptions(edm::ConfigurationDescriptions &)