CMS 3D CMS Logo

ZLineShape.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_Utilities_ZLineShape_h
2 #define PhysicsTools_Utilities_ZLineShape_h
7 
8 namespace funct {
9  class ZLineShape {
10  public:
11  ZLineShape(const Parameter& m, const Parameter& g, const Parameter& Ng, const Parameter& Ni)
12  : Ngamma(Ng.ptr()), Nint(Ni.ptr()), bw_(m, g), gp_(), gzi_(m, g) {}
13  ZLineShape(std::shared_ptr<double> m,
14  std::shared_ptr<double> g,
15  std::shared_ptr<double> Ng,
16  std::shared_ptr<double> Ni)
17  : Ngamma(Ng), Nint(Ni), bw_(m, g), gp_(), gzi_(m, g) {}
18  double operator()(double x) const { return (1.0 - *Nint - *Ngamma) * bw_(x) + *Ngamma * gp_(x) + *Nint * gzi_(x); }
19  std::shared_ptr<double> Ngamma, Nint;
20 
21  private:
25  };
26 
27 } // namespace funct
28 
29 #endif
GammaZInterference.h
funct::Parameter
Definition: Parameter.h:8
funct::ZLineShape::ZLineShape
ZLineShape(const Parameter &m, const Parameter &g, const Parameter &Ng, const Parameter &Ni)
Definition: ZLineShape.h:11
BreitWigner.h
funct::BreitWigner
Definition: BreitWigner.h:10
Parameter.h
funct::ZLineShape::Nint
std::shared_ptr< double > Nint
Definition: ZLineShape.h:19
funct::ZLineShape::gp_
GammaPropagator gp_
Definition: ZLineShape.h:23
funct::GammaPropagator
Definition: GammaPropagator.h:6
funct::m
m
Definition: Factorize.h:45
funct::GammaZInterference
Definition: GammaZInterference.h:9
GammaPropagator.h
funct::ZLineShape::operator()
double operator()(double x) const
Definition: ZLineShape.h:18
funct::ZLineShape::Ngamma
std::shared_ptr< double > Ngamma
Definition: ZLineShape.h:19
funct::ZLineShape::gzi_
GammaZInterference gzi_
Definition: ZLineShape.h:24
funct::ZLineShape::ZLineShape
ZLineShape(std::shared_ptr< double > m, std::shared_ptr< double > g, std::shared_ptr< double > Ng, std::shared_ptr< double > Ni)
Definition: ZLineShape.h:13
funct::ZLineShape
Definition: ZLineShape.h:9
funct
Definition: Abs.h:5
funct::ZLineShape::bw_
BreitWigner bw_
Definition: ZLineShape.h:22
g
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4