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:
36 //&&& #include "RecoLocalTracker/SiPixelRecHits/interface/PixelCPEBase.h"
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)
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);
79 
80  // Begin Job
81  //virtual void beginJob();
82  virtual void beginJob();
83 
84  //--- Execute the position estimator algorithm(s).
85  //--- New interface with DetSetVector
89 
93 
94  private:
96  // TO DO: maybe allow a map of pointers?
97  std::string cpeName_; // what the user said s/he wanted
98  const PixelClusterParameterEstimator * cpe_; // what we got (for now, one ptr to base class)
99  //&&& PixelCPEBase * cpe_; // what we got (for now, one ptr to base class)
100  bool ready_; // needed CPE's valid => good to go!
102  int theVerboseLevel; // algorithm's verbosity
103  bool m_newCont; // save also in emdNew::DetSetVector
104  };
105 }
106 
107 
108 #endif
void run(const edmNew::DetSetVector< SiPixelCluster > &input, SiPixelRecHitCollectionNew &output, edm::ESHandle< TrackerGeometry > &geom)
SiPixelRecHitConverter(const edm::ParameterSet &conf)
Constructor: set the ParameterSet and defer all thinking to setupCPE().
tuple conf
Definition: dbtoconf.py:185
virtual void produce(edm::Event &e, const edm::EventSetup &c)
The &quot;Event&quot; entrypoint: gets called by framework for every event.
const PixelClusterParameterEstimator * cpe_