CMS 3D CMS Logo

APVGainStruct.h
Go to the documentation of this file.
1 #ifndef CALIBTRACKER_SISTRIPCHANNELGAIN_STAPVGAIN_H
2 #define CALIBTRACKER_SISTRIPCHANNELGAIN_STAPVGAIN_H
3 
4 class TH1F;
5 #include <string>
6 
7 enum fitgrade { NONE = -1, A = 1, B = 2 };
8 
9 struct stAPVGain {
10  unsigned int Index;
11  int Bin;
12  unsigned int DetId;
13  unsigned int APVId;
14  unsigned int SubDet;
15  float x;
16  float y;
17  float z;
18  float Eta;
19  float R;
20  float Phi;
21  float Thickness;
22  double FitMPV;
23  double FitMPVErr;
24  double FitWidth;
25  double FitWidthErr;
26  double FitChi2;
27  double FitNorm;
29  double Gain;
30  double CalibGain;
31  double PreviousGain;
33  double NEntries;
34  TH1F* HCharge;
35  TH1F* HChargeN;
36  bool isMasked;
37  char Side;
38 };
39 
40 struct APVloc {
41 public:
42  APVloc(int v0, int v1, int v2, int v3, const std::string& s)
44 
50 
51  bool operator==(const APVloc& a) const {
52  return (m_subdetectorId == a.m_subdetectorId && m_subdetectorSide == a.m_subdetectorSide &&
53  m_subdetectorPlane == a.m_subdetectorPlane && m_thickness == a.m_thickness);
54  }
55 };
56 
58 
59 #endif
int m_subdetectorPlane
Definition: APVGainStruct.h:48
double FitMPV
Definition: APVGainStruct.h:22
bool operator==(const APVloc &a) const
Definition: APVGainStruct.h:51
Definition: APVGainStruct.h:7
double PreviousGainTick
Definition: APVGainStruct.h:32
unsigned int APVId
Definition: APVGainStruct.h:13
float Thickness
Definition: APVGainStruct.h:21
fitgrade FitGrade
Definition: APVGainStruct.h:28
unsigned int DetId
Definition: APVGainStruct.h:12
std::string m_string
Definition: APVGainStruct.h:49
bool isMasked
Definition: APVGainStruct.h:36
fitgrade
Definition: APVGainStruct.h:7
double FitWidth
Definition: APVGainStruct.h:24
double Gain
Definition: APVGainStruct.h:29
double PreviousGain
Definition: APVGainStruct.h:31
unsigned int Index
Definition: APVGainStruct.h:10
double FitNorm
Definition: APVGainStruct.h:27
double CalibGain
Definition: APVGainStruct.h:30
double FitMPVErr
Definition: APVGainStruct.h:23
int m_subdetectorId
Definition: APVGainStruct.h:46
double FitChi2
Definition: APVGainStruct.h:26
double NEntries
Definition: APVGainStruct.h:33
int m_thickness
Definition: APVGainStruct.h:45
double a
Definition: hdecay.h:121
int m_subdetectorSide
Definition: APVGainStruct.h:47
APVloc(int v0, int v1, int v2, int v3, const std::string &s)
Definition: APVGainStruct.h:42
Definition: APVGainStruct.h:7
statistic_type
Definition: APVGainStruct.h:57
TH1F * HChargeN
Definition: APVGainStruct.h:35
unsigned int SubDet
Definition: APVGainStruct.h:14
TH1F * HCharge
Definition: APVGainStruct.h:34
double FitWidthErr
Definition: APVGainStruct.h:25