CMS 3D CMS Logo

Classes | Functions
EcalZmassClient.cc File Reference
#include <memory>
#include "DQM/Physics/src/EwkDQM.h"
#include "DQMServices/Core/interface/DQMEDHarvester.h"
#include "DQMServices/Core/interface/MonitorElement.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

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 }
Double_t mygauss ( Double_t *  x,
Double_t *  par 
)

Definition at line 581 of file EcalZmassClient.cc.

References DEFINE_FWK_MODULE, and Pi.

Referenced by EcalZmassClient::dqmEndJob().

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 }
const double Pi
A arg
Definition: Factorize.h:38
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< EcalZmassClient > > s_filler__LINE__ ( "EcalZmassClient"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< EcalZmassClient > > s_maker__LINE__ ( "EcalZmassClient"  )
static