CMS 3D CMS Logo

PedeReader.h
Go to the documentation of this file.
1 #ifndef MILLEPEDEPEDEREADER_H
2 #define MILLEPEDEPEDEREADER_H
3 
16 #include <fstream>
17 #include <vector>
18 
20 
21 class PedeSteerer;
22 class PedeLabelerBase;
23 class Alignable;
26 
27 namespace edm {
28  class ParameterSet;
29 }
30 
31 /***************************************
32 ****************************************/
34 {
35  public:
36 
39 
40  PedeReader(const edm::ParameterSet &config, const PedeSteerer &steerer,
41  const PedeLabelerBase &labels, const RunRange &runrange);
48  bool read(std::vector<Alignable*> &alignables, bool setUserVars);
51  template<class T>
52  bool readIfSameLine(std::ifstream &aStream, T &outValue) const;
55  Alignable* setParameter(unsigned int paramLabel, unsigned int bufLength, const float *buf,
56  bool setUserVars) const;
58  bool setCalibrationParameter(IntegratedCalibrationBase* calib, unsigned int paramNum,
59  unsigned int bufLength, const float *buf) const;
60 
63  AlignmentParameters* checkAliParams(Alignable *alignable, bool createUserVars) const;
64  private:
65  // PedeReader() {} // no default ctr.
66 
67  std::ifstream myPedeResult;
70  const RunRange myRunRange;
71 
72  static const unsigned int myMaxNumValPerParam;
73 };
74 
75 #endif
~PedeReader()
non virtual destructor: do not inherit from this class
Definition: PedeReader.h:43
const PedeSteerer & mySteerer
Definition: PedeReader.h:68
std::ifstream myPedeResult
Definition: PedeReader.h:67
Definition: config.py:1
align::RunNumber RunNumber
align::RunRange RunRange
PedeLabelerBase::RunRange RunRange
Definition: PedeReader.h:38
HLT enums.
static const unsigned int myMaxNumValPerParam
Definition: PedeReader.h:72
PedeLabelerBase::RunNumber RunNumber
Definition: PedeReader.h:37
long double T
const PedeLabelerBase & myLabels
Definition: PedeReader.h:69
const RunRange myRunRange
Definition: PedeReader.h:70