CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
global_linear_Check Class Reference

#include <global_linear.h>

Inheritance diagram for global_linear_Check:
AlgoCheck

Public Member Functions

 global_linear_Check ()
 
 ~global_linear_Check ()
 
- Public Member Functions inherited from AlgoCheck
 AlgoCheck ()
 the ctor of the derived class has to fill the members constraintsE_,S_ More...
 
bool check (parS_type &ps, parE_type &pe, std::string &err)
 returns true if the check was successfull (parameters conform to XML specification) More...
 
virtual ~AlgoCheck ()
 

Additional Inherited Members

- Public Types inherited from AlgoCheck
typedef std::map< std::string,
ConstraintE
constraintsE_type
 
typedef std::map< std::string,
ConstraintS
constraintsS_type
 
- Protected Member Functions inherited from AlgoCheck
bool checkBounds (parE_type::iterator pit, constraintsE_type::iterator cit, std::string &err)
 
bool checkStrings (parS_type::iterator sit, constraintsS_type::iterator cit, std::string &err)
 
- Static Protected Member Functions inherited from AlgoCheck
static std::string d2s (double x)
 ahh, converts a double into a std::string ... yet another one of this kind! More...
 
- Protected Attributes inherited from AlgoCheck
constraintsE_type constraintsE_
 format: "ParameterName" -> ConstraintE More...
 
constraintsS_type constraintsS_
 format: "ParameterName" -> ConstraintS More...
 

Detailed Description

Definition at line 99 of file global_linear.h.

Constructor & Destructor Documentation

global_linear_Check::global_linear_Check ( )

Definition at line 189 of file global_linear.cc.

References AlgoCheck::constraintsE_, and MAX_DOUBLE.

190 {
191  // for the time being only expression-valued parameters can be automatically checked
192  // against their specified constraints
193 
194  // schema default values will be shown if necessary in the following XML comments
195  // on the second line. The fist shows the values as given in the instance document
196 
197  // expressions have to be converted into doubles. No variables [bla] shall be allowed
198  // inside the expressions; SystemOfUnits-symbols are the only supported ones.
199 
200 
201  constraintsE_["theta"] = ConstraintE( 1, // minOccurs
202  1, // maxOccurs
203  0*deg, // min
204  180*deg, // max
205  true, // use, true=required, false=optional
206  false, // use, true=use default, false=no default
207  0.
208  );
209 
210  constraintsE_["phi"] = ConstraintE( 1, // minOccurs
211  1, // maxOccurs
212  0*deg, // min
213  360*deg, // max
214  true, // use, true=required, false=optional
215  false, // use, true=use default, false=no default
216  0.
217  );
218 
219  constraintsE_["delta"] = ConstraintE( 1, // minOccurs
220  1, // maxOccurs
221  -MAX_DOUBLE, // min
222  +MAX_DOUBLE, // max
223  true, // use, true=required, false=optional
224  false, // use, true=use default, false=no default
225  0.
226  );
227 
228  constraintsE_["offset"] = ConstraintE( 1, // minOccurs
229  1, // maxOccurs
230  -MAX_DOUBLE, // min
231  +MAX_DOUBLE, // max
232  false, // use, true=required, false=optional
233  true, // use, true=use default, false=no default
234  0
235  );
236 
237  constraintsE_["base"] = ConstraintE( 3, // minOccurs
238  3, // maxOccurs
239  -MAX_DOUBLE, // min
240  +MAX_DOUBLE, // max
241  false, // use, true=required, false=optional
242  false, // use, true=use default, false=no default
243  0.
244  );
245 
246 }
#define MAX_DOUBLE
Definition: global_linear.cc:8
constraintsE_type constraintsE_
format: &quot;ParameterName&quot; -&gt; ConstraintE
Definition: AlgoCheck.h:73
global_linear_Check::~global_linear_Check ( )
inline

Definition at line 104 of file global_linear.h.

104 { }