CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GetLumi.h
Go to the documentation of this file.
1 #ifndef GetLumi_H
2 #define GetLumi_H
3 
4 // system include files
5 #include <memory>
6 
7 // user include files
10 
13 
15 
16 class GetLumi
17 {
18  public:
19 
20  enum SQRT_S{
23  };
24 
25  static const unsigned int NUM_BX = 3564;
26  static constexpr double FREQ_ORBIT = 11246.; // Hz
27  static constexpr double SECONDS_PER_LS = double(0x40000)/double(FREQ_ORBIT);
28 
29  static constexpr double INELASTIC_XSEC_7TeV = 68.0; // mb
30  static constexpr double INELASTIC_XSEC_8TeV = 69.3; // mb
31 
32  GetLumi(const edm::ParameterSet&);
33  GetLumi(edm::InputTag, double);
34  virtual ~GetLumi();
35  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
36 
37  double getRawValue(const edm::Event&);
38  double getValue (const edm::Event&);
39 
40  double getRawValue(edm::LuminosityBlock const&,edm::EventSetup const&);
41  double getValue (edm::LuminosityBlock const&,edm::EventSetup const&);
42 
43  double convert2PU(double,double);
44  double convert2PU(double,int);
45 
46  // ----------member data ---------------------------
48  double lumiScale_;
49 
50 
51 };
52 #endif
static constexpr double FREQ_ORBIT
Definition: GetLumi.h:26
virtual ~GetLumi()
Definition: GetLumi.cc:27
double getValue(const edm::Event &)
Definition: GetLumi.cc:52
SQRT_S
Definition: GetLumi.h:20
static constexpr double SECONDS_PER_LS
Definition: GetLumi.h:27
static constexpr double INELASTIC_XSEC_7TeV
Definition: GetLumi.h:29
double getRawValue(const edm::Event &)
Definition: GetLumi.cc:32
static constexpr double INELASTIC_XSEC_8TeV
Definition: GetLumi.h:30
static const unsigned int NUM_BX
Definition: GetLumi.h:25
GetLumi(const edm::ParameterSet &)
Definition: GetLumi.cc:15
double convert2PU(double, double)
Definition: GetLumi.cc:94
edm::InputTag lumiInputTag_
Definition: GetLumi.h:47
double lumiScale_
Definition: GetLumi.h:48
#define constexpr
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)