CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
FTSLuminosityFromVertices Class Reference
Inheritance diagram for FTSLuminosityFromVertices:
edm::global::EDAnalyzer<> edm::global::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 FTSLuminosityFromVertices (edm::ParameterSet const &)
 
 ~FTSLuminosityFromVertices ()
 
- Public Member Functions inherited from edm::global::EDAnalyzer<>
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::global::EDAnalyzerBase
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- 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 Member Functions

void analyze (edm::StreamID sid, edm::Event const &event, const edm::EventSetup &setup) const override
 

Private Attributes

unsigned int m_lumi_id
 
edm::EDGetTokenT
< reco::VertexCollection
m_token
 

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)
 
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 20 of file FTSLuminosityFromVertices.cc.

Constructor & Destructor Documentation

FTSLuminosityFromVertices::FTSLuminosityFromVertices ( edm::ParameterSet const &  config)
explicit

Definition at line 34 of file FTSLuminosityFromVertices.cc.

References edm::ParameterSet::getParameter(), diffTwoXMLs::label, m_lumi_id, mergeVDriftHistosByStation::name, dtDQMClient_cfg::resolution, AlCaHLTBitMon_QueryRunRegistry::string, and indexGen::title.

34  :
35  m_token(consumes<reco::VertexCollection>(config.getParameter<edm::InputTag>("source"))),
36  m_lumi_id((unsigned int) -1)
37 {
38  if (not edm::Service<FastTimerService>().isAvailable())
39  return;
40 
41  std::string const & name = config.getParameter<std::string>("name");
42  std::string const & title = config.getParameter<std::string>("title");
43  std::string const & label = config.getParameter<std::string>("label");
44  double range = config.getParameter<double>("range");
45  double resolution = config.getParameter<double>("resolution");
46 
47  m_lumi_id = edm::Service<FastTimerService>()->reserveLuminosityPlots(name, title, label, range, resolution);
48 }
edm::EDGetTokenT< reco::VertexCollection > m_token
FTSLuminosityFromVertices::~FTSLuminosityFromVertices ( )

Definition at line 50 of file FTSLuminosityFromVertices.cc.

51 {
52 }

Member Function Documentation

void FTSLuminosityFromVertices::analyze ( edm::StreamID  sid,
edm::Event const &  event,
const edm::EventSetup setup 
) const
overrideprivatevirtual

Implements edm::global::EDAnalyzerBase.

Definition at line 55 of file FTSLuminosityFromVertices.cc.

References universalConfigTemplate::collection, edm::Event::getByToken(), m_lumi_id, m_token, and relativeConstraints::value.

56 {
57  if (not edm::Service<FastTimerService>().isAvailable())
58  return;
59 
60  double value = 0.;
62  if (event.getByToken(m_token, collection))
63  value = collection->size();
64 
65  edm::Service<FastTimerService>()->setLuminosity(sid, m_lumi_id, value);
66 }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::EDGetTokenT< reco::VertexCollection > m_token
void FTSLuminosityFromVertices::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 69 of file FTSLuminosityFromVertices.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), HLT_25ns10e33_v2_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

69  {
71  desc.add<edm::InputTag>("source", edm::InputTag("siPixelClusters"));
72  desc.add<std::string>("name", "vertices");
73  desc.add<std::string>("title", "reconstructed vertices");
74  desc.add<std::string>("label", "reconstructed vertices");
75  desc.add<double>("range", 40);
76  desc.add<double>("resolution", 1);
77  descriptions.add("ftsLuminosityFromVertices", desc);
78 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

unsigned int FTSLuminosityFromVertices::m_lumi_id
private

Definition at line 29 of file FTSLuminosityFromVertices.cc.

Referenced by analyze(), and FTSLuminosityFromVertices().

edm::EDGetTokenT<reco::VertexCollection> FTSLuminosityFromVertices::m_token
private

Definition at line 28 of file FTSLuminosityFromVertices.cc.

Referenced by analyze().