CMS 3D CMS Logo

SiPixelCalibDigiProducer.h
Go to the documentation of this file.
1 #ifndef CALIBTRACKER_SIPIXELCALIBDIGIPRODUCER_H
2 #define CALIBTRACKER_SIPIXELCALIBDIGIPRODUCER_H
3 
4 //
5 // Package: SiPixelCalibDigiProducer
6 // Class: SiPixelCalibDigiProducer
7 //
15 //
16 // Original Author: Freya Blekman
17 // Created: Wed Oct 31 15:28:52 CET 2007
18 //
19 //
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
29 
31 
34 
36 
41 
47 
48 #include <map>
49 #include <vector>
50 #include <iostream>
51 //
52 // class decleration
53 //
54 
56 public:
57  explicit SiPixelCalibDigiProducer(const edm::ParameterSet& iConfig);
58  ~SiPixelCalibDigiProducer() override;
59 
60 private:
61  void produce(edm::Event& iEvent, const edm::EventSetup& iSetup) override;
62  virtual bool store();
63  virtual void setPattern();
64  virtual void fill(edm::Event& iEvent, const edm::EventSetup& iSetup);
65  virtual void fillPixel(uint32_t detid, short row, short col, short ipoint, short adc);
66  virtual bool checkPixel(uint32_t detid, short row, short col);
67  virtual bool checkFED(uint32_t detid);
68  virtual void clear();
69  typedef std::pair<uint32_t, std::pair<short, short>> pixelstruct;
70  // ----------member data ---------------------------
73  uint32_t iEventCounter_;
74 
78  int errorType;
84 
85  edm::ESHandle<SiPixelCalibConfiguration> calib_; // keeps track of the calibration constants
88 
92 
93  // worker variables
94  std::map<pixelstruct, SiPixelCalibDigi>
95  intermediate_data_; // data container, copied over into the event every pattern_repeat_ events
96  std::map<pixelstruct, SiPixelCalibDigiError> error_data_;
97  // std::vector<SiPixelCalibDigi> intermediate_data_; // data container, copied over into the event every pattern_repeat_ events
98  std::vector<pixelstruct> detPixelMap_; // map to keep track of which pixels are filled where in intermediate_data_
99  uint32_t pattern_repeat_; // keeps track of when the pattern should change
100  std::map<uint32_t, uint32_t> detid_to_fedid_; // keeps track in which fed each detid is present.
101 
102  std::vector<std::pair<short, short>> currentpattern_; // keeps track of which pattern we are at
103  std::pair<short, short> currentpair_; //worker class to keep track of pairs
104 };
105 
106 #endif
SiPixelCalibDigiProducer::detid_to_fedid_
std::map< uint32_t, uint32_t > detid_to_fedid_
Definition: SiPixelCalibDigiProducer.h:100
SiPixelCalibDigiProducer::error_data_
std::map< pixelstruct, SiPixelCalibDigiError > error_data_
Definition: SiPixelCalibDigiProducer.h:96
TrackerGeometry.h
EDProducer.h
edm::EDGetTokenT
Definition: EDGetToken.h:33
gpuClustering::adc
uint16_t *__restrict__ uint16_t const *__restrict__ adc
Definition: gpuClusterChargeCut.h:20
cuy.col
col
Definition: cuy.py:1009
SiPixelCalibDigiProducer::theGeometry_
edm::ESHandle< TrackerGeometry > theGeometry_
Definition: SiPixelCalibDigiProducer.h:86
SiPixelCalibDigiProducer::iEventCounter_
uint32_t iEventCounter_
Definition: SiPixelCalibDigiProducer.h:73
SiPixelFedCablingMap.h
SiPixelCalibDigiProducer::includeErrors_
bool includeErrors_
Definition: SiPixelCalibDigiProducer.h:77
PixelDigi.h
SiPixelCalibDigiProducer::fill
virtual void fill(edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition: SiPixelCalibDigiProducer.cc:96
SiPixelCalibDigiProducer::checkFED
virtual bool checkFED(uint32_t detid)
Definition: SiPixelCalibDigiProducer.cc:120
SiPixelCalibDigifwd.h
SiPixelCalibConfiguration.h
SiPixelCalibDigiProducer::setPattern
virtual void setPattern()
Definition: SiPixelCalibDigiProducer.cc:199
MakerMacros.h
SiPixelCalibDigiProducer::trackerGeomToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomToken_
Definition: SiPixelCalibDigiProducer.h:90
SiPixelCalibDigiProducer::instance_
std::string instance_
Definition: SiPixelCalibDigiProducer.h:81
SiPixelCalibDigiProducer::checkPixel
virtual bool checkPixel(uint32_t detid, short row, short col)
Definition: SiPixelCalibDigiProducer.cc:309
Service.h
edm::ESHandle< SiPixelCalibConfiguration >
plotBeamSpotDB.ipoint
ipoint
Definition: plotBeamSpotDB.py:340
SiPixelCalibDigiProducer::label_
std::string label_
Definition: SiPixelCalibDigiProducer.h:80
SiPixelCalibDigiProducer::intermediate_data_
std::map< pixelstruct, SiPixelCalibDigi > intermediate_data_
Definition: SiPixelCalibDigiProducer.h:95
SiPixelCalibDigiError.h
SiPixelCalibDigiProducer::src_
edm::InputTag src_
Definition: SiPixelCalibDigiProducer.h:71
SiPixelCalibDigiProducer::currentpattern_
std::vector< std::pair< short, short > > currentpattern_
Definition: SiPixelCalibDigiProducer.h:102
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
SiPixelCalibConfigurationRcd.h
SiPixelFedCablingMapRcd.h
SiPixelCalibDigiProducer::ignore_non_pattern_
bool ignore_non_pattern_
Definition: SiPixelCalibDigiProducer.h:75
SiPixelCalibDigiProducer::calibToken_
edm::ESGetToken< SiPixelCalibConfiguration, SiPixelCalibConfigurationRcd > calibToken_
Definition: SiPixelCalibDigiProducer.h:89
SiPixelCalibDigiProducer::errorType
int errorType
Definition: SiPixelCalibDigiProducer.h:78
iEvent
int iEvent
Definition: GenABIO.cc:224
SiPixelCalibDigiProducer::SiPixelCalibDigiProducer
SiPixelCalibDigiProducer(const edm::ParameterSet &iConfig)
Definition: SiPixelCalibDigiProducer.cc:47
SiPixelCalibDigiProducer::store
virtual bool store()
Definition: SiPixelCalibDigiProducer.cc:82
SiPixelCalibDigi.h
SiPixelCalibDigiProducer::calib_
edm::ESHandle< SiPixelCalibConfiguration > calib_
Definition: SiPixelCalibDigiProducer.h:85
SiPixelCalibDigiProducer::currentpair_
std::pair< short, short > currentpair_
Definition: SiPixelCalibDigiProducer.h:103
SiPixelCalibDigiProducer::conf_
edm::ParameterSet conf_
Definition: SiPixelCalibDigiProducer.h:79
edm::EventSetup
Definition: EventSetup.h:58
SiPixelCalibDigiProducer::theCablingMap_
edm::ESHandle< SiPixelFedCablingMap > theCablingMap_
Definition: SiPixelCalibDigiProducer.h:87
DetSetVector.h
SiPixelCalibDigiProducer::produce
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition: SiPixelCalibDigiProducer.cc:253
SiPixelCalibDigiProducer::use_realeventnumber_
bool use_realeventnumber_
Definition: SiPixelCalibDigiProducer.h:83
edm::ESGetToken< SiPixelCalibConfiguration, SiPixelCalibConfigurationRcd >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
InputTag.h
SiPixelCalibDigiProducer::cablingMapToken_
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > cablingMapToken_
Definition: SiPixelCalibDigiProducer.h:91
Frameworkfwd.h
SiPixelCalibDigiProducer::~SiPixelCalibDigiProducer
~SiPixelCalibDigiProducer() override
Definition: SiPixelCalibDigiProducer.cc:70
edm::EDProducer
Definition: EDProducer.h:35
SiPixelCalibDigiProducer::clear
virtual void clear()
Definition: SiPixelCalibDigiProducer.cc:172
SiPixelCalibDigiProducer
Definition: SiPixelCalibDigiProducer.h:55
SiPixelCalibDigiProducer::pattern_repeat_
uint32_t pattern_repeat_
Definition: SiPixelCalibDigiProducer.h:99
SiPixelCalibDigiProducer::pixelstruct
std::pair< uint32_t, std::pair< short, short > > pixelstruct
Definition: SiPixelCalibDigiProducer.h:69
SiPixelCalibDigiProducer::detPixelMap_
std::vector< pixelstruct > detPixelMap_
Definition: SiPixelCalibDigiProducer.h:98
SiPixelCalibDigiProducer::number_of_pixels_per_pattern_
uint32_t number_of_pixels_per_pattern_
Definition: SiPixelCalibDigiProducer.h:82
SiPixelCalibDigiProducer::tPixelDigi
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > tPixelDigi
Definition: SiPixelCalibDigiProducer.h:72
ParameterSet.h
SiPixelCalibDigiProducer::control_pattern_size_
bool control_pattern_size_
Definition: SiPixelCalibDigiProducer.h:76
edm::Event
Definition: Event.h:73
SiPixelCalibDigiProducer::fillPixel
virtual void fillPixel(uint32_t detid, short row, short col, short ipoint, short adc)
Definition: SiPixelCalibDigiProducer.cc:141
edm::InputTag
Definition: InputTag.h:15