CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Functions
EcalZmassClient.cc File Reference
#include <memory>
#include "DQM/Physics/src/EwkDQM.h"
#include "DQMServices/Core/interface/DQMEDHarvester.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "TH1.h"
#include "TMath.h"
#include <cmath>
#include <iostream>
#include <string>

Go to the source code of this file.

Classes

class  EcalZmassClient
 

Functions

Double_t mybw (Double_t *, Double_t *)
 
Double_t mygauss (Double_t *, Double_t *)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< EcalZmassClient > > s_filler__LINE__ ("EcalZmassClient")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< EcalZmassClient > > s_maker__LINE__ ("EcalZmassClient")
 

Function Documentation

◆ mybw()

Double_t mybw ( Double_t *  x,
Double_t *  par 
)

Definition at line 572 of file EcalZmassClient.cc.

572  {
573  Double_t arg1 = 14.0 / 22.0; // 2 over pi
574  Double_t arg2 = par[1] * par[1] * par[2] * par[2]; // Gamma=par[2] M=par[1]
575  Double_t arg3 = ((x[0] * x[0]) - (par[1] * par[1])) * ((x[0] * x[0]) - (par[1] * par[1]));
576  Double_t arg4 = x[0] * x[0] * x[0] * x[0] * ((par[2] * par[2]) / (par[1] * par[1]));
577  return par[0] * arg1 * arg2 / (arg3 + arg4);
578 }

References genVertex_cff::x.

◆ mygauss()

Double_t mygauss ( Double_t *  x,
Double_t *  par 
)

Definition at line 581 of file EcalZmassClient.cc.

581  {
582  Double_t arg = 0;
583  if (par[2] < 0)
584  par[2] = -par[2]; // par[2]: sigma
585  if (par[2] != 0)
586  arg = (x[0] - par[1]) / par[2]; // par[1]: mean
587  return par[0] * TMath::Exp(-0.5 * arg * arg) / (TMath::Sqrt(2 * TMath::Pi()) * par[2]); // par[0] is constant
588 }

References Pi, and genVertex_cff::x.

Referenced by EcalZmassClient::dqmEndJob().

◆ s_filler__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< EcalZmassClient > > s_filler__LINE__ ( "EcalZmassClient"  )
static

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< EcalZmassClient > > s_maker__LINE__ ( "EcalZmassClient"  )
static
genVertex_cff.x
x
Definition: genVertex_cff.py:13
Pi
const double Pi
Definition: CosmicMuonParameters.h:18
funct::arg
A arg
Definition: Factorize.h:31