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

190 {
191  Double_t arg1 = 14.0 / 22.0; // 2 over pi
192  Double_t arg2 = par[1] * par[1] * par[2] * par[2]; //Gamma=par[2] M=par[1]
193  Double_t arg3 =
194  ((x[0] * x[0]) - (par[1] * par[1])) * ((x[0] * x[0]) - (par[1] * par[1]));
195  Double_t arg4 =
196  x[0] * x[0] * x[0] * x[0] * ((par[2] * par[2]) / (par[1] * par[1]));
197  return par[0] * arg1 * arg2 / (arg3 + arg4);
198 }
Definition: DDAxes.h:10
Double_t mygauss ( Double_t *  x,
Double_t *  par 
)

Definition at line 202 of file EcalZmassClient.cc.

References Pi.

Referenced by EcalZmassClient::endRun().

203 {
204  Double_t arg = 0;
205  if (par[2] < 0)
206  par[2] = -par[2]; // par[2]: sigma
207  if (par[2] != 0)
208  arg = (x[0] - par[1]) / par[2]; // par[1]: mean
209  return par[0] * TMath::Exp (-0.5 * arg * arg) / (TMath::Sqrt (2 * TMath::Pi ()) * par[2]); // par[0] is constant
210 
211 }
const double Pi
A arg
Definition: Factorize.h:36
Definition: DDAxes.h:10