test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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;
71 
72  static const unsigned int myMaxNumValPerParam;
73 };
74 
75 #endif
AlignmentAlgorithmBase::RunNumber RunNumber
~PedeReader()
non virtual destructor: do not inherit from this class
Definition: PedeReader.h:43
PedeReader(const edm::ParameterSet &config, const PedeSteerer &steerer, const PedeLabelerBase &labels, const RunRange &runrange)
Definition: PedeReader.cc:33
AlignmentParameters * checkAliParams(Alignable *alignable, bool createUserVars) const
Definition: PedeReader.cc:261
bool read(std::vector< Alignable * > &alignables, bool setUserVars)
Definition: PedeReader.cc:52
AlignmentAlgorithmBase::RunRange RunRange
const PedeSteerer & mySteerer
Definition: PedeReader.h:68
std::ifstream myPedeResult
Definition: PedeReader.h:67
MVATrainerComputer * calib
Definition: MVATrainer.cc:64
Alignable * setParameter(unsigned int paramLabel, unsigned int bufLength, const float *buf, bool setUserVars) const
Definition: PedeReader.cc:157
bool readIfSameLine(std::ifstream &aStream, T &outValue) const
Definition: PedeReader.cc:126
PedeLabelerBase::RunRange RunRange
Definition: PedeReader.h:38
static const unsigned int myMaxNumValPerParam
Definition: PedeReader.h:72
PedeLabelerBase::RunNumber RunNumber
Definition: PedeReader.h:37
bool setCalibrationParameter(IntegratedCalibrationBase *calib, unsigned int paramNum, unsigned int bufLength, const float *buf) const
Set pede results stored in &#39;buf&#39; to parameter &#39;paramNum&#39; of IntegratedCalibrationBase.
Definition: PedeReader.cc:231
long double T
const PedeLabelerBase & myLabels
Definition: PedeReader.h:69
const RunRange myRunRange
Definition: PedeReader.h:70