CMS 3D CMS Logo

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
SiStripRawProcessingAlgorithms::subtractorPed
const std::unique_ptr< SiStripPedestalsSubtractor > subtractorPed
Definition: SiStripRawProcessingAlgorithms.h:54
SiStripRawProcessingAlgorithms::initialize
void initialize(const edm::EventSetup &)
Definition: SiStripRawProcessingAlgorithms.cc:29
StripGeomDetUnit.h
SiStripRawProcessingAlgorithms
Definition: SiStripRawProcessingAlgorithms.h:15
TrackerGeometry.h
edm::DetSet< SiStripDigi >
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
SiStripRawProcessingFactory
Definition: SiStripRawProcessingFactory.h:15
SiStripCommonModeNoiseSubtractor.h
SiStripRawProcessingAlgorithms::convertVirginRawToHybrid
uint16_t convertVirginRawToHybrid(uint32_t detId, uint16_t firstAPV, digivector_t &inDigis, edm::DetSet< SiStripDigi > &rawDigis)
Definition: SiStripRawProcessingAlgorithms.cc:203
SiStripRawProcessingAlgorithms::trGeo
const TrackerGeometry * trGeo
Definition: SiStripRawProcessingAlgorithms.h:64
SiStripRawProcessingAlgorithms::suppressProcessedRawData
uint16_t suppressProcessedRawData(uint32_t detId, uint16_t firstAPV, digivector_t &procRawDigis, edm::DetSet< SiStripDigi > &output)
Definition: SiStripRawProcessingAlgorithms.cc:151
SiStripRawProcessingAlgorithms::tkGeomToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
Definition: SiStripRawProcessingAlgorithms.h:63
SiStripRawProcessingAlgorithms::suppressHybridData
uint16_t suppressHybridData(const edm::DetSet< SiStripDigi > &inDigis, edm::DetSet< SiStripDigi > &suppressedDigis, uint16_t firstAPV=0)
Definition: SiStripRawProcessingAlgorithms.cc:58
SiStripFedZeroSuppression.h
SiStripRawProcessingAlgorithms::suppressor
const std::unique_ptr< SiStripFedZeroSuppression > suppressor
Definition: SiStripRawProcessingAlgorithms.h:56
SiStripRawProcessingAlgorithms::getBaselineMap
const SiStripAPVRestorer::baselinemap_t & getBaselineMap() const
Definition: SiStripRawProcessingAlgorithms.h:48
SiStripRawProcessingAlgorithms::suppressVirginRawData
uint16_t suppressVirginRawData(uint32_t detId, uint16_t firstAPV, digivector_t &procRawDigis, edm::DetSet< SiStripDigi > &output)
Definition: SiStripRawProcessingAlgorithms.cc:111
SiStripRawProcessingAlgorithms::SiStripRawProcessingAlgorithms
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)
Definition: SiStripRawProcessingAlgorithms.cc:14
SiStripAPVRestorer::baselinemap_t
std::map< uint16_t, digivector_t > baselinemap_t
Definition: SiStripAPVRestorer.h:38
SiStripRawProcessingAlgorithms::getAPVFlags
const std::vector< bool > & getAPVFlags() const
Definition: SiStripRawProcessingAlgorithms.h:47
SiStripRawProcessingAlgorithms::digivector_t
SiStripAPVRestorer::digivector_t digivector_t
Definition: SiStripRawProcessingAlgorithms.h:19
SiStripRawProcessingAlgorithms::getSmoothedPoints
const std::map< uint16_t, SiStripAPVRestorer::digimap_t > & getSmoothedPoints() const
Definition: SiStripRawProcessingAlgorithms.h:49
SiStripRawProcessingAlgorithms::useCMMeanMap
const bool useCMMeanMap
Definition: SiStripRawProcessingAlgorithms.h:61
edm::EventSetup
Definition: EventSetup.h:57
SiStripAPVRestorer::digivector_t
std::vector< digi_t > digivector_t
Definition: SiStripAPVRestorer.h:35
DetSetVector.h
res
Definition: Electron.h:6
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord >
SiStripRawProcessingAlgorithms::restorer
const std::unique_ptr< SiStripAPVRestorer > restorer
Definition: SiStripRawProcessingAlgorithms.h:57
DetSet.h
SiStripPedestalsSubtractor.h
SiStripRawProcessingAlgorithms::subtractorCMN
const std::unique_ptr< SiStripCommonModeNoiseSubtractor > subtractorCMN
Definition: SiStripRawProcessingAlgorithms.h:55
SiStripRawProcessingAlgorithms::getAPVsCM
const SiStripAPVRestorer::medians_t & getAPVsCM() const
Definition: SiStripRawProcessingAlgorithms.h:52
edm::Event
Definition: Event.h:73
SiStripAPVRestorer::medians_t
std::vector< std::pair< short, float > > medians_t
Definition: SiStripAPVRestorer.h:37
SiStripRawProcessingAlgorithms::doAPVRestore
const bool doAPVRestore
Definition: SiStripRawProcessingAlgorithms.h:60
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
SiStripAPVRestorer.h
TrackerGeometry
Definition: TrackerGeometry.h:14