CMS 3D CMS Logo

CalibCompare.h
Go to the documentation of this file.
1 #ifndef CALIBCOMPARE_H_
2 #define CALIBCOMPARE_H_
3 
11 
12 #include <string>
13 #include <vector>
14 #include <TFile.h>
15 #include <TTree.h>
16 #include <TChain.h>
17 #include <fstream>
18 
19 
20 namespace pftools {
21 class IO;
22 
23 class CalibCompare {
24 public:
25 
27 
28  virtual ~CalibCompare();
29 
30  void calibrateCalibratables(TChain& sourceTree,
31  const std::string& exercisefile);
32 
33 
35  target_ = t;
36  }
37 
38 
39  void evaluateCalibrations(TTree& tree, pftools::Calibratable* calibrated, const std::vector<pftools::Calibratable>& calibVec);
40 
41 private:
42 
43  CalibCompare(const CalibCompare&);
44  void operator=(const CalibCompare&);
45 // double lowE_, highE_, lowEta_, highEta_, lowPhi_, highPhi_;
46 // unsigned divE_, divEta_, divPhi_;
50  unsigned debug_;
51 
52  double mlpOffset_;
53  double mlpSlope_;
56 
57 };
58 }
59 
60 #endif /*CALIBCOMPARE_H_*/
Wraps essential single particle calibration data ready for export to a Root file. ...
Definition: Calibratable.h:122
void calibrateCalibratables(TChain &sourceTree, const std::string &exercisefile)
Definition: CalibCompare.cc:93
void setTarget(CalibrationTarget t)
Definition: CalibCompare.h:34
CalibCompare(IO *options)
Definition: CalibCompare.cc:28
void evaluateCalibrations(TTree &tree, pftools::Calibratable *calibrated, const std::vector< pftools::Calibratable > &calibVec)
CalibrationTarget target_
Definition: CalibCompare.h:48
General option file parser.
Definition: Calibratable.h:15
Definition: IO.h:29
Definition: tree.py:1
PFClusterCalibration clusterCalibration_
Definition: CalibCompare.h:54
void operator=(const CalibCompare &)