CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
28  : pixelProd_(pixelClusters), stripProd_(stripClusters), phase2OTProd_() {}
29 
32  : pixelProd_(pixelClusters), stripProd_(), phase2OTProd_(phase2OTClusters) {}
33 
35  : pixelProd_(pixelClusters), stripProd_(), phase2OTProd_() {}
36 
38  : pixelProd_(), stripProd_(stripClusters), phase2OTProd_() {}
39 
41  : pixelProd_(), stripProd_(), phase2OTProd_(phase2OTClusters) {}
42 
44  stripProd_ = other.stripProd_;
45  pixelProd_ = other.pixelProd_;
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 
78  void swap(reco::ClusterRemovalInfo &other);
79 
80  private:
88  };
89 
91 
92 } // namespace reco
93 
94 #endif
const SiPixelClusterRefProd & pixelRefProd() const
const SiStripClusterRefProd & stripRefProd() const
const Indices & pixelIndices() const
SiPixelRecHit::ClusterRef::product_type SiPixelClusters
void setNewPhase2OTClusters(const edm::OrphanHandle< Phase2TrackerCluster1Ds > &phase2OTs)
Phase2TrackerRecHit1D::CluRef::product_type Phase2TrackerCluster1Ds
SiPixelClusterRefProd pixelProd_
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
const SiPixelClusterRefProd & pixelNewRefProd() const
SiStripClusterRefProd stripNewProd_
edm::RefProd< Phase2TrackerCluster1Ds > Phase2TrackerCluster1DRefProd
tuple 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 Indices & stripIndices() const
void setNewPixelClusters(const edm::OrphanHandle< SiPixelClusters > &pixels)
edm::RefProd< SiStripClusters > SiStripClusterRefProd
const Phase2TrackerCluster1DRefProd & phase2OTRefProd() const
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_
const Indices & phase2OTIndices() const
const SiStripClusterRefProd & stripNewRefProd() const
C product_type
for export
Definition: Ref.h:159
void setNewStripClusters(const edm::OrphanHandle< SiStripClusters > &strips)
bool isNonnull() const
Checks for non-null.
Definition: RefProd.h:118
const Phase2TrackerCluster1DRefProd & phase2OTNewRefProd() const
SiStripClusterRefProd stripProd_
ClusterRemovalInfo(const edm::Handle< SiStripClusters > &stripClusters)
void swap(reco::ClusterRemovalInfo &cri1, reco::ClusterRemovalInfo &cri2)
void swap(reco::ClusterRemovalInfo &other)