CMS 3D CMS Logo

TTClusterBuilder.h
Go to the documentation of this file.
1 
14 #ifndef L1_TRACK_TRIGGER_CLUSTER_BUILDER_H
15 #define L1_TRACK_TRIGGER_CLUSTER_BUILDER_H
16 
24 
30 
35 
36 #include <memory>
37 #include <map>
38 #include <vector>
39 
40 template <typename T>
44 public:
46  explicit TTClusterBuilder(const edm::ParameterSet& iConfig);
48  ~TTClusterBuilder() override;
49 
50 private:
53  std::vector<edm::EDGetTokenT<edm::DetSetVector<Phase2TrackerDigi> > > rawHitTokens;
54  unsigned int ADCThreshold;
56 
58  void beginRun(const edm::Run& run, const edm::EventSetup& iSetup) override;
59  void endRun(const edm::Run& run, const edm::EventSetup& iSetup) override;
60  void produce(edm::Event& iEvent, const edm::EventSetup& iSetup) override;
61 
63  void RetrieveRawHits(std::map<DetId, std::vector<T> >& mRawHits, const edm::Event& iEvent);
64 
65 };
66 
74 template <typename T>
77  ADCThreshold = iConfig.getParameter<unsigned int>("ADCThreshold");
78  storeLocalCoord = iConfig.getParameter<bool>("storeLocalCoord");
79 
80  std::vector<edm::InputTag> rawHitInputTags = iConfig.getParameter<std::vector<edm::InputTag> >("rawHits");
81  for (auto it = rawHitInputTags.begin(); it != rawHitInputTags.end(); ++it) {
83  }
84 
85  produces<edmNew::DetSetVector<TTCluster<T> > >("ClusterInclusive");
86 }
87 
89 template <typename T>
91 
93 template <typename T>
97 }
98 
100 template <typename T>
102 
104 template <>
106 
108 template <>
110  std::map<DetId, std::vector<Ref_Phase2TrackerDigi_> >& mRawHits, const edm::Event& iEvent);
111 
112 #endif
T getParameter(std::string const &) const
Plugin to load the Clustering algorithm and produce the collection of Clusters that goes in the event...
void endRun(const edm::Run &run, const edm::EventSetup &iSetup) override
End run.
void RetrieveRawHits(std::map< DetId, std::vector< T > > &mRawHits, const edm::Event &iEvent)
Get hits.
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
int iEvent
Definition: GenABIO.cc:224
void beginRun(const edm::Run &run, const edm::EventSetup &iSetup) override
Mandatory methods.
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
unsigned int ADCThreshold
TTClusterBuilder(const edm::ParameterSet &iConfig)
Constructors.
~TTClusterBuilder() override
Destructor.
std::vector< edm::EDGetTokenT< edm::DetSetVector< Phase2TrackerDigi > > > rawHitTokens
Definition: DetId.h:17
T get() const
Definition: EventSetup.h:73
Class to store the TTClusterAlgorithm used in TTClusterBuilder.
Definition: Run.h:45
edm::ESHandle< TTClusterAlgorithm< T > > theClusterFindingAlgoHandle
Data members.