CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiClusterTranslator.h
Go to the documentation of this file.
1 #ifndef FastSimulation_TrackingRecHitProducer_SiClusterTranslator_h
2 #define FastSimulation_TrackingRecHitProducer_SiClusterTranslator_h
3 
4 //---------------------------------------------------------------------------
11 //---------------------------------------------------------------------------
12 
13 // Framework
15 
16 // Data Formats
18 //Strip and Pixel Cluster Collection
25 
26 class TrackerGeometry;
27 class DetId;
28 
29 namespace edm {
30  class ParameterSet;
31  class Event;
32  class EventSetup;
33 }
34 
36 {
37  public:
38  //--- Constructor, virtual destructor (just in case)
40  virtual ~SiClusterTranslator();
41 
42  //--- The top-level event method.
43  virtual void produce(edm::Event& e, const edm::EventSetup& c);
44 
45  // Begin Job
46  virtual void beginRun(edm::Run & run, const edm::EventSetup & es);
47 
48  private:
49  std::vector<edm::DetSet<StripDigiSimLink> > theStripDigiLinkVector;
50  std::vector<edm::DetSet<PixelDigiSimLink> > thePixelDigiLinkVector;
51  std::vector<std::pair<PSimHit, int > > theNewSimHitList;
52  void loadPixelClusters(std::map<DetId,std::vector<SiPixelCluster> >& theClusters,
53  SiPixelClusterCollectionNew& theClusterCollection) const;
54  void loadStripClusters(std::map<DetId,std::vector<SiStripCluster> >& theClusters,
55  edmNew::DetSetVector<SiStripCluster>& theClusterCollection) const;
56 
57 
59 };
60 
61 
62 #endif
std::vector< edm::DetSet< PixelDigiSimLink > > thePixelDigiLinkVector
const TrackerGeometry * geometry
virtual void produce(edm::Event &e, const edm::EventSetup &c)
SiClusterTranslator(const edm::ParameterSet &conf)
virtual void beginRun(edm::Run &run, const edm::EventSetup &es)
void loadPixelClusters(std::map< DetId, std::vector< SiPixelCluster > > &theClusters, SiPixelClusterCollectionNew &theClusterCollection) const
std::vector< edm::DetSet< StripDigiSimLink > > theStripDigiLinkVector
tuple conf
Definition: dbtoconf.py:185
Definition: DetId.h:20
std::vector< std::pair< PSimHit, int > > theNewSimHitList
void loadStripClusters(std::map< DetId, std::vector< SiStripCluster > > &theClusters, edmNew::DetSetVector< SiStripCluster > &theClusterCollection) const
Definition: Run.h:33