CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
L1TGlobalPrescalesVetosViewer Class Reference
Inheritance diagram for L1TGlobalPrescalesVetosViewer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
 L1TGlobalPrescalesVetosViewer (const edm::ParameterSet &pset)
 
 ~L1TGlobalPrescalesVetosViewer (void) override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () 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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

std::string hash (void *buf, size_t len) const
 

Private Attributes

int32_t bxmask_map_verbosity
 
int32_t prescale_table_verbosity
 
int32_t veto_verbosity
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 13 of file L1TGlobalPrescalesVetosViewer.cc.

Constructor & Destructor Documentation

◆ L1TGlobalPrescalesVetosViewer()

L1TGlobalPrescalesVetosViewer::L1TGlobalPrescalesVetosViewer ( const edm::ParameterSet pset)
inlineexplicit

Definition at line 24 of file L1TGlobalPrescalesVetosViewer.cc.

24  : edm::EDAnalyzer() {
25  prescale_table_verbosity = pset.getUntrackedParameter<int32_t>("prescale_table_verbosity", 0);
26  bxmask_map_verbosity = pset.getUntrackedParameter<int32_t>("bxmask_map_verbosity", 0);
27  veto_verbosity = pset.getUntrackedParameter<int32_t>("veto_verbosity", 0);
28  }

References bxmask_map_verbosity, prescale_table_verbosity, muonDTDigis_cfi::pset, and veto_verbosity.

◆ ~L1TGlobalPrescalesVetosViewer()

L1TGlobalPrescalesVetosViewer::~L1TGlobalPrescalesVetosViewer ( void  )
inlineoverride

Definition at line 30 of file L1TGlobalPrescalesVetosViewer.cc.

30 {}

Member Function Documentation

◆ analyze()

void L1TGlobalPrescalesVetosViewer::analyze ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
overridevirtual

◆ hash()

std::string L1TGlobalPrescalesVetosViewer::hash ( void *  buf,
size_t  len 
) const
private

Definition at line 38 of file L1TGlobalPrescalesVetosViewer.cc.

38  {
39  char tmp[SHA_DIGEST_LENGTH * 2 + 1];
40  bzero(tmp, sizeof(tmp));
41  SHA_CTX ctx;
42  if (!SHA1_Init(&ctx))
43  throw cms::Exception("L1TGlobalPrescalesVetosViewer::hash") << "SHA1 initialization error";
44 
45  if (!SHA1_Update(&ctx, buf, len))
46  throw cms::Exception("L1TGlobalPrescalesVetosViewer::hash") << "SHA1 processing error";
47 
48  unsigned char hash[SHA_DIGEST_LENGTH];
49  if (!SHA1_Final(hash, &ctx))
50  throw cms::Exception("L1TGlobalPrescalesVetosViewer::hash") << "SHA1 finalization error";
51 
52  // re-write bytes in hex
53  for (unsigned int i = 0; i < 20; i++)
54  ::sprintf(&tmp[i * 2], "%02x", hash[i]);
55 
56  tmp[20 * 2] = 0;
57  return std::string(tmp);
58 }

References visDQMUpload::buf, Exception, cond::hash, mps_fire::i, AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.

Member Data Documentation

◆ bxmask_map_verbosity

int32_t L1TGlobalPrescalesVetosViewer::bxmask_map_verbosity
private

Definition at line 16 of file L1TGlobalPrescalesVetosViewer.cc.

Referenced by L1TGlobalPrescalesVetosViewer().

◆ prescale_table_verbosity

int32_t L1TGlobalPrescalesVetosViewer::prescale_table_verbosity
private

Definition at line 15 of file L1TGlobalPrescalesVetosViewer.cc.

Referenced by L1TGlobalPrescalesVetosViewer().

◆ veto_verbosity

int32_t L1TGlobalPrescalesVetosViewer::veto_verbosity
private

Definition at line 17 of file L1TGlobalPrescalesVetosViewer.cc.

Referenced by L1TGlobalPrescalesVetosViewer().

mps_fire.i
i
Definition: mps_fire.py:355
L1TGlobalPrescalesVetosViewer::prescale_table_verbosity
int32_t prescale_table_verbosity
Definition: L1TGlobalPrescalesVetosViewer.cc:15
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
edm::EDAnalyzer
Definition: EDAnalyzer.h:29
L1TGlobalPrescalesVetosViewer::hash
std::string hash(void *buf, size_t len) const
Definition: L1TGlobalPrescalesVetosViewer.cc:38
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1TGlobalPrescalesVetosViewer::bxmask_map_verbosity
int32_t bxmask_map_verbosity
Definition: L1TGlobalPrescalesVetosViewer.cc:16
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
L1TGlobalPrescalesVetosViewer::veto_verbosity
int32_t veto_verbosity
Definition: L1TGlobalPrescalesVetosViewer.cc:17
Exception
Definition: hltDiff.cc:246
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27