CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes
GenRunInfoProduct Class Reference

#include <GenRunInfoProduct.h>

Classes

struct  XSec
 

Public Member Functions

double crossSection () const
 
const XSecexternalXSecLO () const
 
const XSecexternalXSecNLO () const
 
double filterEfficiency () const
 
 GenRunInfoProduct ()
 
 GenRunInfoProduct (const GenRunInfoProduct &other)
 
const XSecinternalXSec () const
 
bool isProductEqual (const GenRunInfoProduct &other) const
 
void setExternalXSecLO (const XSec &xsec)
 
void setExternalXSecNLO (const XSec &xsec)
 
void setFilterEfficiency (double effic)
 
void setInternalXSec (const XSec &xsec)
 

Private Attributes

double externalFilterEfficiency_
 
XSec externalXSecLO_
 
XSec externalXSecNLO_
 
XSec internalXSec_
 

Detailed Description

Definition at line 8 of file GenRunInfoProduct.h.

Constructor & Destructor Documentation

◆ GenRunInfoProduct() [1/2]

GenRunInfoProduct::GenRunInfoProduct ( )

Definition at line 11 of file GenRunInfoProduct.cc.

◆ GenRunInfoProduct() [2/2]

GenRunInfoProduct::GenRunInfoProduct ( const GenRunInfoProduct other)

Definition at line 13 of file GenRunInfoProduct.cc.

14  : internalXSec_(other.internalXSec_),
15  externalXSecLO_(other.externalXSecLO_),
16  externalXSecNLO_(other.externalXSecNLO_),
17  externalFilterEfficiency_(other.externalFilterEfficiency_) {}

Member Function Documentation

◆ crossSection()

double GenRunInfoProduct::crossSection ( ) const
inline

◆ externalXSecLO()

const XSec& GenRunInfoProduct::externalXSecLO ( ) const
inline

Definition at line 20 of file GenRunInfoProduct.h.

20 { return externalXSecLO_; }

References externalXSecLO_.

◆ externalXSecNLO()

const XSec& GenRunInfoProduct::externalXSecNLO ( ) const
inline

Definition at line 21 of file GenRunInfoProduct.h.

21 { return externalXSecNLO_; }

References externalXSecNLO_.

◆ filterEfficiency()

double GenRunInfoProduct::filterEfficiency ( ) const
inline

Definition at line 22 of file GenRunInfoProduct.h.

22 { return externalFilterEfficiency_; }

References externalFilterEfficiency_.

◆ internalXSec()

const XSec& GenRunInfoProduct::internalXSec ( ) const
inline

◆ isProductEqual()

bool GenRunInfoProduct::isProductEqual ( const GenRunInfoProduct other) const

Definition at line 19 of file GenRunInfoProduct.cc.

19  {
20  bool result = externalXSecLO_ == other.externalXSecLO_ && externalXSecNLO_ == other.externalXSecNLO_ &&
21  externalFilterEfficiency_ == other.externalFilterEfficiency_;
22  if (not result) {
23  edm::LogWarning("GenRunInfoProduct|ProductsNotMergeable")
24  << "You are merging runs with different cross-sections and/or "
25  "filter efficiencies (from GenRunInfoProduct)\n"
26  "The resulting cross-section will not be consistent."
27  << std::endl;
28  }
29 
30  return result;
31 }

References externalFilterEfficiency_, externalXSecLO_, externalXSecNLO_, trackingPlots::other, and mps_fire::result.

◆ setExternalXSecLO()

void GenRunInfoProduct::setExternalXSecLO ( const XSec xsec)
inline

◆ setExternalXSecNLO()

void GenRunInfoProduct::setExternalXSecNLO ( const XSec xsec)
inline

◆ setFilterEfficiency()

void GenRunInfoProduct::setFilterEfficiency ( double  effic)
inline

Definition at line 29 of file GenRunInfoProduct.h.

29 { externalFilterEfficiency_ = effic; }

References externalFilterEfficiency_.

Referenced by gen::BaseHadronizer::BaseHadronizer().

◆ setInternalXSec()

void GenRunInfoProduct::setInternalXSec ( const XSec xsec)
inline

Member Data Documentation

◆ externalFilterEfficiency_

double GenRunInfoProduct::externalFilterEfficiency_
private

Definition at line 64 of file GenRunInfoProduct.h.

Referenced by filterEfficiency(), isProductEqual(), and setFilterEfficiency().

◆ externalXSecLO_

XSec GenRunInfoProduct::externalXSecLO_
private

◆ externalXSecNLO_

XSec GenRunInfoProduct::externalXSecNLO_
private

Definition at line 63 of file GenRunInfoProduct.h.

Referenced by externalXSecNLO(), isProductEqual(), and setExternalXSecNLO().

◆ internalXSec_

XSec GenRunInfoProduct::internalXSec_
private

Definition at line 62 of file GenRunInfoProduct.h.

Referenced by crossSection(), internalXSec(), and setInternalXSec().

edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
GenRunInfoProduct::XSec::value
double value() const
Definition: GenRunInfoProduct.h:38
trackingPlots.other
other
Definition: trackingPlots.py:1460
GenRunInfoProduct::externalFilterEfficiency_
double externalFilterEfficiency_
Definition: GenRunInfoProduct.h:64
GenRunInfoProduct::internalXSec_
XSec internalXSec_
Definition: GenRunInfoProduct.h:62
GenRunInfoProduct::externalXSecNLO_
XSec externalXSecNLO_
Definition: GenRunInfoProduct.h:63
GenRunInfoProduct::externalXSecLO_
XSec externalXSecLO_
Definition: GenRunInfoProduct.h:63
mps_fire.result
result
Definition: mps_fire.py:311