48 doNothing_( iConfig.getParameter<bool>(
"doNothing" ) )
55 produces< std::vector<CTPPSLocalTrackLite> >();
67 std::unique_ptr< std::vector<CTPPSLocalTrackLite> > pOut(
new std::vector<CTPPSLocalTrackLite>() );
76 for (
const auto& rpv : *inputSiStripTracks ) {
77 const uint32_t rpId = rpv.detId();
78 for (
const auto& trk : rpv ) {
79 if ( !trk.isValid() )
continue;
80 pOut->emplace_back( rpId, trk.getX0(), trk.getX0Sigma(), trk.getY0(), trk.getY0Sigma() );
91 for (
const auto& rpv : *inputDiamondTracks ) {
92 const unsigned int rpId = rpv.detId();
93 for (
const auto& trk : rpv ) {
94 if ( !trk.isValid() )
continue;
95 pOut->emplace_back( rpId, trk.getX0(), trk.getX0Sigma(), trk.getY0(), trk.getY0Sigma(), trk.getT() );
111 ->setComment(
"input TOTEM strips' local tracks collection to retrieve" );
113 ->setComment(
"input diamond detectors' local tracks collection to retrieve" );
114 desc.
add<
bool>(
"doNothing",
true )
115 ->setComment(
"disable the module" );
117 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)
virtual ~CTPPSLocalTrackLiteProducer()
virtual void produce(edm::Event &, const edm::EventSetup &) override
CTPPSLocalTrackLiteProducer(const edm::ParameterSet &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Distills the essential track data from all RPs.
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondLocalTrack > > diamondTrackToken_
edm::EDGetTokenT< edm::DetSetVector< TotemRPLocalTrack > > siStripTrackToken_
static void fillDescriptions(edm::ConfigurationDescriptions &)