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;
25 
26 namespace edm {
27  class ParameterSet;
28 }
29 
30 /***************************************
31 ****************************************/
33 {
34  public:
35 
38 
39  PedeReader(const edm::ParameterSet &config, const PedeSteerer &steerer,
40  const PedeLabelerBase &labels, const RunRange &runrange);
45  bool read(std::vector<Alignable*> &alignables, bool setUserVars);
48  template<class T>
49  bool readIfSameLine(std::ifstream &aStream, T &outValue) const;
52  Alignable* setParameter(unsigned int paramLabel, unsigned int bufLength, float *buf,
53  bool setUserVars) const;
56  AlignmentParameters* checkAliParams(Alignable *alignable, bool createUserVars) const;
57  private:
58  // PedeReader() {} // no default ctr.
59 
60  std::ifstream myPedeResult;
64 
65  static const unsigned int myMaxNumValPerParam;
66 };
67 
68 #endif
AlignmentAlgorithmBase::RunNumber RunNumber
~PedeReader()
non virtual destructor: do not inherit from this class
Definition: PedeReader.h:42
PedeReader(const edm::ParameterSet &config, const PedeSteerer &steerer, const PedeLabelerBase &labels, const RunRange &runrange)
Definition: PedeReader.cc:31
AlignmentParameters * checkAliParams(Alignable *alignable, bool createUserVars) const
Definition: PedeReader.cc:207
bool read(std::vector< Alignable * > &alignables, bool setUserVars)
Definition: PedeReader.cc:50
AlignmentAlgorithmBase::RunRange RunRange
const PedeSteerer & mySteerer
Definition: PedeReader.h:61
std::ifstream myPedeResult
Definition: PedeReader.h:60
bool readIfSameLine(std::ifstream &aStream, T &outValue) const
Definition: PedeReader.cc:103
PedeLabelerBase::RunRange RunRange
Definition: PedeReader.h:37
static const unsigned int myMaxNumValPerParam
Definition: PedeReader.h:65
PedeLabelerBase::RunNumber RunNumber
Definition: PedeReader.h:36
long double T
Alignable * setParameter(unsigned int paramLabel, unsigned int bufLength, float *buf, bool setUserVars) const
Definition: PedeReader.cc:134
const PedeLabelerBase & myLabels
Definition: PedeReader.h:62
const RunRange myRunRange
Definition: PedeReader.h:63