47 doNothing_( iConfig.getParameter<bool>(
"doNothing" ) )
54 produces< std::vector<CTPPSLocalTrackLite> >();
66 std::unique_ptr< std::vector<CTPPSLocalTrackLite> > pOut(
new std::vector<CTPPSLocalTrackLite>() );
75 for (
const auto& rpv : *inputSiStripTracks ) {
76 const uint32_t rpId = rpv.detId();
77 for (
const auto& trk : rpv ) {
78 if ( !trk.isValid() )
continue;
79 pOut->emplace_back( rpId, trk.getX0(), trk.getX0Sigma(), trk.getY0(), trk.getY0Sigma() );
90 for (
const auto& rpv : *inputDiamondTracks ) {
91 const unsigned int rpId = rpv.detId();
92 for (
const auto& trk : rpv ) {
93 if ( !trk.isValid() )
continue;
94 pOut->emplace_back( rpId, trk.getX0(), trk.getX0Sigma(), trk.getY0(), trk.getY0Sigma(), trk.getT() );
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)
virtual ~CTPPSLocalTrackLiteProducer()
virtual void produce(edm::Event &, const edm::EventSetup &) override
CTPPSLocalTrackLiteProducer(const edm::ParameterSet &)
Distills the essential track data from all RPs.
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondLocalTrack > > diamondTrackToken_
edm::EDGetTokenT< edm::DetSetVector< TotemRPLocalTrack > > siStripTrackToken_