HitTower.h
Go to the documentation of this file.
1 ///
2 /// \file HitTower.h
3 /// \brief Plot hits (Raw, Calib, ...) as a tower in 3D
4 /// \author messier@indiana.edu
5 /// \version $Id: HitTower.h,v 1.1.1.1 2010-11-10 19:44:54 p-novaart Exp $
6 ///
7 #ifndef EVD_HITTOWER_H
8 #define EVD_HITTOWER_H
9 #include <vector>
10 namespace evdb { class View3D; }
11 namespace geo { class Geometry; }
12 
13 namespace evd {
14  /// Some glue so that hits of various types call all use the HitTower class.
15  class HitData
16  {
17  public:
18  HitData(int v, int p, int c, float tp, float zp, float q, float t);
19  public:
20  int fView; ///< Which view is the hit in? (X or Y)
21  int fPlane; ///< Which plane?
22  int fCell; ///< Which cell?
23  float fTpos; ///< Transverse position (X or Y, cm)
24  float fZpos; ///< Longitudinal postiion (Z, cm)
25  float fQ; ///< Charge (arb. units)
26  float fT; ///< Time (arb. units)
27  };
28 
29  /// Allow for rendering of detector hits as towers on the detector
30  class HitTower
31  {
32  public:
33  void AddHit(int v, int p, int c, float tp, float zp, float q, float t);
34  void Draw(evdb::View3D* view);
35  public:
36  double fQscale; ///< Charge scale factor
37  std::vector<HitData> fHitData;
38  };
39 }
40 #endif
41 ////////////////////////////////////////////////////////////////////////
tree Draw("slc.nhit")
float fQ
Charge (arb. units)
Definition: HitTower.h:25
float fTpos
Transverse position (X or Y, cm)
Definition: HitTower.h:23
float fT
Time (arb. units)
Definition: HitTower.h:26
const char * p
Definition: xmltok.h:285
Manage all things related to colors for the event display.
Definition: Display3DPad.h:11
float fZpos
Longitudinal postiion (Z, cm)
Definition: HitTower.h:24
nova event display
int fCell
Which cell?
Definition: HitTower.h:22
Allow for rendering of detector hits as towers on the detector.
Definition: HitTower.h:30
int fPlane
Which plane?
Definition: HitTower.h:21
std::vector< HitData > fHitData
Definition: HitTower.h:37
double fQscale
Charge scale factor.
Definition: HitTower.h:36
int fView
Which view is the hit in? (X or Y)
Definition: HitTower.h:20
Helper for AttenCurve.
Definition: Path.h:10
Some glue so that hits of various types call all use the HitTower class.
Definition: HitTower.h:15