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
44 
45 //--- Framework
49 
50 //#define TP_OLD
51 #ifdef TP_OLD
52 #include "FWCore/Framework/interface/Handle.h"
53 #else
55 #endif
59 
60 class MagneticField;
61 namespace cms
62 {
64  {
65  public:
66  //--- Constructor, virtual destructor (just in case)
68  virtual ~SiPixelRecHitConverter();
69 
70  //--- Factory method to make CPE's depending on the ParameterSet
71  //--- Not sure if we need to make more than one CPE to run concurrently
72  //--- on different parts of the detector (e.g., one for the barrel and the
73  //--- one for the forward). The way the CPE's are written now, it's
74  //--- likely we can use one (and they will switch internally), or
75  //--- make two of the same but configure them differently. We need a more
76  //--- realistic use case...
77 
78  //--- The top-level event method.
79  virtual void produce(edm::Event& e, const edm::EventSetup& c);
80 
81  // Begin Job
82  //virtual void beginJob();
83  virtual void beginJob();
84 
85  //--- Execute the position estimator algorithm(s).
86  //--- New interface with DetSetVector
90 
94 
95  private:
97  // TO DO: maybe allow a map of pointers?
98  std::string cpeName_; // what the user said s/he wanted
99  const PixelClusterParameterEstimator * cpe_; // what we got (for now, one ptr to base class)
100  //&&& PixelCPEBase * cpe_; // what we got (for now, one ptr to base class)
101  bool ready_; // needed CPE's valid => good to go!
103  int theVerboseLevel; // algorithm's verbosity
104  bool m_newCont; // save also in emdNew::DetSetVector
105  };
106 }
107 
108 
109 #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
tuple input
Definition: collect_tpl.py:10
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_