CMS 3D CMS Logo

ConeAreaRootFunction.cc
Go to the documentation of this file.
2 
3 // -*- C++ -*-
4 //
5 // Package: ConeAreaRootFunction
6 // Class: ConeAreaRootFunction
7 //
16 //
17 // Original Author: Christian Veelken, UC Davis
18 // Created: Thu Nov 2 13:47:40 CST 2006
19 //
20 //
21 
22 // C++ standard library include files
23 #include <iostream>
24 #include <iomanip>
25 #include <string>
26 
27 // ROOT include files
28 #include <TMath.h>
29 
30 // CMSSW include files
32 
33 //
34 // constructors and destructor
35 //
36 
38 
40  coneArea_ = bluePrint.coneArea_;
41 }
42 
44  //--- nothing to be done yet...
45 }
46 
47 //
48 // assignment operator
49 //
50 
52  ConeAreaFunction::operator=(bluePrint);
53 
54  coneArea_ = bluePrint.coneArea_;
55 
56  return (*this);
57 }
58 
59 //
60 // member functions
61 //
62 
63 void ConeAreaRootFunction::SetParameterConeArea(double coneArea) { coneArea_ = coneArea; }
64 
65 void ConeAreaRootFunction::SetParameters(const double* param) {
66  if (debugLevel_ > 0) {
67  edm::LogVerbatim("") << "<ConeAreaRootFunction::SetParameters>:" << std::endl
68  << " theta0 = " << param[0] << std::endl
69  << " phi0 = " << param[1] << std::endl
70  << " coneArea = " << param[2] << std::endl;
71  }
72 
74 
75  coneArea_ = param[2];
76 }
77 
78 double ConeAreaRootFunction::DoEval(double x) const {
79  //--- calculate difference between area covered by cone of opening angle alpha
80  // (given as function argument and measured from cone axis)
81  // and cone area set as parameter
82 
84 }
ConeAreaRootFunction
Definition: ConeAreaRootFunction.h:29
MessageLogger.h
ConeAreaRootFunction.h
ConeAreaRootFunction::ConeAreaRootFunction
ConeAreaRootFunction()
Definition: ConeAreaRootFunction.cc:37
DDAxes::x
ConeAreaRootFunction::~ConeAreaRootFunction
~ConeAreaRootFunction() override
Definition: ConeAreaRootFunction.cc:43
ConeAreaRootFunction::DoEval
double DoEval(double x) const override
Definition: ConeAreaRootFunction.cc:78
ConeAreaFunction
Definition: ConeAreaFunction.h:33
ConeAreaRootFunction::debugLevel_
static const unsigned int debugLevel_
Definition: ConeAreaRootFunction.h:48
ConeAreaFunction::DoEval
double DoEval(double x) const override
Definition: ConeAreaFunction.cc:127
ConeAreaRootFunction::coneArea_
double coneArea_
Definition: ConeAreaRootFunction.h:46
ConeAreaFunction::operator=
ConeAreaFunction & operator=(const ConeAreaFunction &bluePrint)
Definition: ConeAreaFunction.cc:70
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
genVertex_cff.x
x
Definition: genVertex_cff.py:13
ConeAreaRootFunction::operator=
ConeAreaRootFunction & operator=(const ConeAreaRootFunction &bluePrint)
Definition: ConeAreaRootFunction.cc:51
ConeAreaRootFunction::SetParameterConeArea
void SetParameterConeArea(double coneArea)
Definition: ConeAreaRootFunction.cc:63
ConeAreaFunction::SetParameters
void SetParameters(double const *param) override
Definition: ConeAreaFunction.cc:92
ConeAreaRootFunction::SetParameters
void SetParameters(const double *param) override
Definition: ConeAreaRootFunction.cc:65