CMS 3D CMS Logo

MeasurementTrackerEvent.h
Go to the documentation of this file.
1 #ifndef MeasurementTrackerEvent_H
2 #define MeasurementTrackerEvent_H
3 
4 #include <vector>
13 
15 
17 public:
19 
23 
28  const Phase2OTMeasurementDetSet *phase2OT,
31  const std::vector<bool> &stripClustersToSkip,
32  const std::vector<bool> &pixelClustersToSkip,
33  const std::vector<bool> &phase2OTClustersToSkip)
34  : theTracker(&tracker),
37  thePhase2OTData(phase2OT),
40  theOwner(true),
44 
49 
50  //FIXME:just temporary solution for phase2!
52  const MeasurementTrackerEvent &trackerEvent,
53  const edm::ContainerMask<edmNew::DetSetVector<SiPixelCluster> > &phase2pixelClustersToSkip,
55 
60 
61  const MeasurementTracker &measurementTracker() const { return *theTracker; }
62  const StMeasurementDetSet &stripData() const { return *theStripData; }
63  const PxMeasurementDetSet &pixelData() const { return *thePixelData; }
67  const std::vector<bool> &stripClustersToSkip() const { return theStripClustersToSkip; }
68  const std::vector<bool> &pixelClustersToSkip() const { return thePixelClustersToSkip; }
69  const std::vector<bool> &phase2OTClustersToSkip() const { return thePhase2OTClustersToSkip; }
70 
71  // forwarded calls
74 
76  MeasurementDetWithData idToDet(const DetId &id) const { return measurementTracker().idToDet(id, *this); }
77 
78 private:
79  const MeasurementTracker *theTracker = nullptr;
85  bool theOwner = false; // do I own the tree above?
86  // these could be const pointers as well, but ContainerMask doesn't expose the vector
87  std::vector<bool> theStripClustersToSkip;
88  std::vector<bool> thePixelClustersToSkip;
89  std::vector<bool> thePhase2OTClustersToSkip;
90 };
91 
92 #endif // MeasurementTrackerEvent_H
const VectorHitCollection * thePhase2OTVectorHits
const std::vector< bool > & stripClustersToSkip() const
const PxMeasurementDetSet & pixelData() const
const VectorHitCollection * thePhase2OTVectorHitsRej
MeasurementDetWithData idToDet(const DetId &id) const
Previous MeasurementDetSystem interface.
std::vector< bool > thePhase2OTClustersToSkip
MeasurementTrackerEvent()
Dummy constructor used for I/O (even if it&#39;s a transient object)
const StMeasurementDetSet & stripData() const
const GeometricSearchTracker * geometricSearchTracker() const
const StMeasurementDetSet * theStripData
const PxMeasurementDetSet * thePixelData
const VectorHitCollection & phase2OTVectorHits() const
const TrackerGeometry * geomTracker() const
const Phase2OTMeasurementDetSet & phase2OTData() const
std::vector< bool > theStripClustersToSkip
MeasurementDetWithData idToDet(const DetId &id, const MeasurementTrackerEvent &data) const override=0
MeasurementDetSystem interface.
MeasurementTrackerEvent & operator=(const MeasurementTrackerEvent &other)=delete
MeasurementTrackerEvent(const MeasurementTracker &tracker, const StMeasurementDetSet *strips, const PxMeasurementDetSet *pixels, const Phase2OTMeasurementDetSet *phase2OT, const VectorHitCollection *phase2OTVectorHits, const VectorHitCollection *phase2OTVectorHitsRej, const std::vector< bool > &stripClustersToSkip, const std::vector< bool > &pixelClustersToSkip, const std::vector< bool > &phase2OTClustersToSkip)
Real constructor 1: with the full data (owned)
const std::vector< bool > & pixelClustersToSkip() const
Definition: DetId.h:17
const VectorHitCollection & phase2OTVectorHitsRej() const
const std::vector< bool > & phase2OTClustersToSkip() const
const GeometricSearchTracker * geometricSearchTracker() const
const Phase2OTMeasurementDetSet * thePhase2OTData
const MeasurementTracker & measurementTracker() 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 MeasurementTracker * theTracker
std::vector< bool > thePixelClustersToSkip
const TrackerGeometry * geomTracker() const