CMS 3D CMS Logo

Classes | Functions
EcalZmassClient.cc File Reference
#include <memory>
#include "FWCore/Framework/interface/MakerMacros.h"
#include "DQM/Physics/src/EwkDQM.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "TMath.h"
#include <string>
#include <cmath>
#include "TH1.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include "DQMServices/Core/interface/DQMEDHarvester.h"
#include <iostream>
#include "FWCore/Utilities/interface/Exception.h"

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 660 of file EcalZmassClient.cc.

661 {
662  Double_t arg1 = 14.0 / 22.0; // 2 over pi
663  Double_t arg2 = par[1] * par[1] * par[2] * par[2]; //Gamma=par[2] M=par[1]
664  Double_t arg3 =
665  ((x[0] * x[0]) - (par[1] * par[1])) * ((x[0] * x[0]) - (par[1] * par[1]));
666  Double_t arg4 =
667  x[0] * x[0] * x[0] * x[0] * ((par[2] * par[2]) / (par[1] * par[1]));
668  return par[0] * arg1 * arg2 / (arg3 + arg4);
669 }
Double_t mygauss ( Double_t *  x,
Double_t *  par 
)

Definition at line 673 of file EcalZmassClient.cc.

References DEFINE_FWK_MODULE, and Pi.

Referenced by EcalZmassClient::dqmEndJob().

674 {
675  Double_t arg = 0;
676  if (par[2] < 0)
677  par[2] = -par[2]; // par[2]: sigma
678  if (par[2] != 0)
679  arg = (x[0] - par[1]) / par[2]; // par[1]: mean
680  return par[0] * TMath::Exp (-0.5 * arg * arg) / (TMath::Sqrt (2 * TMath::Pi ()) * par[2]); // par[0] is constant
681 
682 }
const double Pi
A arg
Definition: Factorize.h:37
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