CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiStripClusters2ApproxClusters.cc
Go to the documentation of this file.
1 
2 
14 
15 #include <vector>
16 #include <memory>
17 
19 public:
21  void produce(edm::Event&, const edm::EventSetup&) override;
22 
23  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
24 
25 private:
28 };
29 
31  inputClusters = conf.getParameter<edm::InputTag>("inputClusters");
32 
33  clusterToken = consumes<edmNew::DetSetVector<SiStripCluster> >(inputClusters);
34  produces<edmNew::DetSetVector<SiStripApproximateCluster> >();
35 }
36 
38  auto result = std::make_unique<edmNew::DetSetVector<SiStripApproximateCluster> >();
39  const auto& clusterCollection = event.get(clusterToken);
40 
41  for (const auto& detClusters : clusterCollection) {
43 
44  for (const auto& cluster : detClusters)
45  ff.push_back(SiStripApproximateCluster(cluster));
46  }
47 
48  event.put(std::move(result));
49 }
50 
53  desc.add<edm::InputTag>("inputClusters", edm::InputTag("siStripClusters"));
54  descriptions.add("SiStripClusters2ApproxClusters", desc);
55 }
56 
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
SiStripClusters2ApproxClusters(const edm::ParameterSet &conf)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
tuple result
Definition: mps_fire.py:311
def move
Definition: eostools.py:511
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void produce(edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusterToken