CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiStripRawProcessingAlgorithms.h
Go to the documentation of this file.
1 #ifndef RecoLocalTracker_SiStripZeroSuppression_SiStripRawProcessingAlgorithms_h
2 #define RecoLocalTracker_SiStripZeroSuppression_SiStripRawProcessingAlgorithms_h
3 
8 
11 
14 
17 
18 public:
20 
21  void initialize(const edm::EventSetup&);
22  void initialize(const edm::EventSetup&, const edm::Event&);
23 
24  uint16_t suppressHybridData(const edm::DetSet<SiStripDigi>& inDigis,
25  edm::DetSet<SiStripDigi>& suppressedDigis,
26  uint16_t firstAPV = 0);
27 
28  uint16_t suppressVirginRawData(uint32_t detId,
29  uint16_t firstAPV,
30  digivector_t& procRawDigis,
33 
34  uint16_t suppressProcessedRawData(uint32_t detId,
35  uint16_t firstAPV,
36  digivector_t& procRawDigis,
39 
40  uint16_t convertVirginRawToHybrid(uint32_t detId,
41  uint16_t firstAPV,
42  digivector_t& inDigis,
43  edm::DetSet<SiStripDigi>& rawDigis);
45  edm::DetSet<SiStripDigi>& suppressedDigis);
46 
47  inline const std::vector<bool>& getAPVFlags() const { return restorer->getAPVFlags(); }
48  inline const SiStripAPVRestorer::baselinemap_t& getBaselineMap() const { return restorer->getBaselineMap(); }
49  inline const std::map<uint16_t, SiStripAPVRestorer::digimap_t>& getSmoothedPoints() const {
50  return restorer->getSmoothedPoints();
51  }
52  inline const SiStripAPVRestorer::medians_t& getAPVsCM() const { return subtractorCMN->getAPVsCM(); }
53 
54  const std::unique_ptr<SiStripPedestalsSubtractor> subtractorPed;
55  const std::unique_ptr<SiStripCommonModeNoiseSubtractor> subtractorCMN;
56  const std::unique_ptr<SiStripFedZeroSuppression> suppressor;
57  const std::unique_ptr<SiStripAPVRestorer> restorer;
58 
59 private:
60  const bool doAPVRestore;
61  const bool useCMMeanMap;
62 
65 
67  std::unique_ptr<SiStripPedestalsSubtractor> ped,
68  std::unique_ptr<SiStripCommonModeNoiseSubtractor> cmn,
69  std::unique_ptr<SiStripFedZeroSuppression> zs,
70  std::unique_ptr<SiStripAPVRestorer> res,
71  bool doAPVRest,
72  bool useCMMap);
73 };
74 #endif
uint16_t suppressVirginRawData(uint32_t detId, uint16_t firstAPV, digivector_t &procRawDigis, edm::DetSet< SiStripDigi > &output)
const std::unique_ptr< SiStripPedestalsSubtractor > subtractorPed
uint16_t suppressProcessedRawData(uint32_t detId, uint16_t firstAPV, digivector_t &procRawDigis, edm::DetSet< SiStripDigi > &output)
SiStripAPVRestorer::digivector_t digivector_t
uint16_t convertVirginRawToHybrid(uint32_t detId, uint16_t firstAPV, digivector_t &inDigis, edm::DetSet< SiStripDigi > &rawDigis)
SiStripRawProcessingAlgorithms(edm::ConsumesCollector iC, std::unique_ptr< SiStripPedestalsSubtractor > ped, std::unique_ptr< SiStripCommonModeNoiseSubtractor > cmn, std::unique_ptr< SiStripFedZeroSuppression > zs, std::unique_ptr< SiStripAPVRestorer > res, bool doAPVRest, bool useCMMap)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
const std::unique_ptr< SiStripAPVRestorer > restorer
const std::unique_ptr< SiStripCommonModeNoiseSubtractor > subtractorCMN
std::map< uint16_t, digivector_t > baselinemap_t
std::vector< std::pair< short, float >> medians_t
const std::map< uint16_t, SiStripAPVRestorer::digimap_t > & getSmoothedPoints() const
const std::unique_ptr< SiStripFedZeroSuppression > suppressor
const std::vector< bool > & getAPVFlags() const
std::vector< digi_t > digivector_t
void initialize(const edm::EventSetup &)
const SiStripAPVRestorer::medians_t & getAPVsCM() const
const SiStripAPVRestorer::baselinemap_t & getBaselineMap() const
uint16_t suppressHybridData(const edm::DetSet< SiStripDigi > &inDigis, edm::DetSet< SiStripDigi > &suppressedDigis, uint16_t firstAPV=0)