CMS 3D CMS Logo

AlignmentTracksFromVertexCompositeCandidateSelectorModule.cc
Go to the documentation of this file.
4 
5 //the selectores used to select the tracks
7 
8 // the following include is necessary to clone all track branches
9 // including recoTrackExtras and TrackingRecHitsOwned.
10 // if you remove it the code will compile, but the cloned
11 // tracks have only the recoTracks branch!
13 
15  typedef std::vector<const reco::Track *> container;
16  typedef container::const_iterator const_iterator;
18 
20  : theBaseSelector(cfg, iC) {}
21 
22  const_iterator begin() const { return theSelectedTracks.begin(); }
23  const_iterator end() const { return theSelectedTracks.end(); }
24  size_t size() const { return theSelectedTracks.size(); }
25 
28  }
29 
30 private:
32 
34 };
35 
37  : public ObjectSelector<TrackFromVertexCompositeCandidateConfigSelector> {
38 public:
41  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions) {
43  desc.setComment("Alignment Tracks Selector from VertexCompositeCandidates");
44  desc.add<edm::InputTag>("src", edm::InputTag("generalTracks"));
45  desc.add<bool>("filter", false);
46  desc.add<edm::InputTag>("vertexCompositeCandidates", edm::InputTag("generalV0Candidates:Kshort"));
47  descriptions.addWithDefaultLabel(desc);
48  }
49 };
50 
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
Tracks select(const edm::Handle< reco::TrackCollection > &tc, const edm::Event &evt, const edm::EventSetup &setup) const
select tracks
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void select(const edm::Handle< reco::TrackCollection > &c, const edm::Event &evt, const edm::EventSetup &setup)
TrackFromVertexCompositeCandidateConfigSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)