CMS 3D CMS Logo

ClusterRemovalInfo.h
Go to the documentation of this file.
1 #ifndef DataFormats_TrackerRecHit2D_ClusterRemovalInfo_h
2 #define DataFormats_TrackerRecHit2D_ClusterRemovalInfo_h
3 
10 
11 namespace reco {
12 
14  public:
21 
22  typedef std::vector<uint32_t> Indices;
23 
25 
29 
33 
36 
39 
42 
44  stripProd_ = other.stripProd_;
45  pixelProd_ = other.pixelProd_;
46  phase2OTProd_ = other.phase2OTProd_;
47  }
48 
52 
53  const Indices &pixelIndices() const { return pixelIndices_; }
54  const Indices &stripIndices() const { return stripIndices_; }
55  const Indices &phase2OTIndices() const { return phase2OTIndices_; }
56 
57  const SiPixelClusterRefProd &pixelRefProd() const { return pixelProd_; }
58  const SiStripClusterRefProd &stripRefProd() const { return stripProd_; }
63 
66  }
69  }
72  }
73 
74  bool hasPixel() const { return pixelProd_.isNonnull(); }
75  bool hasStrip() const { return stripProd_.isNonnull(); }
76  bool hasPhase2OT() const { return phase2OTProd_.isNonnull(); }
77 
79 
80  private:
88  };
89 
91 
92 } // namespace reco
93 
94 #endif
const Phase2TrackerCluster1DRefProd & phase2OTRefProd() const
SiPixelRecHit::ClusterRef::product_type SiPixelClusters
const Indices & stripIndices() const
void setNewPhase2OTClusters(const edm::OrphanHandle< Phase2TrackerCluster1Ds > &phase2OTs)
Phase2TrackerRecHit1D::CluRef::product_type Phase2TrackerCluster1Ds
SiPixelClusterRefProd pixelProd_
const Indices & pixelIndices() const
SiPixelClusterRefProd pixelNewProd_
SiStripRecHit2D::ClusterRef::product_type SiStripClusters
Phase2TrackerCluster1DRefProd phase2OTNewProd_
ClusterRemovalInfo(const edm::Handle< SiPixelClusters > &pixelClusters, const edm::Handle< SiStripClusters > &stripClusters)
ClusterRemovalInfo(const edm::Handle< Phase2TrackerCluster1Ds > &phase2OTClusters)
edm::RefProd< SiPixelClusters > SiPixelClusterRefProd
SiStripClusterRefProd stripNewProd_
edm::RefProd< Phase2TrackerCluster1Ds > Phase2TrackerCluster1DRefProd
const SiPixelClusterRefProd & pixelNewRefProd() const
bool isNonnull() const
Checks for non-null.
Definition: RefProd.h:118
void setNewPixelClusters(const edm::OrphanHandle< SiPixelClusters > &pixels)
edm::RefProd< SiStripClusters > SiStripClusterRefProd
std::vector< uint32_t > Indices
void getOldClustersFrom(const ClusterRemovalInfo &other)
ClusterRemovalInfo(const edm::Handle< SiPixelClusters > &pixelClusters, const edm::Handle< Phase2TrackerCluster1Ds > &phase2OTClusters)
ClusterRemovalInfo(const edm::Handle< SiPixelClusters > &pixelClusters)
Phase2TrackerCluster1DRefProd phase2OTProd_
C product_type
for export
Definition: Ref.h:159
void setNewStripClusters(const edm::OrphanHandle< SiStripClusters > &strips)
fixed size matrix
const Indices & phase2OTIndices() const
strips
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers.hcal.doNoise = False simEcalUnsuppressedDigis.doNoise = False mix.digitizers.ecal.doNoise = False simEcalUnsuppressedDigis.doESNoise = False simSiPixelDigis.AddNoise = False mix.digitizers.pixel.AddNoise = False simSiStripDigis.Noise = False mix.digitizers.strip.AddNoise = False
Definition: DigiDM_cff.py:32
const Phase2TrackerCluster1DRefProd & phase2OTNewRefProd() const
SiStripClusterRefProd stripProd_
const SiStripClusterRefProd & stripRefProd() const
ClusterRemovalInfo(const edm::Handle< SiStripClusters > &stripClusters)
void swap(reco::ClusterRemovalInfo &cri1, reco::ClusterRemovalInfo &cri2)
const SiPixelClusterRefProd & pixelRefProd() const
const SiStripClusterRefProd & stripNewRefProd() const
void swap(reco::ClusterRemovalInfo &other)