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 struct stAPVGain {
8  unsigned int Index;
9  int Bin;
10  unsigned int DetId;
11  unsigned int APVId;
12  unsigned int SubDet;
13  float x;
14  float y;
15  float z;
16  float Eta;
17  float R;
18  float Phi;
19  float Thickness;
20  double FitMPV;
21  double FitMPVErr;
22  double FitWidth;
23  double FitWidthErr;
24  double FitChi2;
25  double FitNorm;
26  double Gain;
27  double CalibGain;
28  double PreviousGain;
30  double NEntries;
31  TH1F* HCharge;
32  TH1F* HChargeN;
33  bool isMasked;
34 };
35 
36 struct APVloc {
37 public:
38  APVloc(int v1, int v2, int v3, const std::string& s)
39  : m_subdetectorId(v1), m_subdetectorSide(v2), m_subdetectorPlane(v3), m_string(s) {}
40 
45 
46  bool operator==(const APVloc& a) const {
47  return (m_subdetectorId == a.m_subdetectorId && m_subdetectorSide == a.m_subdetectorSide &&
48  m_subdetectorPlane == a.m_subdetectorPlane);
49  }
50 };
51 
53 
54 #endif
int m_subdetectorPlane
Definition: APVGainStruct.h:43
double FitMPV
Definition: APVGainStruct.h:20
double PreviousGainTick
Definition: APVGainStruct.h:29
unsigned int APVId
Definition: APVGainStruct.h:11
float Thickness
Definition: APVGainStruct.h:19
unsigned int DetId
Definition: APVGainStruct.h:10
std::string m_string
Definition: APVGainStruct.h:44
bool isMasked
Definition: APVGainStruct.h:33
bool operator==(const APVloc &a) const
Definition: APVGainStruct.h:46
double FitWidth
Definition: APVGainStruct.h:22
double Gain
Definition: APVGainStruct.h:26
double PreviousGain
Definition: APVGainStruct.h:28
unsigned int Index
Definition: APVGainStruct.h:8
double FitNorm
Definition: APVGainStruct.h:25
double CalibGain
Definition: APVGainStruct.h:27
double FitMPVErr
Definition: APVGainStruct.h:21
int m_subdetectorId
Definition: APVGainStruct.h:41
double FitChi2
Definition: APVGainStruct.h:24
double NEntries
Definition: APVGainStruct.h:30
double a
Definition: hdecay.h:119
int m_subdetectorSide
Definition: APVGainStruct.h:42
APVloc(int v1, int v2, int v3, const std::string &s)
Definition: APVGainStruct.h:38
statistic_type
Definition: APVGainStruct.h:52
TH1F * HChargeN
Definition: APVGainStruct.h:32
unsigned int SubDet
Definition: APVGainStruct.h:12
TH1F * HCharge
Definition: APVGainStruct.h:31
double FitWidthErr
Definition: APVGainStruct.h:23