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
16 
17 // Data Formats
19 //Strip and Pixel Cluster Collection
26 
27 class TrackerGeometry;
28 class DetId;
29 
30 namespace edm {
31  class ParameterSet;
32  class Event;
33  class EventSetup;
34 }
35 
37 {
38  public:
39  //--- Constructor, virtual destructor (just in case)
41  virtual ~SiClusterTranslator();
42 
43  //--- The top-level event method.
44  virtual void produce(edm::Event& e, const edm::EventSetup& c) override;
45 
46  // Begin Job
47  virtual void beginRun(edm::Run const& run, const edm::EventSetup & es) override;
48 
49  private:
50  std::vector<edm::DetSet<StripDigiSimLink> > theStripDigiLinkVector;
51  std::vector<edm::DetSet<PixelDigiSimLink> > thePixelDigiLinkVector;
52  std::vector<std::pair<PSimHit, int > > theNewSimHitList;
53  void loadPixelClusters(std::map<DetId,std::vector<SiPixelCluster> >& theClusters,
54  SiPixelClusterCollectionNew& theClusterCollection) const;
55  void loadStripClusters(std::map<DetId,std::vector<SiStripCluster> >& theClusters,
56  edmNew::DetSetVector<SiStripCluster>& theClusterCollection) const;
57 
58 
61 };
62 
63 
64 #endif
std::vector< edm::DetSet< PixelDigiSimLink > > thePixelDigiLinkVector
const TrackerGeometry * geometry
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
SiClusterTranslator(const edm::ParameterSet &conf)
edm::InputTag fastTrackerClusterCollectionTag_
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:18
std::vector< std::pair< PSimHit, int > > theNewSimHitList
void loadStripClusters(std::map< DetId, std::vector< SiStripCluster > > &theClusters, edmNew::DetSetVector< SiStripCluster > &theClusterCollection) const
Definition: Run.h:41
virtual void beginRun(edm::Run const &run, const edm::EventSetup &es) override