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