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 
21 
22 class PedeSteerer;
23 class PedeLabelerBase;
24 class Alignable;
27 
28 namespace edm {
29  class ParameterSet;
30 }
31 
32 /***************************************
33 ****************************************/
34 class PedeReader {
35 public:
38 
40  const PedeSteerer &steerer,
41  const PedeLabelerBase &labels,
42  const RunRange &runrange);
44  ~PedeReader() {}
49  bool read(align::Alignables &alignables, bool setUserVars);
52  template <class T>
53  bool readIfSameLine(std::ifstream &aStream, T &outValue) const;
56  Alignable *setParameter(unsigned int paramLabel, unsigned int bufLength, const float *buf, bool setUserVars) const;
59  unsigned int paramNum,
60  unsigned int bufLength,
61  const float *buf) const;
62 
65  AlignmentParameters *checkAliParams(Alignable *alignable, bool createUserVars) const;
66 
67 private:
68  // PedeReader() {} // no default ctr.
69 
70  std::ifstream myPedeResult;
73  const RunRange myRunRange;
74 
75  static const unsigned int myMaxNumValPerParam;
76 };
77 
78 #endif
SummaryClient_cfi.labels
labels
Definition: SummaryClient_cfi.py:61
edm
HLT enums.
Definition: AlignableModifier.h:19
Alignable
Definition: Alignable.h:27
PedeReader::checkAliParams
AlignmentParameters * checkAliParams(Alignable *alignable, bool createUserVars) const
Definition: PedeReader.cc:271
PedeReader::setCalibrationParameter
bool setCalibrationParameter(IntegratedCalibrationBase *calib, unsigned int paramNum, unsigned int bufLength, const float *buf) const
Set pede results stored in 'buf' to parameter 'paramNum' of IntegratedCalibrationBase.
Definition: PedeReader.cc:239
PedeReader
Definition: PedeReader.h:33
IntegratedCalibrationBase
Definition: IntegratedCalibrationBase.h:40
PedeReader::setParameter
Alignable * setParameter(unsigned int paramLabel, unsigned int bufLength, const float *buf, bool setUserVars) const
Definition: PedeReader.cc:162
PedeReader::RunNumber
PedeLabelerBase::RunNumber RunNumber
Definition: PedeReader.h:35
PedeReader::read
bool read(align::Alignables &alignables, bool setUserVars)
Definition: PedeReader.cc:56
PedeLabelerBase.h
PedeReader::myMaxNumValPerParam
static const unsigned int myMaxNumValPerParam
Definition: PedeReader.h:74
PedeReader::RunRange
PedeLabelerBase::RunRange RunRange
Definition: PedeReader.h:36
AlignmentParameters
Definition: AlignmentParameters.h:35
config
Definition: config.py:1
PedeReader::readIfSameLine
bool readIfSameLine(std::ifstream &aStream, T &outValue) const
Definition: PedeReader.cc:130
PedeReader::myLabels
const PedeLabelerBase & myLabels
Definition: PedeReader.h:71
PedeLabelerBase::RunRange
align::RunRange RunRange
Definition: PedeLabelerBase.h:36
PedeReader::myRunRange
const RunRange myRunRange
Definition: PedeReader.h:72
calib
Definition: CalibElectron.h:12
PedeReader::mySteerer
const PedeSteerer & mySteerer
Definition: PedeReader.h:70
PedeReader::PedeReader
PedeReader(const edm::ParameterSet &config, const PedeSteerer &steerer, const PedeLabelerBase &labels, const RunRange &runrange)
Definition: PedeReader.cc:35
edm::ParameterSet
Definition: ParameterSet.h:36
ParameterSet
Definition: Functions.h:16
PedeReader::myPedeResult
std::ifstream myPedeResult
Definition: PedeReader.h:69
PedeLabelerBase
Definition: PedeLabelerBase.h:33
Utilities.h
PedeReader::~PedeReader
~PedeReader()
non virtual destructor: do not inherit from this class
Definition: PedeReader.h:43
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
volumeBasedMagneticField_160812_cfi.paramLabel
paramLabel
Definition: volumeBasedMagneticField_160812_cfi.py:37
align::Alignables
std::vector< Alignable * > Alignables
Definition: Utilities.h:31
PedeSteerer
Definition: PedeSteerer.h:36
T
long double T
Definition: Basic3DVectorLD.h:48
PedeLabelerBase::RunNumber
align::RunNumber RunNumber
Definition: PedeLabelerBase.h:35