CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
SiPixelRawToDigi Class Reference

#include <SiPixelRawToDigi.h>

Inheritance diagram for SiPixelRawToDigi:
edm::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void produce (edm::Event &, const edm::EventSetup &) override
 get data, convert to digis attach againe to Event More...
 
 SiPixelRawToDigi (const edm::ParameterSet &)
 ctor More...
 
 ~SiPixelRawToDigi () override
 dtor More...
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
- Public Member Functions inherited from edm::stream::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
virtual ~ProducerBase () noexcept(false)
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Attributes

const SiPixelQualitybadPixelInfo_
 
std::unique_ptr< SiPixelFedCablingTreecabling_
 
std::string cablingMapLabel
 
edm::ParameterSet config_
 
bool debug
 
std::vector< unsigned int > fedIds
 
TH1D * hCPU
 
TH1D * hDigi
 
bool includeErrors
 
edm::InputTag label
 
int ndigis
 
int nwords
 
edm::ESWatcher< SiPixelQualityRcdqualityWatcher
 
edm::ESWatcher< SiPixelFedCablingMapRcdrecordWatcher
 
PixelUnpackingRegionsregions_
 
edm::EDGetTokenT< FEDRawDataCollectiontFEDRawDataCollection
 
std::unique_ptr< edm::CPUTimertheTimer
 
std::vector< int > tkerrorlist
 
bool usePhase1
 
bool usePilotBlade
 
bool useQuality
 
std::vector< int > usererrorlist
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDProducerBase
typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 26 of file SiPixelRawToDigi.h.

Constructor & Destructor Documentation

SiPixelRawToDigi::SiPixelRawToDigi ( const edm::ParameterSet conf)
explicit

ctor

Definition at line 45 of file SiPixelRawToDigi.cc.

References cablingMapLabel, config_, edm::EDConsumerBase::consumesCollector(), edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), edm::ParameterSet::getUntrackedParameter(), hCPU, hDigi, includeErrors, ndigis, nwords, regions_, AlCaHLTBitMon_QueryRunRegistry::string, tFEDRawDataCollection, theTimer, tkerrorlist, usePhase1, usePilotBlade, useQuality, and usererrorlist.

