CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackListMerger.h
Go to the documentation of this file.
1 #ifndef TrackListMerger_h
2 #define TrackListMerger_h
3 
4 //
5 // Package: RecoTracker/FinalTrackSelectors
6 // Class: TrackListMerger
7 //
8 // Description: Hit Dumper
9 //
10 // Original Author: Steve Wagner, stevew@pizero.colorado.edu
11 // Created: Sat Jan 14 22:00:00 UTC 2006
12 //
13 //
14 
19 
31 
32 namespace cms
33 {
35  {
36  public:
37 
38  explicit TrackListMerger(const edm::ParameterSet& conf);
39 
40  virtual ~TrackListMerger();
41 
42  virtual void produce(edm::Event& e, const edm::EventSetup& c) override;
43 
44  private:
45  std::auto_ptr<reco::TrackCollection> outputTrks;
46  std::auto_ptr<reco::TrackExtraCollection> outputTrkExtras;
47  std::auto_ptr< TrackingRecHitCollection> outputTrkHits;
48  std::auto_ptr< std::vector<Trajectory> > outputTrajs;
49  std::auto_ptr< TrajTrackAssociationCollection > outputTTAss;
50  std::auto_ptr< TrajectorySeedCollection > outputSeeds;
51 
57 
60 
61  struct TkEDGetTokenss {
70  edm::EDGetTokenT<std::vector<Trajectory> > && traj_, edm::EDGetTokenT<TrajTrackAssociationCollection > && tass_,
72  tag(tag_), tk(tk_), traj(traj_), tass(tass_), tsel(tsel_), tmva(tmva_) {}
73  };
74  TkEDGetTokenss edTokens(const edm::InputTag &tag, const edm::InputTag &seltag, const edm::InputTag &mvatag) {
75  return TkEDGetTokenss(tag, consumes<reco::TrackCollection>(tag),
76  consumes<std::vector<Trajectory> >(tag), consumes<TrajTrackAssociationCollection >(tag),
78  }
80  return TkEDGetTokenss(tag, consumes<reco::TrackCollection>(tag),
81  consumes<std::vector<Trajectory> >(tag), consumes<TrajTrackAssociationCollection >(tag),
83  }
84  std::vector<TkEDGetTokenss> trackProducers_;
85 
87  double minPT_;
88  unsigned int minFound_;
89  float epsilon_;
90  float shareFrac_;
93  std::vector<double> indivShareFrac_;
94 
95  std::vector< std::vector< int> > listsToMerge_;
96  std::vector<bool> promoteQuality_;
97  std::vector<int> hasSelector_;
98 
103 
104  };
105 }
106 
107 
108 #endif
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
std::auto_ptr< TrajectorySeedCollection > outputSeeds
std::auto_ptr< std::vector< Trajectory > > outputTrajs
edm::EDGetTokenT< std::vector< Trajectory > > traj
TrackQuality
track quality
Definition: TrackBase.h:93
TkEDGetTokenss edTokens(const edm::InputTag &tag, const edm::InputTag &seltag, const edm::InputTag &mvatag)
std::auto_ptr< reco::TrackCollection > outputTrks
edm::EDGetTokenT< edm::ValueMap< int > > tsel
edm::EDGetTokenT< reco::TrackCollection > tk
std::vector< std::vector< int > > listsToMerge_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
TkEDGetTokenss(const edm::InputTag &tag_, edm::EDGetTokenT< reco::TrackCollection > &&tk_, edm::EDGetTokenT< std::vector< Trajectory > > &&traj_, edm::EDGetTokenT< TrajTrackAssociationCollection > &&tass_, edm::EDGetTokenT< edm::ValueMap< int > > &&tsel_, edm::EDGetTokenT< edm::ValueMap< float > > &&tmva_)
edm::EDGetTokenT< edm::ValueMap< float > > tmva
TrackingRecHitRefProd refTrkHits
unsigned int minFound_
edm::RefProd< TrajectorySeedCollection > refTrajSeeds
reco::TrackRefProd refTrks
std::auto_ptr< reco::TrackExtraCollection > outputTrkExtras
TrackListMerger(const edm::ParameterSet &conf)
tuple conf
Definition: dbtoconf.py:185
std::vector< double > indivShareFrac_
reco::TrackExtraRefProd refTrkExtras
std::vector< TkEDGetTokenss > trackProducers_
std::vector< bool > promoteQuality_
std::auto_ptr< TrackingRecHitCollection > outputTrkHits
edm::EDGetTokenT< TrajTrackAssociationCollection > tass
reco::TrackBase::TrackQuality qualityToSet_
TkEDGetTokenss edTokens(const edm::InputTag &tag, const edm::InputTag &mvatag)
edm::RefProd< std::vector< Trajectory > > refTrajs
std::vector< int > hasSelector_
std::auto_ptr< TrajTrackAssociationCollection > outputTTAss