CMS 3D CMS Logo

SiPixelClusterProducer.h
Go to the documentation of this file.
1 #ifndef RecoLocalTracker_SiPixelClusterizer_SiPixelClusterProducer_h
2 #define RecoLocalTracker_SiPixelClusterizer_SiPixelClusterProducer_h
3 
4 //---------------------------------------------------------------------------
29 //---------------------------------------------------------------------------
30 
31 #include "PixelClusterizerBase.h"
32 
33 //#include "Geometry/CommonDetUnit/interface/TrackingGeometry.h"
34 
36 
42 
48 
51 
53  public:
54  //--- Constructor, virtual destructor (just in case)
55  explicit SiPixelClusterProducer(const edm::ParameterSet& conf);
56  ~SiPixelClusterProducer() override;
57 
58  void setupClusterizer(const edm::ParameterSet& conf);
59 
60  //--- The top-level event method.
61  void produce(edm::Event& e, const edm::EventSetup& c) override;
62 
63  //--- Execute the algorithm(s).
64  template<typename T>
65  void run(const T & input,
68 
69  private:
72  // TO DO: maybe allow a map of pointers?
74  const std::string clusterMode_; // user's choice of the clusterizer
75  PixelClusterizerBase * clusterizer_; // what we got (for now, one ptr to base class)
76  bool readyToCluster_; // needed clusterizers valid => good to go!
77  const TrackerTopology* tTopo_; // needed to get correct layer number
78 
80  const int32_t maxTotalClusters_;
81 
83  };
84 
85 
86 #endif
PixelClusterizerBase * clusterizer_
#define dso_hidden
virtual void produce(Event &, EventSetup const &)=0
static std::string const input
Definition: EdmProvDump.cc:44
const std::string payloadType_
const int32_t maxTotalClusters_
Optional limit on the total number of clusters.
EDProducer to cluster PixelDigis into SiPixelClusters.
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > tPixelDigi
edm::EDGetTokenT< SiPixelClusterCollectionNew > tPixelClusters
SiPixelGainCalibrationServiceBase * theSiPixelGainCalibration_
long double T
const TrackerTopology * tTopo_
const std::string clusterMode_