CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CkfTrajectoryMaker.h
Go to the documentation of this file.
1 #ifndef CkfTrajectoryMaker_h
2 #define CkfTrajectoryMaker_h
3 
7 
9 
11 
15 
20 
22 
23 namespace cms {
25  public:
26  typedef std::vector<Trajectory> TrajectoryCollection;
27 
28  explicit CkfTrajectoryMaker(const edm::ParameterSet& conf) : CkfTrackCandidateMakerBase(conf, consumesCollector()) {
29  theTrackCandidateOutput = conf.getParameter<bool>("trackCandidateAlso");
30  theTrajectoryOutput = true;
31  if (theTrackCandidateOutput)
32  produces<TrackCandidateCollection>();
33  produces<TrajectoryCollection>();
34  produces<std::vector<SeedStopInfo> >();
35  }
36 
37  ~CkfTrajectoryMaker() override { ; }
38 
39  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
41  desc.setComment("Make CKF trajectories");
42  desc.add<bool>("trackCandidateAlso", false);
44  descriptions.addWithDefaultLabel(desc);
45  }
46 
47  void beginRun(edm::Run const& run, edm::EventSetup const& es) override { beginRunBase(run, es); }
48 
49  void produce(edm::Event& e, const edm::EventSetup& es) override { produceBase(e, es); }
50  };
51 } // namespace cms
52 
53 #endif
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
CkfTrajectoryMaker(const edm::ParameterSet &conf)
void setComment(std::string const &value)
#define dso_internal
Definition: Visibility.h:13
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillPSetDescription(edm::ParameterSetDescription &desc)
void produce(edm::Event &e, const edm::EventSetup &es) override
std::vector< Trajectory > TrajectoryCollection
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
void beginRun(edm::Run const &run, edm::EventSetup const &es) override
Definition: Run.h:45