CMS 3D CMS Logo

SiStripRecHitConverterAlgorithm.h
Go to the documentation of this file.
1 #ifndef SiStripRecHitConverterAlgorithm_h
2 #define SiStripRecHitConverterAlgorithm_h
3 
9 
14 
15 namespace edm {
16  class ConsumesCollector;
17  class ParameterSet;
19  class EventSetup;
20 } // namespace edm
22 class TkStripCPERecord;
23 class SiStripQualityRcd;
24 
26 public:
27  struct products {
28  std::unique_ptr<SiStripMatchedRecHit2DCollection> matched;
29  std::unique_ptr<SiStripRecHit2DCollection> rphi, stereo, rphiUnmatched, stereoUnmatched;
36 
37  void shrink_to_fit() {
38  matched->shrink_to_fit();
39  rphi->shrink_to_fit();
40  stereo->shrink_to_fit();
41  rphiUnmatched->shrink_to_fit();
42  stereoUnmatched->shrink_to_fit();
43  }
44  };
45 
47  void initialize(const edm::EventSetup&);
50 
52 
53 private:
54  void match(products& output, LocalVector trackdirection) const;
55  void fillBad128StripBlocks(const uint32_t detid, bool bad128StripBlocks[6]) const;
56  bool isMasked(const SiStripCluster& cluster, bool bad128StripBlocks[6]) const;
57  bool useModule(const uint32_t id) const;
58 
64  const TrackerGeometry* tracker = nullptr;
66  const SiStripRecHitMatcher* matcher = nullptr;
67  const SiStripQuality* quality = nullptr;
68 
70 };
71 
72 #endif
Vector3DBase< float, LocalTag >
SiStripRecHitConverterAlgorithm::parameterestimator
const StripClusterParameterEstimator * parameterestimator
Definition: SiStripRecHitConverterAlgorithm.h:65
Handle.h
input
static const std::string input
Definition: EdmProvDump.cc:48
TrackerGeometry.h
SiStripRecHitConverterAlgorithm::initialize
void initialize(const edm::EventSetup &)
Definition: SiStripRecHitConverterAlgorithm.cc:42
SiStripRecHitConverterAlgorithm::cpeToken
edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecord > cpeToken
Definition: SiStripRecHitConverterAlgorithm.h:61
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
SiStripMatchedRecHit2DCollection.h
SiStripRecHitConverterAlgorithm::products::matched
std::unique_ptr< SiStripMatchedRecHit2DCollection > matched
Definition: SiStripRecHitConverterAlgorithm.h:28
SiStripRecHitConverterAlgorithm::products::rphi
std::unique_ptr< SiStripRecHit2DCollection > rphi
Definition: SiStripRecHitConverterAlgorithm.h:29
edm
HLT enums.
Definition: AlignableModifier.h:19
TkStripCPERecord
Definition: TkStripCPERecord.h:13
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
SiStripRecHitConverterAlgorithm::run
void run(edm::Handle< edmNew::DetSetVector< SiStripCluster > > input, products &output)
Definition: SiStripRecHitConverterAlgorithm.cc:53
SiStripRecHitConverterAlgorithm::useModule
bool useModule(const uint32_t id) const
Definition: SiStripRecHitConverterAlgorithm.cc:312
SiStripRecHitConverterAlgorithm::maskBad128StripBlocks
bool maskBad128StripBlocks
Definition: SiStripRecHitConverterAlgorithm.h:59
edm::Handle
Definition: AssociativeIterator.h:50
ESGetToken.h
SiStripRecHitConverterAlgorithm::match
void match(products &output, LocalVector trackdirection) const
Definition: SiStripRecHitConverterAlgorithm.cc:147
edm::es::products
ESProducts< std::remove_reference_t< TArgs >... > products(TArgs &&... args)
Definition: ESProducts.h:128
StripClusterParameterEstimator
Definition: StripClusterParameterEstimator.h:25
SiStripRecHitConverterAlgorithm::products::stereo
std::unique_ptr< SiStripRecHit2DCollection > stereo
Definition: SiStripRecHitConverterAlgorithm.h:29
SiStripQualityRcd
Definition: SiStripDependentRecords.h:51
TrackerDigiGeometryRecord
Definition: TrackerDigiGeometryRecord.h:16
SiStripRecHitConverterAlgorithm::products
Definition: SiStripRecHitConverterAlgorithm.h:27
SiStripRecHitConverterAlgorithm::products::stereoUnmatched
std::unique_ptr< SiStripRecHit2DCollection > stereoUnmatched
Definition: SiStripRecHitConverterAlgorithm.h:29
SiStripRecHitConverterAlgorithm::products::products
products()
Definition: SiStripRecHitConverterAlgorithm.h:30
SiStripRecHitConverterAlgorithm::qualityToken
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > qualityToken
Definition: SiStripRecHitConverterAlgorithm.h:63
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
SiStripRecHitConverterAlgorithm::SiStripRecHitConverterAlgorithm
SiStripRecHitConverterAlgorithm(const edm::ParameterSet &, edm::ConsumesCollector)
Definition: SiStripRecHitConverterAlgorithm.cc:16
SiStripRecHitConverterAlgorithm::products::shrink_to_fit
void shrink_to_fit()
Definition: SiStripRecHitConverterAlgorithm.h:37
SiStripRecHit2DCollection.h
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord >
SiStripRecHitConverterAlgorithm::products::rphiUnmatched
std::unique_ptr< SiStripRecHit2DCollection > rphiUnmatched
Definition: SiStripRecHitConverterAlgorithm.h:29
SiStripRecHitConverterAlgorithm::quality
const SiStripQuality * quality
Definition: SiStripRecHitConverterAlgorithm.h:67
SiStripRecHitConverterAlgorithm::matcherToken
edm::ESGetToken< SiStripRecHitMatcher, TkStripCPERecord > matcherToken
Definition: SiStripRecHitConverterAlgorithm.h:62
SiStripRecHitMatcher.h
edmNew::DetSetVector
Definition: DetSetNew.h:13
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
SiStripRecHitConverterAlgorithm::useQuality
bool useQuality
Definition: SiStripRecHitConverterAlgorithm.h:59
SiStripQuality.h
ParameterSetDescription
StripClusterParameterEstimator.h
SiStripRecHitConverterAlgorithm::fillPSetDescription
static void fillPSetDescription(edm::ParameterSetDescription &desc)
Definition: SiStripRecHitConverterAlgorithm.cc:33
edmNew::DetSetVector::FastFiller
Definition: DetSetVectorNew.h:202
SiStripRecHitConverterAlgorithm::matcher
const SiStripRecHitMatcher * matcher
Definition: SiStripRecHitConverterAlgorithm.h:66
EventSetup
SiStripRecHitConverterAlgorithm::isMasked
bool isMasked(const SiStripCluster &cluster, bool bad128StripBlocks[6]) const
Definition: SiStripRecHitConverterAlgorithm.cc:295
SiStripRecHitMatcher
Definition: SiStripRecHitMatcher.h:24
LocalVector.h
SiStripCluster
Definition: SiStripCluster.h:8
SiStripRecHitConverterAlgorithm::tracker
const TrackerGeometry * tracker
Definition: SiStripRecHitConverterAlgorithm.h:64
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
SiStripRecHitConverterAlgorithm::trackerToken
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerToken
Definition: SiStripRecHitConverterAlgorithm.h:60
SiStripRecHitConverterAlgorithm::Collector
SiStripRecHit2DCollection::FastFiller Collector
Definition: SiStripRecHitConverterAlgorithm.h:69
SiStripRecHitConverterAlgorithm::fillBad128StripBlocks
void fillBad128StripBlocks(const uint32_t detid, bool bad128StripBlocks[6]) const
Definition: SiStripRecHitConverterAlgorithm.cc:279
SiStripRecHitConverterAlgorithm
Definition: SiStripRecHitConverterAlgorithm.h:25
SiStripRecHitConverterAlgorithm::doMatching
bool doMatching
Definition: SiStripRecHitConverterAlgorithm.h:59
TrackerGeometry
Definition: TrackerGeometry.h:14
SiStripQuality
Definition: SiStripQuality.h:32