CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TotemTestHistoClass.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_Forward_TotemTestHistoClass_h
2 #define SimDataFormats_Forward_TotemTestHistoClass_h 1
3 // -*- C++ -*-
4 //
5 // Package: Forward
6 // Class : TotemTestHistoClass
7 //
16 //
17 // Original Author:
18 // Created: Tue May 16 10:14:34 CEST 2006
19 //
20 
21 // system include files
22 #include <vector>
23 
24 // user include files
25 
27 public:
28  // ---------- Constructor and destructor -----------------
29  explicit TotemTestHistoClass();
30  virtual ~TotemTestHistoClass();
31 
32  struct Hit {
33  Hit() {}
34  int UID;
35  int Ptype;
36  int TID;
37  int PID;
38  float ELoss;
39  float PABS;
40  float x;
41  float y;
42  float z;
43  float vx;
44  float vy;
45  float vz;
46  };
47 
48  // ---------- Member functions ---------------------------
49  int getEVT() const { return evt; }
50  int getNHit() const { return hits; }
51  std::vector<Hit> getHits() const { return hit; }
52 
53  void setEVT(int v) { evt = v; }
54  void fillHit(int uID,
55  int pType,
56  int tID,
57  int pID,
58  float eLoss,
59  float pAbs,
60  float vX,
61  float vY,
62  float vZ,
63  float x,
64  float y,
65  float z);
66 
67 private:
68  // ---------- Private Data members -----------------------
69  int evt, hits;
70  std::vector<Hit> hit;
71 };
72 
73 #endif
static const int tID
Definition: TopGenEvent.h:12
std::vector< Hit > hit
void fillHit(int uID, int pType, int tID, int pID, float eLoss, float pAbs, float vX, float vY, float vZ, float x, float y, float z)
std::vector< Hit > getHits() const