CMS 3D CMS Logo

Functions

CMSSW_4_4_3_patch1/src/DetectorDescription/Algorithm/src/AlgoInit.h File Reference

Go to the source code of this file.

Functions

void AlgoInit ()

Function Documentation

void AlgoInit ( )

Definition at line 13 of file AlgoInit.cc.

References DDalgo().

Referenced by DDLParser::DDLParser(), output(), regressionTest_first(), and testParser().

{
  static bool isInit = false;
  if (isInit) return;
  isInit = true;
  
  // placeholder pointer
  AlgoPos * algo = 0;
  
  // generated:
  //   for each <Algorithm> in each ADL-instance the code generator has to provide code
  //   similar to that below ...
   
  //   create the representation of the algorithm  


  algo = new AlgoPos(new global_linear_Check);

  //   create the implementations of the algorithm & register them with the representation

  new global_linear_0(algo,"base in the input parameters");
  new global_linear_1(algo,"without base in input parameters");

  //   register the representation at DDCore
  DDalgo(DDName("linear", "global"), algo);

  algo = new AlgoPos(new global_angular_Check);

  //   create the implementations of the algorithm & register them with the representation
  
  new global_angular_0(algo,"divrange");

  //   register the representation at DDCore
  DDalgo(DDName("angular", "global"), algo);

  algo = new AlgoPos(new global_simpleAngular_Check);

  //   create the implementations of the algorithm & register them with the representation

  new global_simpleAngular_0(algo,"number no delta");
  new global_simpleAngular_1(algo,"delta no number");
  new global_simpleAngular_2(algo,"delta AND number");

  //   register the representation at DDCore

  DDalgo(DDName("simpleAngular", "global"), algo);
}