CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
EcalZmassClient.cc File Reference
#include <memory>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/Framework/interface/Event.h"
#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/DQMStore.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include <iostream>
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Classes

class  EcalZmassClient
 

Functions

 DEFINE_FWK_MODULE (EcalZmassClient)
 
Double_t mybw (Double_t *x, Double_t *par)
 
Double_t mygauss (Double_t *x, Double_t *par)
 

Function Documentation

DEFINE_FWK_MODULE ( EcalZmassClient  )
Double_t mybw ( Double_t *  x,
Double_t *  par 
)

Definition at line 215 of file EcalZmassClient.cc.

216 {
217  Double_t arg1 = 14.0 / 22.0; // 2 over pi
218  Double_t arg2 = par[1] * par[1] * par[2] * par[2]; //Gamma=par[2] M=par[1]
219  Double_t arg3 =
220  ((x[0] * x[0]) - (par[1] * par[1])) * ((x[0] * x[0]) - (par[1] * par[1]));
221  Double_t arg4 =
222  x[0] * x[0] * x[0] * x[0] * ((par[2] * par[2]) / (par[1] * par[1]));
223  return par[0] * arg1 * arg2 / (arg3 + arg4);
224 }
Definition: DDAxes.h:10
Double_t mygauss ( Double_t *  x,
Double_t *  par 
)

Definition at line 228 of file EcalZmassClient.cc.

References Pi.

Referenced by EcalZmassClient::endRun().

229 {
230  Double_t arg = 0;
231  if (par[2] < 0)
232  par[2] = -par[2]; // par[2]: sigma
233  if (par[2] != 0)
234  arg = (x[0] - par[1]) / par[2]; // par[1]: mean
235  return par[0] * TMath::Exp (-0.5 * arg * arg) / (TMath::Sqrt (2 * TMath::Pi ()) * par[2]); // par[0] is constant
236 
237 }
const double Pi
A arg
Definition: Factorize.h:36
Definition: DDAxes.h:10