CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
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(double *param)
T x() const
Cartesian x coordinate.
double DoEval(double x) const
double DoEval(double x) const
void SetParameterConeArea(double coneArea)
ConeAreaRootFunction & operator=(const ConeAreaRootFunction &bluePrint)
void SetParameters(double *param)
static const unsigned int debugLevel_
ConeAreaFunction & operator=(const ConeAreaFunction &bluePrint)