|
|
Go to the documentation of this file. 1 #ifndef CalibTracker_SiPixelQuality_SiPixelStatusProducer_h
2 #define CalibTracker_SiPixelQuality_SiPixelStatusProducer_h
58 std::shared_ptr<SiPixelTopoFinder> returnValue;
84 returnValue->init(trackerGeometry, trackerTopology, cablingMap);
114 edm::RunCache<SiPixelTopoFinder>,
115 edm::LuminosityBlockSummaryCache<std::vector<SiPixelDetectorStatus>>,
116 edm::EndLuminosityBlockProducer,
128 psd0.
add<std::vector<edm::InputTag>>(
"badPixelFEDChannelCollections",
134 descriptions.
add(
"siPixelStatusProducer",
desc);
149 std::vector<SiPixelDetectorStatus>* siPixelDetectorStatusVtr)
const final;
154 edm::LogInfo(
"SiPixelStatusProducer") <<
"Init global Cache " << std::endl;
155 return std::make_unique<SiPixelTopoCache>(iPSet);
161 edm::LogInfo(
"SiPixelStatusProducer") <<
"Global beginRun " << std::endl;
162 return iCache->getSiPixelTopoFinder(iSetup);
174 return std::make_shared<std::vector<SiPixelDetectorStatus>>();
180 std::vector<SiPixelDetectorStatus>*) {
187 std::vector<SiPixelDetectorStatus>
const* siPixelDetectorStatusVtr) {
188 edm::LogInfo(
"SiPixelStatusProducer") <<
"Global endlumi producer " << std::endl;
191 if (!siPixelDetectorStatusVtr->empty()) {
206 outFile.open(outTxt.c_str(), std::ios::app);
212 auto result = std::make_unique<SiPixelDetectorStatus>();
213 *
result = siPixelDetectorStatus;
217 <<
" lumi-based data stored for run " <<
run <<
" lumi " <<
lumi << std::endl;
222 virtual int indexROC(
int irow,
int icol,
int nROCcolumns)
final;
248 std::unordered_map<uint32_t, unsigned int>
fFedIds_;
std::map< int, std::vector< PixelFEDChannel > > fFEDerror25_
bool check(const edm::EventSetup &iSetup)
unsigned long int ftotalevents_
T const * product() const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::ESWatcher< TrackerTopologyRcd > trackerTopoWatcher_
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 *)
edm::ReusableObjectHolder< SiPixelTopoFinder > m_holder
static void globalEndLuminosityBlockSummary(edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *iContext, std::vector< SiPixelDetectorStatus > *)
edm::ESWatcher< SiPixelFedCablingMapRcd > siPixelFedCablingMapWatcher_
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > fSiPixelClusterToken_
static void globalEndLuminosityBlockProduce(edm::LuminosityBlock &iLumi, edm::EventSetup const &, LuminosityBlockContext const *iContext, std::vector< SiPixelDetectorStatus > const *siPixelDetectorStatusVtr)
std::shared_ptr< SiPixelTopoFinder > getSiPixelTopoFinder(edm::EventSetup const &iSetup) const
SiPixelStatusProducer(edm::ParameterSet const &iPSet, SiPixelTopoCache const *)
static void globalEndRun(edm::Run const &iRun, edm::EventSetup const &, RunContext const *iContext)
static std::shared_ptr< SiPixelTopoFinder > globalBeginRun(edm::Run const &iRun, edm::EventSetup const &iSetup, GlobalCache const *iCache)
void setLSRange(int ls0, int ls1)
Log< level::Info, false > LogInfo
std::vector< int > fDetIds_
CacheTypes::GlobalCache GlobalCache
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)
std::shared_ptr< T > makeOrGet(F iFunc)
If there isn't an object already available, creates a new one using iFunc.
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
std::shared_ptr< SiPixelTopoFinder > m_mostRecentSiPixelTopoFinder_
void beginRun(edm::Run const &, edm::EventSetup const &) final
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void pushAndWait(const T &iAction)
synchronously pushes functor iAction into queue
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~SiPixelStatusProducer() override
void put(std::unique_ptr< PROD > product)
Put a new product.
static PFTauRenderPlugin instance
SiPixelTopoCache(edm::ParameterSet const &iPSet)
edm::ESWatcher< TrackerDigiGeometryRecord > trackerDIGIGeoWatcher_
void updateDetectorStatus(SiPixelDetectorStatus newData)
edm::InputTag fPixelClusterLabel_
static void globalEndJob(SiPixelTopoCache const *)
static std::unique_ptr< SiPixelTopoCache > initializeGlobalCache(edm::ParameterSet const &iPSet)
virtual int indexROC(int irow, int icol, int nROCcolumns) final
void setRunRange(int run0, int run1)
edm::SerialTaskQueue m_queue
SiPixelDetectorStatus fDet_
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) final