All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CalorPad.h
Go to the documentation of this file.
1 ///
2 /// \file CalorPad.h
3 /// \brief Drawing pad showing calorimetric particle ID information
4 /// \author msoderbe@syr.edu
5 ///
6 #ifndef EVD_CALORPAD_H
7 #define EVD_CALORPAD_H
8 
10 
11 #include <string>
12 
13 class TGraph;
14 
15 namespace evdb { class View2D; }
16 
17 namespace evd {
18 
19  /// A drawing pad showing calorimetric particle ID information
20 
21  class CalorPad : public DrawingPad {
22  public:
23  // Constructor, destructor.
24  CalorPad(const char* name, const char* title,
25  double x1, double y1,
26  double x2, double y2,
27  int curvetype);
28  ~CalorPad();
29 
30  // Methods.
31  void Draw(const char* opt=0);
32  void DrawRefCurves();
33 
34  private:
35 
36  std::string fROOTfile;
37  TGraph *dedx_range_pro; ///< proton template
38  TGraph *dedx_range_ka; ///< kaon template
39  TGraph *dedx_range_pi; ///< pion template
40  TGraph *dedx_range_mu; ///< muon template
41 
42  TGraph *ke_range_pro; ///< proton template
43  TGraph *ke_range_ka; ///< kaon template
44  TGraph *ke_range_pi; ///< pion template
45  TGraph *ke_range_mu; ///< muon template
46  int fcurvetype; //dEdx vs. Res. range, or Kinetic Energy vs. range
47 
48  evdb::View2D* fView; ///< Collection of graphics objects to render; text labels
49 
50  };
51 }
52 
53 #endif
54 ////////////////////////////////////////////////////////////////////////
void DrawRefCurves()
Definition: CalorPad.cxx:135
int fcurvetype
Definition: CalorPad.h:46
void Draw(const char *opt=0)
Definition: CalorPad.cxx:94
TGraph * ke_range_pi
pion template
Definition: CalorPad.h:44
evdb::View2D * fView
Collection of graphics objects to render; text labels.
Definition: CalorPad.h:48
TGraph * dedx_range_pi
pion template
Definition: CalorPad.h:39
std::string fROOTfile
Definition: CalorPad.h:36
Base class for all event display drawing pads.
CalorPad(const char *name, const char *title, double x1, double y1, double x2, double y2, int curvetype)
Definition: CalorPad.cxx:44
A drawing pad showing calorimetric particle ID information.
Definition: CalorPad.h:21
Base class for event display drawing pads.
Definition: DrawingPad.h:29
TGraph * ke_range_ka
kaon template
Definition: CalorPad.h:43
TGraph * ke_range_pro
proton template
Definition: CalorPad.h:42
then echo fcl name
TGraph * dedx_range_ka
kaon template
Definition: CalorPad.h:38
TGraph * ke_range_mu
muon template
Definition: CalorPad.h:45
TGraph * dedx_range_mu
muon template
Definition: CalorPad.h:40
TGraph * dedx_range_pro
proton template
Definition: CalorPad.h:37