CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
PixelClusterCountsAuditor Class Reference
Inheritance diagram for PixelClusterCountsAuditor:
edm::global::EDAnalyzer< edm::LuminosityBlockCache< Empty > > edm::global::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (edm::StreamID id, edm::Event const &, edm::EventSetup const &) const final
 
std::shared_ptr< Empty > globalBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const final
 
void globalEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const final
 
 PixelClusterCountsAuditor (edm::ParameterSet const &iPSet)
 
- Public Member Functions inherited from edm::global::EDAnalyzer< edm::LuminosityBlockCache< Empty > >
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const noexcept final
 
bool wantsGlobalRuns () const noexcept final
 
bool wantsInputProcessBlocks () const noexcept final
 
bool wantsProcessBlocks () const noexcept final
 
bool wantsStreamLuminosityBlocks () const noexcept final
 
bool wantsStreamRuns () const noexcept final
 
- Public Member Functions inherited from edm::global::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDAnalyzerBase () override
 
- 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
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

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

Private Attributes

std::vector< edm::EDGetTokenT< reco::PixelClusterCounts > > tokens_
 

Additional Inherited Members

- Public Types inherited from edm::global::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- 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)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 17 of file PixelClusterCountsAuditor.cc.

Constructor & Destructor Documentation

◆ PixelClusterCountsAuditor()

PixelClusterCountsAuditor::PixelClusterCountsAuditor ( edm::ParameterSet const &  iPSet)

Definition at line 32 of file PixelClusterCountsAuditor.cc.

References edm::ParameterSet::getUntrackedParameter(), submitPVValidationJobs::t, getPayloadData::tags, and tokens_.

32  {
33  auto tags = iPSet.getUntrackedParameter<std::vector<edm::InputTag>>("counts");
34  tokens_.reserve(tags.size());
35  for (auto const& t : tags) {
36  tokens_.emplace_back(consumes<reco::PixelClusterCounts, edm::InLumi>(t));
37  }
38 }
std::vector< edm::EDGetTokenT< reco::PixelClusterCounts > > tokens_

Member Function Documentation

◆ analyze()

void PixelClusterCountsAuditor::analyze ( edm::StreamID  id,
edm::Event const &  ,
edm::EventSetup const &   
) const
inlinefinalvirtual

Implements edm::global::EDAnalyzerBase.

Definition at line 21 of file PixelClusterCountsAuditor.cc.

21 {}

◆ fillDescriptions()

void PixelClusterCountsAuditor::fillDescriptions ( edm::ConfigurationDescriptions iConfig)
static

Definition at line 39 of file PixelClusterCountsAuditor.cc.

References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.

39  {
41  desc.addUntracked<std::vector<edm::InputTag>>("counts")->setComment(
42  "Which PixelClusterCounts to retrieve from the LuminosityBlock");
43  iConfig.addDefault(desc);
44 }
void addDefault(ParameterSetDescription const &psetDescription)

◆ globalBeginLuminosityBlock()

std::shared_ptr< Empty > PixelClusterCountsAuditor::globalBeginLuminosityBlock ( edm::LuminosityBlock const &  iLumi,
edm::EventSetup const &   
) const
final

Definition at line 46 of file PixelClusterCountsAuditor.cc.

References DummyCfis::c, h, Hcal_Conditions_forGlobalTag_cff::iLumi, submitPVValidationJobs::t, and tokens_.

47  {
48  for (auto t : tokens_) {
49  auto h = iLumi.getHandle(t);
50  auto prov = h.provenance();
51  auto const& c = *h;
52  edm::LogSystem("PixelClusterCountsAudit")
53  .format("Branch: {}\n readCounts: {}\n readRocCounts: {}\n readEvents: {}\n readModID: {}\n readRocID: {}",
54  prov->branchName(),
55  c.readCounts().size(),
56  c.readRocCounts().size(),
57  c.readEvents().size(),
58  c.readModID().size(),
59  c.readRocID().size());
60  }
61  return {};
62 }
Log< level::System, false > LogSystem
std::vector< edm::EDGetTokenT< reco::PixelClusterCounts > > tokens_
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4

◆ globalEndLuminosityBlock()

void PixelClusterCountsAuditor::globalEndLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
) const
final

Definition at line 64 of file PixelClusterCountsAuditor.cc.

64 {}

Member Data Documentation

◆ tokens_

std::vector<edm::EDGetTokenT<reco::PixelClusterCounts> > PixelClusterCountsAuditor::tokens_
private