Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:14:46

0001 #ifndef SHALLOW_SIMHITCLUSTERS_PRODUCER
0002 #define SHALLOW_SIMHITCLUSTERS_PRODUCER
0003 
0004 #include "FWCore/Framework/interface/stream/EDProducer.h"
0005 #include "FWCore/Framework/interface/Frameworkfwd.h"
0006 #include "FWCore/Utilities/interface/InputTag.h"
0007 #include "CalibTracker/SiStripCommon/interface/ShallowTools.h"
0008 #include "DataFormats/Common/interface/DetSetVectorNew.h"
0009 #include "DataFormats/SiStripCluster/interface/SiStripCluster.h"
0010 #include "SimDataFormats/TrackingHit/interface/PSimHit.h"
0011 #include "MagneticField/Engine/interface/MagneticField.h"
0012 #include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
0013 #include "CondFormats/SiStripObjects/interface/SiStripLorentzAngle.h"
0014 #include "CondFormats/DataRecord/interface/SiStripLorentzAngleRcd.h"
0015 #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
0016 #include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
0017 
0018 class ShallowSimhitClustersProducer : public edm::stream::EDProducer<> {
0019 public:
0020   explicit ShallowSimhitClustersProducer(const edm::ParameterSet&);
0021 
0022 private:
0023   std::vector<edm::EDGetTokenT<std::vector<PSimHit> > > simhits_tokens_;
0024   const edm::EDGetTokenT<edmNew::DetSetVector<SiStripCluster> > clusters_token_;
0025   const edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> geomToken_;
0026   const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> magFieldToken_;
0027   const edm::ESGetToken<SiStripLorentzAngle, SiStripLorentzAngleRcd> laToken_;
0028   std::string Prefix;
0029   std::string runningmode_;
0030 
0031   void produce(edm::Event&, const edm::EventSetup&) override;
0032   shallow::CLUSTERMAP::const_iterator match_cluster(const unsigned&,
0033                                                     const float&,
0034                                                     const shallow::CLUSTERMAP&,
0035                                                     const edmNew::DetSetVector<SiStripCluster>&) const;
0036 };
0037 #endif