CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
10 
11 #include <boost/cstdint.hpp>
12 #include <string>
13 #include <vector>
14 #include <memory>
15 
17 
18 public:
19 
21  explicit HcalTestHistoClass() {}
22  virtual ~HcalTestHistoClass() {}
23 
24  void setCounters();
25  void fillLayers (double el[], double ho, double hbhe, double muxy[]);
26  void fillHits (std::vector<CaloHit>&);
27  void fillQie (int id, double esimtot, double eqietot, int nGroup,
28  const std::vector<double>& longs, const std::vector<double>& longq,
29  int nTower, const std::vector<double>& latphi,
30  const std::vector<double>& latfs, const std::vector<double>& latfq);
31 
32  struct Layer {
33  Layer() {}
34  float e;
35  float muDist;
36  };
37 
38  struct Hit {
39  Hit() {}
40  int layer;
41  int id;
42  float eta;
43  float phi;
44  float e;
45  float t;
46  float jitter;
47  };
48 
49  struct QIE {
50  QIE() {}
51  float sim;
52  float qie;
53  int id;
54  std::vector<float> lats, latq;
55  std::vector<float> lngs, lngq;
56  std::vector<int> tow;
57  };
58 
59 private:
60 
61  const static int nLayersMAX = 20;
62  int nLayers;
63  std::vector<Layer> layers;
64  float eHO, eHBHE;
65 
66  int nHits;
67  std::vector<Hit> hits;
68 
70  std::vector<QIE> qie;
71 
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)
int i
Definition: DBlmapReader.cc:9
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