|
|
Go to the documentation of this file. 1 #ifndef CalibTracker_SiPixelQuality_SiPixelStatusProducer_h
2 #define CalibTracker_SiPixelQuality_SiPixelStatusProducer_h
66 edm::RunCache<SiPixelTopoFinder>,
67 edm::LuminosityBlockSummaryCache<std::vector<SiPixelDetectorStatus>>,
68 edm::EndLuminosityBlockProducer,
80 psd0.
add<std::vector<edm::InputTag>>(
"badPixelFEDChannelCollections",
86 descriptions.
add(
"siPixelStatusProducer",
desc);
101 std::vector<SiPixelDetectorStatus>* siPixelDetectorStatusVtr)
const final;
106 edm::LogInfo(
"SiPixelStatusProducer") <<
"Init global Cache " << std::endl;
107 return std::make_unique<SiPixelStatusCache>();
123 return std::make_shared<std::vector<SiPixelDetectorStatus>>();
129 std::vector<SiPixelDetectorStatus>*) {
136 std::vector<SiPixelDetectorStatus>
const* siPixelDetectorStatusVtr) {
137 edm::LogInfo(
"SiPixelStatusProducer") <<
"Global endlumi producer " << std::endl;
140 if (!siPixelDetectorStatusVtr->empty()) {
155 outFile.open(outTxt.c_str(), std::ios::app);
161 auto result = std::make_unique<SiPixelDetectorStatus>();
162 *
result = siPixelDetectorStatus;
166 <<
" lumi-based data stored for run " <<
run <<
" lumi " <<
lumi << std::endl;
171 virtual int indexROC(
int irow,
int icol,
int nROCcolumns)
final;
191 std::unordered_map<uint32_t, unsigned int>
fFedIds_;
std::map< int, std::vector< PixelFEDChannel > > fFEDerror25_
typename CacheTypes::GlobalCache GlobalCache
unsigned long int ftotalevents_
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > siPixelFedCablingMapToken_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
SiPixelStatusProducer(edm::ParameterSet const &iPSet, SiPixelStatusCache const *)
static std::shared_ptr< SiPixelTopoFinder > globalBeginRun(edm::Run const &iRun, edm::EventSetup const &iSetup, GlobalCache const *iCache)
std::vector< edm::EDGetTokenT< PixelFEDChannelCollection > > theBadPixelFEDChannelsTokens_
std::map< int, std::pair< int, int > > fSensors_
std::map< int, std::pair< int, int > > fSensorLayout_
static std::shared_ptr< std::vector< SiPixelDetectorStatus > > globalBeginLuminosityBlockSummary(edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
static void globalEndLuminosityBlockSummary(edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *iContext, std::vector< SiPixelDetectorStatus > *)
static std::unique_ptr< SiPixelStatusCache > initializeGlobalCache(edm::ParameterSet const &iPSet)
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > fSiPixelClusterToken_
static void globalEndLuminosityBlockProduce(edm::LuminosityBlock &iLumi, edm::EventSetup const &, LuminosityBlockContext const *iContext, std::vector< SiPixelDetectorStatus > const *siPixelDetectorStatusVtr)
static void globalEndRun(edm::Run const &iRun, edm::EventSetup const &, RunContext const *iContext)
void setLSRange(int ls0, int ls1)
Log< level::Info, false > LogInfo
std::vector< int > fDetIds_
void endLuminosityBlockSummary(edm::LuminosityBlock const &iLumi, edm::EventSetup const &, std::vector< SiPixelDetectorStatus > *siPixelDetectorStatusVtr) const final
std::map< int, std::map< int, int > > fRocIds_
void dumpToFile(std::ofstream &outFile)
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) final
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::unordered_map< uint32_t, unsigned int > fFedIds_
LuminosityBlockNumber_t luminosityBlock() const
void accumulate(edm::Event const &iEvent, edm::EventSetup const &iSetup) final
void beginRun(edm::Run const &, edm::EventSetup const &) final
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~SiPixelStatusProducer() override
static void globalEndJob(SiPixelStatusCache const *)
void put(std::unique_ptr< PROD > product)
Put a new product.
static PFTauRenderPlugin instance
void updateDetectorStatus(SiPixelDetectorStatus newData)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyToken_
edm::InputTag fPixelClusterLabel_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeometryToken_
virtual int indexROC(int irow, int icol, int nROCcolumns) final
void setRunRange(int run0, int run1)
SiPixelDetectorStatus fDet_
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) final