test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelRecHitConverter.h
Go to the documentation of this file.
1 #ifndef RecoLocalTracker_SiPixelRecHits_SiPixelRecHitConverter_h
2 #define RecoLocalTracker_SiPixelRecHits_SiPixelRecHitConverter_h
3 
4 //---------------------------------------------------------------------------
32 //---------------------------------------------------------------------------
33 
34 //--- Base class for CPEs:
35 
37 
38 //--- Geometry + DataFormats
43 
44 //--- Framework
48 
49 //#define TP_OLD
50 #ifdef TP_OLD
51 #include "FWCore/Framework/interface/Handle.h"
52 #else
54 #endif
58 
59 class MagneticField;
60 namespace cms
61 {
63  {
64  public:
65  //--- Constructor, virtual destructor (just in case)
66  explicit SiPixelRecHitConverter(const edm::ParameterSet& conf);
67  virtual ~SiPixelRecHitConverter();
68 
69  //--- Factory method to make CPE's depending on the ParameterSet
70  //--- Not sure if we need to make more than one CPE to run concurrently
71  //--- on different parts of the detector (e.g., one for the barrel and the
72  //--- one for the forward). The way the CPE's are written now, it's
73  //--- likely we can use one (and they will switch internally), or
74  //--- make two of the same but configure them differently. We need a more
75  //--- realistic use case...
76 
77  //--- The top-level event method.
78  virtual void produce(edm::Event& e, const edm::EventSetup& c) override;
79 
80  //--- Execute the position estimator algorithm(s).
81  //--- New interface with DetSetVector
85 
89 
90  private:
92  // TO DO: maybe allow a map of pointers?
93  std::string cpeName_="None"; // what the user said s/he wanted
95  PixelCPEBase const * cpe_=nullptr; // What we got (for now, one ptr to base class)
98  bool m_newCont; // save also in emdNew::DetSetVector
99  };
100 }
101 
102 
103 #endif
void run(const edmNew::DetSetVector< SiPixelCluster > &input, SiPixelRecHitCollectionNew &output, edm::ESHandle< TrackerGeometry > &geom)
static std::string const input
Definition: EdmProvDump.cc:44
SiPixelRecHitConverter(const edm::ParameterSet &conf)
Constructor: set the ParameterSet and defer all thinking to setupCPE().
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
The &quot;Event&quot; entrypoint: gets called by framework for every event.
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > tPixelCluster
PixelCPEBase const * cpe_
const PixelClusterParameterEstimator * cpe_; // what we got (for now, one ptr to base class) ...