CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiStripFineDelayHit.h
Go to the documentation of this file.
1 #ifndef SiStripCommissioningSource_SiStripFineDelayHit_h
2 #define SiStripCommissioningSource_SiStripFineDelayHit_h
3 
4 // system include files
5 #include <memory>
6 #include <utility>
7 
8 // user include files
36 
37 //
38 // class decleration
39 //
40 
41 class SiStripFineDelayHit : public edm::one::EDProducer<edm::one::WatchRuns> {
42 public:
43  explicit SiStripFineDelayHit(const edm::ParameterSet&);
44  ~SiStripFineDelayHit() override;
45 
46 private:
47  void beginRun(const edm::Run&, const edm::EventSetup&) override;
48  void produce(edm::Event&, const edm::EventSetup&) override;
49  void endRun(const edm::Run&, const edm::EventSetup&) override{};
50  virtual void produceNoTracking(edm::Event&, const edm::EventSetup&);
51  using DeviceMask = std::pair<uint32_t, uint32_t>;
53  const int substructure,
54  const TrackerTopology* tkrTopo);
55  std::vector<std::pair<uint32_t, std::pair<double, double> > > detId(
56  const TrackerGeometry& tracker,
57  const TrackerTopology* tkrTopo,
58  const reco::Track* tk,
59  const std::vector<Trajectory>& trajVec,
61  const int substructure = 0xff);
62  std::vector<std::pair<uint32_t, std::pair<double, double> > > detId(const TrackerGeometry& tracker,
63  const TrackerTopology* tkrTopo,
64  const reco::Track* tk,
65  const std::vector<Trajectory>& trajVec,
66  const uint32_t& maskDetId,
67  const uint32_t& rootDetId);
68  std::pair<const SiStripCluster*, double> closestCluster(const TrackerGeometry& tracker,
69  const reco::Track* tk,
70  const uint32_t& detId,
72  const edm::DetSetVector<SiStripDigi>& hits);
73  bool rechit(reco::Track* tk, uint32_t detId);
74 
75  // ----------member data ---------------------------
80  int mode_; // 1=delayScan 2=latencyScan
82  // edm::InputTag digiLabel_, clusterLabel_, trackLabel_, seedLabel_, inputModuleLabel_;
89  std::map<uint32_t, uint32_t> connectionMap_;
90 
95 };
96 
97 #endif
virtual void produceNoTracking(edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< SiStripEventSummary > inputModuleToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
std::vector< std::pair< uint32_t, std::pair< double, double > > > detId(const TrackerGeometry &tracker, const TrackerTopology *tkrTopo, const reco::Track *tk, const std::vector< Trajectory > &trajVec, const StripSubdetector::SubDetector subdet=StripSubdetector::TIB, const int substructure=0xff)
SiStripFineDelayHit(const edm::ParameterSet &)
std::pair< const SiStripCluster *, double > closestCluster(const TrackerGeometry &tracker, const reco::Track *tk, const uint32_t &detId, const edmNew::DetSetVector< SiStripCluster > &clusters, const edm::DetSetVector< SiStripDigi > &hits)
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd > noiseToken_
SiStripFineDelayTLA * anglefinder_
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustersToken_
DeviceMask deviceMask(const StripSubdetector::SubDetector subdet, const int substructure, const TrackerTopology *tkrTopo)
edm::EDGetTokenT< TrajectorySeedCollection > seedcollToken_
static constexpr auto TIB
void endRun(const edm::Run &, const edm::EventSetup &) override
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > digiToken_
std::pair< uint32_t, uint32_t > DeviceMask
bool rechit(reco::Track *tk, uint32_t detId)
std::map< uint32_t, uint32_t > connectionMap_
void beginRun(const edm::Run &, const edm::EventSetup &) override
const edm::Event * event_
void produce(edm::Event &, const edm::EventSetup &) override
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
edm::EDGetTokenT< std::vector< Trajectory > > trackToken_
edm::EDGetTokenT< reco::TrackCollection > trackCollectionToken_
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
Definition: Run.h:45