46  : config_(conf),
47  badPixelInfo_(nullptr),
48  regions_(nullptr),
49  hCPU(nullptr), hDigi(nullptr)
50 {
51 
52  includeErrors = config_.getParameter<bool>("IncludeErrors");
53  useQuality = config_.getParameter<bool>("UseQualityInfo");
54  if (config_.exists("ErrorList")) {
55  tkerrorlist = config_.getParameter<std::vector<int> > ("ErrorList");
56  }
57  if (config_.exists("UserErrorList")) {
58  usererrorlist = config_.getParameter<std::vector<int> > ("UserErrorList");
59  }
60  tFEDRawDataCollection = consumes <FEDRawDataCollection> (config_.getParameter<edm::InputTag>("InputLabel"));
61 
62  //start counters
63  ndigis = 0;
64  nwords = 0;
65 
66  // Products
67  produces< edm::DetSetVector<PixelDigi> >();
68  if(includeErrors){
69  produces< edm::DetSetVector<SiPixelRawDataError> >();
70  produces<DetIdCollection>();
71  produces<DetIdCollection>("UserErrorModules");
72  produces<edmNew::DetSetVector<PixelFEDChannel> >();
73  }
74 
75  // regions
76  if (config_.exists("Regions")) {
77  if(!config_.getParameter<edm::ParameterSet>("Regions").getParameterNames().empty())
78  {
80  }
81  }
82 
83  // Timing
84  bool timing = config_.getUntrackedParameter<bool>("Timing",false);
85  if (timing) {
86  theTimer.reset( new edm::CPUTimer );
87  hCPU = new TH1D ("hCPU","hCPU",100,0.,0.050);
88  hDigi = new TH1D("hDigi","hDigi",50,0.,15000.);
89  }
90 
91  // Control the usage of pilot-blade data, FED=40
92  usePilotBlade = false;
93  if (config_.exists("UsePilotBlade")) {
94  usePilotBlade = config_.getParameter<bool> ("UsePilotBlade");
95  if(usePilotBlade) edm::LogInfo("SiPixelRawToDigi") << " Use pilot blade data (FED 40)";
96  }
97 
98  // Control the usage of phase1
99  usePhase1 = false;
100  if (config_.exists("UsePhase1")) {
101  usePhase1 = config_.getParameter<bool> ("UsePhase1");
102  if(usePhase1) edm::LogInfo("SiPixelRawToDigi") << " Using phase1";
103  }
104  //CablingMap could have a label //Tav
105  cablingMapLabel = config_.getParameter<std::string> ("CablingMapLabel");
106 
107 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< edm::CPUTimer > theTimer
bool exists(std::string const &parameterName) const
checks if a parameter exists
std::vector< int > usererrorlist
std::string cablingMapLabel
PixelUnpackingRegions * regions_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::EDGetTokenT< FEDRawDataCollection > tFEDRawDataCollection
std::vector< std::string > getParameterNames() const
std::vector< int > tkerrorlist
edm::ParameterSet config_
const SiPixelQuality * badPixelInfo_
SiPixelRawToDigi::~SiPixelRawToDigi ( )
override

dtor

Definition at line 111 of file SiPixelRawToDigi.cc.

References hCPU, hDigi, regions_, indexGen::rootFile, and theTimer.

111  {
112  edm::LogInfo("SiPixelRawToDigi") << " HERE ** SiPixelRawToDigi destructor!";
113 
114  if (regions_) delete regions_;
115 
116  if (theTimer) {
117  TFile rootFile("analysis.root", "RECREATE", "my histograms");
118  hCPU->Write();
119  hDigi->Write();
120  }
121 
122 }
std::unique_ptr< edm::CPUTimer > theTimer
PixelUnpackingRegions * regions_

Member Function Documentation

void SiPixelRawToDigi::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 125 of file SiPixelRawToDigi.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptional(), edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.

125  {
127  desc.add<bool>("IncludeErrors",true);
128  desc.add<bool>("UseQualityInfo",false);
129  {
130  std::vector<int> temp1;
131  temp1.reserve(1);
132  temp1.push_back(29);
133  desc.add<std::vector<int> >("ErrorList",temp1)->setComment("## ErrorList: list of error codes used by tracking to invalidate modules");
134  }
135  {
136  std::vector<int> temp1;
137  temp1.reserve(1);
138  temp1.push_back(40);
139  desc.add<std::vector<int> >("UserErrorList",temp1)->setComment("## UserErrorList: list of error codes used by Pixel experts for investigation");
140  }
141  desc.add<edm::InputTag>("InputLabel",edm::InputTag("siPixelRawData"));
142  {
144  psd0.addOptional<std::vector<edm::InputTag>>("inputs");
145  psd0.addOptional<std::vector<double>>("deltaPhi");
146  psd0.addOptional<std::vector<double>>("maxZ");
147  psd0.addOptional<edm::InputTag>("beamSpot");
148  desc.add<edm::ParameterSetDescription>("Regions",psd0)->setComment("## Empty Regions PSet means complete unpacking");
149  }
150  desc.addUntracked<bool>("Timing",false);
151  desc.add<bool>("UsePilotBlade",false)->setComment("## Use pilot blades");
152  desc.add<bool>("UsePhase1",false)->setComment("## Use phase1");
153  desc.add<std::string>("CablingMapLabel","")->setComment("CablingMap label"); //Tav
154  desc.addOptional<bool>("CheckPixelOrder"); // never used, kept for back-compatibility
155  descriptions.add("siPixelRawToDigi",desc);
156 }
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void SiPixelRawToDigi::produce ( edm::Event ev,
const edm::EventSetup es 
)
override

get data, convert to digis attach againe to Event

Definition at line 162 of file SiPixelRawToDigi.cc.

References badPixelInfo_, cabling_, cablingMapLabel, SiPixelFedCablingMap::cablingTree(), edm::ESWatcher< T >::check(), universalConfigTemplate::collection, edm::DetSet< T >::data, debug, edm::MessageDrop::debugEnabled, benchmark_cfg::errors, FEDRawDataCollection::FEDData(), l1t::stage2::layer2::fedId, SiPixelFedCablingMap::fedIds(), fedIds, spr::find(), edm::EventSetup::get(), edm::Event::getByToken(), hCPU, hDigi, sipixelobjects::PixelROC::idInDetUnit(), includeErrors, edm::MessageDrop::instance(), LogDebug, PixelUnpackingRegions::mayUnpackFED(), PixelUnpackingRegions::modulesToUnpack(), eostools::move(), PixelUnpackingRegions::nBarrelModules(), ndigis, PixelUnpackingRegions::nFEDs(), PixelUnpackingRegions::nForwardModules(), PixelUnpackingRegions::nModules(), sipixelobjects::PixelFEDLink::numberOfROCs(), nwords, edm::ESHandle< T >::product(), edm::Event::put(), qualityWatcher, recordWatcher, regions_, sipixelobjects::PixelFEDLink::roc(), PixelFEDChannel::roc_first, PixelFEDChannel::roc_last, PixelUnpackingRegions::run(), PixelDataFormatter::setErrorStatus(), tFEDRawDataCollection, theTimer, tkerrorlist, usePhase1, usePilotBlade, useQuality, and usererrorlist.

Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().

164 {
165  const uint32_t dummydetid = 0xffffffff;
167 
168 // initialize cabling map or update if necessary
169  if (recordWatcher.check( es )) {
170  // cabling map, which maps online address (fed->link->ROC->local pixel) to offline (DetId->global pixel)
172  es.get<SiPixelFedCablingMapRcd>().get( cablingMapLabel, cablingMap ); //Tav
173  fedIds = cablingMap->fedIds();
174  cabling_ = cablingMap->cablingTree();
175  LogDebug("map version:")<< cabling_->version();
176  }
177 // initialize quality record or update if necessary
178  if (qualityWatcher.check( es )&&useQuality) {
179  // quality info for dead pixel modules or ROCs
180  edm::ESHandle<SiPixelQuality> qualityInfo;
181  es.get<SiPixelQualityRcd>().get( qualityInfo );
182  badPixelInfo_ = qualityInfo.product();
183  if (!badPixelInfo_) {
184  edm::LogError("SiPixelQualityNotPresent")<<" Configured to use SiPixelQuality, but SiPixelQuality not present"<<endl;
185  }
186  }
187 
189  ev.getByToken(tFEDRawDataCollection, buffers);
190 
191 // create product (digis & errors)
192  auto collection = std::make_unique<edm::DetSetVector<PixelDigi>>();
193  // collection->reserve(8*1024);
194  auto errorcollection = std::make_unique<edm::DetSetVector<SiPixelRawDataError>>();
195  auto tkerror_detidcollection = std::make_unique<DetIdCollection>();
196  auto usererror_detidcollection = std::make_unique<DetIdCollection>();
197  auto disabled_channelcollection = std::make_unique<edmNew::DetSetVector<PixelFEDChannel> >();
198 
199  //PixelDataFormatter formatter(cabling_.get()); // phase 0 only
200  PixelDataFormatter formatter(cabling_.get(), usePhase1); // for phase 1 & 0
201 
202  formatter.setErrorStatus(includeErrors);
203 
204  if (useQuality) formatter.setQualityStatus(useQuality, badPixelInfo_);
205 
206  if (theTimer) theTimer->start();
207  bool errorsInEvent = false;
208  PixelDataFormatter::DetErrors nodeterrors;
209 
210  if (regions_) {
211  regions_->run(ev, es);
212  formatter.setModulesToUnpack(regions_->modulesToUnpack());
213  LogDebug("SiPixelRawToDigi") << "region2unpack #feds: "<<regions_->nFEDs();
214  LogDebug("SiPixelRawToDigi") << "region2unpack #modules (BPIX,EPIX,total): "<<regions_->nBarrelModules()<<" "<<regions_->nForwardModules()<<" "<<regions_->nModules();
215  }
216 
217  for (auto aFed = fedIds.begin(); aFed != fedIds.end(); ++aFed) {
218  int fedId = *aFed;
219 
220  if(!usePilotBlade && (fedId==40) ) continue; // skip pilot blade data
221 
222  if (regions_ && !regions_->mayUnpackFED(fedId)) continue;
223 
224  if(debug) LogDebug("SiPixelRawToDigi")<< " PRODUCE DIGI FOR FED: " << fedId << endl;
225 
227 
228  //get event data for this fed
229  const FEDRawData& fedRawData = buffers->FEDData( fedId );
230 
231  //convert data to digi and strip off errors
232  formatter.interpretRawData( errorsInEvent, fedId, fedRawData, *collection, errors);
233 
234  //pack errors into collection
235  if(includeErrors) {
236  typedef PixelDataFormatter::Errors::iterator IE;
237  for (IE is = errors.begin(); is != errors.end(); is++) {
238  uint32_t errordetid = is->first;
239  if (errordetid==dummydetid) { // errors given dummy detId must be sorted by Fed
240  nodeterrors.insert( nodeterrors.end(), errors[errordetid].begin(), errors[errordetid].end() );
241  } else {
242  edm::DetSet<SiPixelRawDataError>& errorDetSet = errorcollection->find_or_insert(errordetid);
243  errorDetSet.data.insert(errorDetSet.data.end(), is->second.begin(), is->second.end());
244  // Fill detid of the detectors where there is error AND the error number is listed
245  // in the configurable error list in the job option cfi.
246  // Code needs to be here, because there can be a set of errors for each
247  // entry in the for loop over PixelDataFormatter::Errors
248 
249  std::vector<PixelFEDChannel> disabledChannelsDetSet;
250 
251  for (auto const& aPixelError : errorDetSet) {
252  // For the time being, we extend the error handling functionality with ErrorType 25
253  // In the future, we should sort out how the usage of tkerrorlist can be generalized
254  if (aPixelError.getType()==25) {
255  assert(aPixelError.getFedId()==fedId);
256  const sipixelobjects::PixelFEDCabling* fed = cabling_->fed(fedId);
257  if (fed) {
258  cms_uint32_t linkId = formatter.linkId(aPixelError.getWord32());
259  const sipixelobjects::PixelFEDLink* link = fed->link(linkId);
260  if (link) {
261  // The "offline" 0..15 numbering is fixed by definition, also, the FrameConversion depends on it
262  // in contrast, the ROC-in-channel numbering is determined by hardware --> better to use the "offline" scheme
263  PixelFEDChannel ch = {fed->id(), linkId, 25, 0};
264  for (unsigned int iRoc=1; iRoc<=link->numberOfROCs(); iRoc++) {
265  const sipixelobjects::PixelROC * roc = link->roc(iRoc);
266  if (roc->idInDetUnit()<ch.roc_first) ch.roc_first=roc->idInDetUnit();
267  if (roc->idInDetUnit()>ch.roc_last) ch.roc_last=roc->idInDetUnit();
268  }
269  disabledChannelsDetSet.push_back(ch);
270  }
271  }
272  } else {
273  // fill list of detIds to be turned off by tracking
274  if(!tkerrorlist.empty()) {
275  std::vector<int>::iterator it_find = find(tkerrorlist.begin(), tkerrorlist.end(), aPixelError.getType());
276  if(it_find != tkerrorlist.end()){
277  tkerror_detidcollection->push_back(errordetid);
278  }
279  }
280  }
281 
282  // fill list of detIds with errors to be studied
283  if(!usererrorlist.empty()) {
284  std::vector<int>::iterator it_find = find(usererrorlist.begin(), usererrorlist.end(), aPixelError.getType());
285  if(it_find != usererrorlist.end()){
286  usererror_detidcollection->push_back(errordetid);
287  }
288  }
289 
290  } // loop on DetSet of errors
291 
292  if (!disabledChannelsDetSet.empty()) {
293  disabled_channelcollection->insert(errordetid, disabledChannelsDetSet.data(), disabledChannelsDetSet.size());
294  }
295 
296  } // if error assigned to a real DetId
297  } // loop on errors in event for this FED
298  } // if errors to be included in the event
299  } // loop on FED data to be unpacked
300 
301  if(includeErrors) {
302  edm::DetSet<SiPixelRawDataError>& errorDetSet = errorcollection->find_or_insert(dummydetid);
303  errorDetSet.data = nodeterrors;
304  }
305  if (errorsInEvent) LogDebug("SiPixelRawToDigi") << "Error words were stored in this event";
306 
307  if (theTimer) {
308  theTimer->stop();
309  LogDebug("SiPixelRawToDigi") << "TIMING IS: (real)" << theTimer->realTime() ;
310  ndigis += formatter.nDigis();
311  nwords += formatter.nWords();
312  LogDebug("SiPixelRawToDigi") << " (Words/Digis) this ev: "
313  <<formatter.nWords()<<"/"<<formatter.nDigis() << "--- all :"<<nwords<<"/"<<ndigis;
314  hCPU->Fill( theTimer->realTime() );
315  hDigi->Fill(formatter.nDigis());
316  }
317 
318  //send digis and errors back to framework
319  ev.put(std::move(collection));
320  if(includeErrors){
321  ev.put(std::move(errorcollection));
322  ev.put(std::move(tkerror_detidcollection));
323  ev.put(std::move(usererror_detidcollection), "UserErrorModules");
324  ev.put(std::move(disabled_channelcollection));
325  }
326 }
#define LogDebug(id)
std::unique_ptr< edm::CPUTimer > theTimer
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:127
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:508
static MessageDrop * instance()
Definition: MessageDrop.cc:60
std::vector< int > usererrorlist
const std::set< unsigned int > * modulesToUnpack() const
full set of module ids to unpack
std::string cablingMapLabel
void setErrorStatus(bool ErrorStatus)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
PixelUnpackingRegions * regions_
unsigned int roc_last
std::vector< SiPixelRawDataError > DetErrors
std::vector< unsigned int > fedIds
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
unsigned int idInDetUnit() const
id of this ROC in DetUnit etermined by token path
Definition: PixelROC.h:40
std::unique_ptr< SiPixelFedCablingTree > cabling_
unsigned int nBarrelModules() const
edm::EDGetTokenT< FEDRawDataCollection > tFEDRawDataCollection
unsigned int cms_uint32_t
Definition: typedefs.h:15
std::map< cms_uint32_t, DetErrors > Errors
edm::ESWatcher< SiPixelFedCablingMapRcd > recordWatcher
void run(const edm::Event &e, const edm::EventSetup &es)
has to be run during each event
std::unique_ptr< SiPixelFedCablingTree > cablingTree() const
unsigned int nModules() const
unsigned int roc_first
const T & get() const
Definition: EventSetup.h:55
std::vector< int > tkerrorlist
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:57
unsigned int nForwardModules() const
collection_type data
Definition: DetSet.h:78
unsigned int nFEDs() const
various informational accessors:
bool mayUnpackFED(unsigned int fed_n) const
check whether a FED has to be unpacked
std::vector< unsigned int > fedIds() const
edm::ESWatcher< SiPixelQualityRcd > qualityWatcher
T const * product() const
Definition: ESHandle.h:86
def move(src, dest)
Definition: eostools.py:510
const SiPixelQuality * badPixelInfo_

Member Data Documentation

const SiPixelQuality* SiPixelRawToDigi::badPixelInfo_
private

Definition at line 44 of file SiPixelRawToDigi.h.

Referenced by produce().

std::unique_ptr<SiPixelFedCablingTree> SiPixelRawToDigi::cabling_
private

Definition at line 43 of file SiPixelRawToDigi.h.

Referenced by produce().

std::string SiPixelRawToDigi::cablingMapLabel
private

Definition at line 63 of file SiPixelRawToDigi.h.

Referenced by produce(), and SiPixelRawToDigi().

edm::ParameterSet SiPixelRawToDigi::config_
private

Definition at line 42 of file SiPixelRawToDigi.h.

Referenced by SiPixelRawToDigi().

bool SiPixelRawToDigi::debug
private
std::vector<unsigned int> SiPixelRawToDigi::fedIds
private

Definition at line 55 of file SiPixelRawToDigi.h.

Referenced by produce().

TH1D* SiPixelRawToDigi::hCPU
private

Definition at line 48 of file SiPixelRawToDigi.h.

Referenced by produce(), SiPixelRawToDigi(), and ~SiPixelRawToDigi().

TH1D * SiPixelRawToDigi::hDigi
private

Definition at line 48 of file SiPixelRawToDigi.h.

Referenced by produce(), SiPixelRawToDigi(), and ~SiPixelRawToDigi().

bool SiPixelRawToDigi::includeErrors
private

Definition at line 50 of file SiPixelRawToDigi.h.

Referenced by produce(), and SiPixelRawToDigi().

edm::InputTag SiPixelRawToDigi::label
private
int SiPixelRawToDigi::ndigis
private

Definition at line 59 of file SiPixelRawToDigi.h.

Referenced by produce(), and SiPixelRawToDigi().

int SiPixelRawToDigi::nwords
private

Definition at line 60 of file SiPixelRawToDigi.h.

Referenced by produce(), and SiPixelRawToDigi().

edm::ESWatcher<SiPixelQualityRcd> SiPixelRawToDigi::qualityWatcher
private

Definition at line 57 of file SiPixelRawToDigi.h.

Referenced by produce().

edm::ESWatcher<SiPixelFedCablingMapRcd> SiPixelRawToDigi::recordWatcher
private

Definition at line 56 of file SiPixelRawToDigi.h.

Referenced by produce().

PixelUnpackingRegions* SiPixelRawToDigi::regions_
private

Definition at line 45 of file SiPixelRawToDigi.h.

Referenced by produce(), SiPixelRawToDigi(), and ~SiPixelRawToDigi().

edm::EDGetTokenT<FEDRawDataCollection> SiPixelRawToDigi::tFEDRawDataCollection
private

Definition at line 46 of file SiPixelRawToDigi.h.

Referenced by produce(), and SiPixelRawToDigi().

std::unique_ptr<edm::CPUTimer> SiPixelRawToDigi::theTimer
private

Definition at line 49 of file SiPixelRawToDigi.h.

Referenced by produce(), SiPixelRawToDigi(), and ~SiPixelRawToDigi().

std::vector<int> SiPixelRawToDigi::tkerrorlist
private

Definition at line 53 of file SiPixelRawToDigi.h.

Referenced by produce(), and SiPixelRawToDigi().

bool SiPixelRawToDigi::usePhase1
private

Definition at line 62 of file SiPixelRawToDigi.h.

Referenced by produce(), and SiPixelRawToDigi().

bool SiPixelRawToDigi::usePilotBlade
private

Definition at line 61 of file SiPixelRawToDigi.h.

Referenced by produce(), and SiPixelRawToDigi().

bool SiPixelRawToDigi::useQuality
private

Definition at line 51 of file SiPixelRawToDigi.h.

Referenced by produce(), and SiPixelRawToDigi().

std::vector<int> SiPixelRawToDigi::usererrorlist
private

Definition at line 54 of file SiPixelRawToDigi.h.

Referenced by produce(), and SiPixelRawToDigi().