CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TPedValues.h
Go to the documentation of this file.
1 #ifndef TPedValues_h
2 #define TPedValues_h
3 
13 #include <vector>
14 
15 #include "TFile.h"
16 #include "TSinglePedEntry.h"
17 #include "TPedResult.h"
18 
20 {
21  public:
22 
24  TPedValues (double RMSmax = 2 , int bestPedestal = 200) ;
25 
27  TPedValues (const TPedValues & orig) ;
28 
30  ~TPedValues () ;
31 
33  void insert (const int gainId,
34  const int crystal,
35  const int DAC,
36  const int pedestal,
37  const int endcapIndex) ;
38 
40  TPedResult terminate (const int & DACstart = 0, const int & DACend = 256) const ;
41 
43  int checkEntries (const int & DACstart = 0, const int & DACend = 256) const ;
44 
46  int makePlots (TFile * rootFile, const std::string & dirName, const double maxSlopeAllowed,
47  const double minSlopeAllowed, const double maxChi2OverNDF) const ;
48 
50  int getCrystalNumber(int xtal) const;
51 
52  private:
53 
54  TSinglePedEntry m_entries[3][1700][256] ;
55  // 1,305,600 elements
57  double m_RMSmax ;
58  // store the EE index as 100*elecId.towerId()+5*(elecId.stripId()-1)+elecId.xtalId()
60 
61 } ;
62 
63 
64 #endif
tuple maxChi2OverNDF
Definition: MergeJob_cfg.py:56
TSinglePedEntry m_entries[3][1700][256]
Definition: TPedValues.h:54
int gainId(sample_type sample)
get the gainId (2 bits)
int makePlots(TFile *rootFile, const std::string &dirName, const double maxSlopeAllowed, const double minSlopeAllowed, const double maxChi2OverNDF) const
create a plot of the DAC pedestal trend
Definition: TPedValues.cc:178
TPedValues(double RMSmax=2, int bestPedestal=200)
ctor
Definition: TPedValues.cc:17
int m_bestPedestal
Definition: TPedValues.h:56
Transient container for a single entry in pedestal offset studies.
TPedResult terminate(const int &DACstart=0, const int &DACend=256) const
calculate the offset values for all the containers
Definition: TPedValues.cc:83
int getCrystalNumber(int xtal) const
return the index from the table
Definition: TPedValues.cc:277
int checkEntries(const int &DACstart=0, const int &DACend=256) const
check whether the scan was complete in the range
Definition: TPedValues.cc:135
double m_RMSmax
Definition: TPedValues.h:57
int endcapCrystalNumbers[1700]
Definition: TPedValues.h:59
void insert(const int gainId, const int crystal, const int DAC, const int pedestal, const int endcapIndex)
add a single value
Definition: TPedValues.cc:47
~TPedValues()
dtor
Definition: TPedValues.cc:44
Transient container right DAC values for each crystal and each gain $Date: $Revision: ...