CMS 3D CMS Logo

Exercises3.h
Go to the documentation of this file.
1 #ifndef EXERCISES3_H_
2 #define EXERCISES3_H_
3 
10 
11 #include <string>
12 #include <vector>
13 #include <TFile.h>
14 #include <TTree.h>
15 #include <TChain.h>
16 #include <fstream>
17 
18 
19 namespace pftools {
20 class IO;
21 
22 class Exercises3 {
23 public:
24 
26 
27  virtual ~Exercises3();
28 
29  void calibrateCalibratables(TChain& sourceTree,
30  const std::string& exercisefile);
31 
32  //void gaussianFits(TFile& exercisefile, std::vector<Calibratable>& calibs);
33 
37 
38 
39  void evaluateSpaceManager(SpaceManagerPtr s, const std::vector<DetectorElementPtr>& detEls);
40 
41 
43  target_ = t;
44  }
45 
46 
48 
49 private:
50 
51  Exercises3(const Exercises3&) = delete;
52  void operator=(const Exercises3&) = delete;
53 // double lowE_, highE_, lowEta_, highEta_, lowPhi_, highPhi_;
54 // unsigned divE_, divEta_, divPhi_;
57  unsigned threshold_;
58  std::vector<DetectorElementPtr> elements_;
60  std::ofstream calibResultsFile_;
61  unsigned debug_;
63 
64 };
65 }
66 
67 #endif /*EXERCISES3_H_*/
Wraps essential single particle calibration data ready for export to a Root file. ...
Definition: Calibratable.h:122
std::ofstream calibResultsFile_
Definition: Exercises3.h:60
virtual ~Exercises3()
Definition: Exercises3.cc:29
void setTarget(CalibrationTarget t)
Definition: Exercises3.h:42
PFClusterCalibration clusterCalibration_
Definition: Exercises3.h:62
void evaluateCalibrator(SpaceManagerPtr s, CalibratorPtr c, TTree &tree, Calibratable *calibrated, DetectorElementPtr ecal, DetectorElementPtr hcal, DetectorElementPtr offset, CalibrationProvenance cp, CalibrationProvenance cpCorr=NONE)
Definition: Exercises3.cc:393
boost::shared_ptr< SpaceManager > SpaceManagerPtr
Definition: SpaceManager.h:126
CalibrationTarget target_
Definition: Exercises3.h:56
boost::shared_ptr< Calibrator > CalibratorPtr
Definition: Calibrator.h:64
boost::shared_ptr< DetectorElement > DetectorElementPtr
General option file parser.
Definition: Calibratable.h:15
Definition: IO.h:29
Exercises3(IO *options)
Definition: Exercises3.cc:33
std::vector< DetectorElementPtr > elements_
Definition: Exercises3.h:58
Definition: tree.py:1
void calibrateCalibratables(TChain &sourceTree, const std::string &exercisefile)
Definition: Exercises3.cc:98
unsigned threshold_
Definition: Exercises3.h:57
void getCalibrations(SpaceManagerPtr s)
Definition: Exercises3.cc:248
void operator=(const Exercises3 &)=delete
void evaluateSpaceManager(SpaceManagerPtr s, const std::vector< DetectorElementPtr > &detEls)
Definition: Exercises3.cc:264