CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalTestHistoClass.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_HcalTestHistoClass_H
2 #define SimDataFormats_HcalTestHistoClass_H
3 // File: HcalTestHistoClass.h
5 // Histogram handling class for analysis in HcalTest
7 
9 
10 #include <string>
11 #include <vector>
12 #include <memory>
13 
15 public:
17  explicit HcalTestHistoClass() {}
18  virtual ~HcalTestHistoClass() {}
19 
20  void setCounters();
21  void fillLayers(double el[], double ho, double hbhe, double muxy[]);
22  void fillHits(std::vector<CaloHit>&);
23  void fillQie(int id,
24  double esimtot,
25  double eqietot,
26  int nGroup,
27  const std::vector<double>& longs,
28  const std::vector<double>& longq,
29  int nTower,
30  const std::vector<double>& latphi,
31  const std::vector<double>& latfs,
32  const std::vector<double>& latfq);
33 
34  struct Layer {
35  Layer() {}
36  float e;
37  float muDist;
38  };
39 
40  struct Hit {
41  Hit() {}
42  int layer;
43  int id;
44  float eta;
45  float phi;
46  float e;
47  float t;
48  float jitter;
49  };
50 
51  struct QIE {
52  QIE() {}
53  float sim;
54  float qie;
55  int id;
56  std::vector<float> lats, latq;
57  std::vector<float> lngs, lngq;
58  std::vector<int> tow;
59  };
60 
61 private:
62  const static int nLayersMAX = 20;
63  int nLayers;
64  std::vector<Layer> layers;
65  float eHO, eHBHE;
66 
67  int nHits;
68  std::vector<Hit> hits;
69 
71  std::vector<QIE> qie;
72 };
73 
74 #endif
void fillQie(int id, double esimtot, double eqietot, int nGroup, const std::vector< double > &longs, const std::vector< double > &longq, int nTower, const std::vector< double > &latphi, const std::vector< double > &latfs, const std::vector< double > &latfq)
std::vector< float > latq
void fillLayers(double el[], double ho, double hbhe, double muxy[])
void fillHits(std::vector< CaloHit > &)
std::vector< float > lats
std::vector< float > lngq
std::vector< Layer > layers
std::vector< int > tow
static const int nLayersMAX
std::vector< Hit > hits
std::vector< float > lngs
std::vector< QIE > qie