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 
39 {
40  coneArea_ = 0;
41 }
42 
44  : ConeAreaFunction(bluePrint)
45 {
46  coneArea_ = bluePrint.coneArea_;
47 }
48 
50 {
51 //--- nothing to be done yet...
52 }
53 
54 //
55 // assignment operator
56 //
57 
59 {
60  ConeAreaFunction::operator=(bluePrint);
61 
62  coneArea_ = bluePrint.coneArea_;
63 
64  return (*this);
65 }
66 
67 //
68 // member functions
69 //
70 
72 {
73  coneArea_ = coneArea;
74 }
75 
76 void ConeAreaRootFunction::SetParameters(const double* param)
77 {
78  if ( debugLevel_ > 0 ) {
79  edm::LogVerbatim("") << "<ConeAreaRootFunction::SetParameters>:" << std::endl
80  << " theta0 = " << param[0] << std::endl
81  << " phi0 = " << param[1] << std::endl
82  << " coneArea = " << param[2] << std::endl;
83  }
84 
86 
87  coneArea_ = param[2];
88 }
89 
90 double ConeAreaRootFunction::DoEval(double x) const
91 {
92 //--- calculate difference between area covered by cone of opening angle alpha
93 // (given as function argument and measured from cone axis)
94 // and cone area set as parameter
95 
97 }
void SetParameters(const double *param) override
void SetParameters(double const *param) override
void SetParameterConeArea(double coneArea)
ConeAreaRootFunction & operator=(const ConeAreaRootFunction &bluePrint)
double DoEval(double x) const override
static const unsigned int debugLevel_
ConeAreaFunction & operator=(const ConeAreaFunction &bluePrint)
double DoEval(double x) const override