CMS 3D CMS Logo

Classes | Functions
EcalZmassClient.cc File Reference
#include <memory>
#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 571 of file EcalZmassClient.cc.

References x.

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

◆ mygauss()

Double_t mygauss ( Double_t *  x,
Double_t *  par 
)

Definition at line 580 of file EcalZmassClient.cc.

References Pi, and x.

Referenced by EcalZmassClient::dqmEndJob().

580  {
581  Double_t arg = 0;
582  if (par[2] < 0)
583  par[2] = -par[2]; // par[2]: sigma
584  if (par[2] != 0)
585  arg = (x[0] - par[1]) / par[2]; // par[1]: mean
586  return par[0] * TMath::Exp(-0.5 * arg * arg) / (TMath::Sqrt(2 * TMath::Pi()) * par[2]); // par[0] is constant
587 }
const double Pi
A arg
Definition: Factorize.h:31
float x

◆ 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