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 };
38 
39 struct APVloc {
40 public:
41  APVloc(int v0, int v1, int v2, int v3, const std::string& s)
43 
49 
50  bool operator==(const APVloc& a) const {
51  return (m_subdetectorId == a.m_subdetectorId && m_subdetectorSide == a.m_subdetectorSide &&
52  m_subdetectorPlane == a.m_subdetectorPlane && m_thickness == a.m_thickness);
53  }
54 };
55 
57 
58 #endif
int m_subdetectorPlane
Definition: APVGainStruct.h:47
double FitMPV
Definition: APVGainStruct.h:22
bool operator==(const APVloc &a) const
Definition: APVGainStruct.h:50
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:48
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:45
double FitChi2
Definition: APVGainStruct.h:26
double NEntries
Definition: APVGainStruct.h:33
int m_thickness
Definition: APVGainStruct.h:44
double a
Definition: hdecay.h:119
int m_subdetectorSide
Definition: APVGainStruct.h:46
APVloc(int v0, int v1, int v2, int v3, const std::string &s)
Definition: APVGainStruct.h:41
Definition: APVGainStruct.h:7
statistic_type
Definition: APVGainStruct.h:56
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