EMComponent.h
Go to the documentation of this file.
1 
12 #ifndef _tls_EMComponent_h_
13 #define _tls_EMComponent_h_
14 
15 #include <tls/VEMComponent.h>
16 
17 #include <boost/shared_ptr.hpp>
18 
19 namespace utl { class Branch; }
20 
21 namespace tls {
22 
43  class EMComponent {
44  public:
45 
46  EMComponent(utl::Branch branch);
47  virtual ~EMComponent() {};
48 
50  inline
51  double SignalRatio(double x, double y, double rmu, double theta, double phi)
52  {
53  return fEMComponent->SignalRatio(x,y,rmu,theta,phi);
54  }
55 
57  inline
58  double TotalSignalFraction(double x, double y, double rmu, double theta, double phi)
59  {
60  const double emRatio = fEMComponent->SignalRatio(x,y,rmu,theta,phi);
61  return emRatio > 0.0 ? 1.0 - 1.0/(1.0+emRatio) : 0.0;
62  }
63 
64  virtual double GetThetaMax(){return fEMComponent->GetThetaMax();}
65 
66  virtual double GetThetaMin(){return fEMComponent->GetThetaMin();}
67 
68  private:
69 
70  boost::shared_ptr<tls::VEMComponent> fEMComponent;
71 
72  };
73 
74 } // tls
75 
76 
77 #endif // _tls_EMComponent_h_
78 
79 // Configure (x)emacs for this file ...
80 // Local Variables:
81 // mode:c++
82 // compile-command: "make -C .. -k"
83 // End:
Facade for any instance of EMComponent.
Definition: EMComponent.h:43
virtual double GetThetaMin()
Definition: EMComponent.h:66
Class representing a document branch.
Definition: Branch.h:107
virtual ~EMComponent()
Definition: EMComponent.h:47
double TotalSignalFraction(double x, double y, double rmu, double theta, double phi)
Ratio between electromagnetic and total signal.
Definition: EMComponent.h:58
double SignalRatio(double x, double y, double rmu, double theta, double phi)
Ratio between electromagnetic and muon signal.
Definition: EMComponent.h:51
virtual double GetThetaMax()
Definition: EMComponent.h:64
boost::shared_ptr< tls::VEMComponent > fEMComponent
Definition: EMComponent.h:70

, generated on Tue Sep 26 2023.