CMS 3D CMS Logo

AlgoInit.h File Reference

Go to the source code of this file.

Functions

void AlgoInit ()


Function Documentation

void AlgoInit (  ) 

Definition at line 28 of file AlgoInit.cc.

References DDalgo().

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

00029 {
00030   static bool isInit = false;
00031   if (isInit) return;
00032   isInit = true;
00033   
00034   // placeholder pointer
00035   AlgoPos * algo = 0;
00036   
00037   // generated:
00038   //   for each <Algorithm> in each ADL-instance the code generator has to provide code
00039   //   similar to that below ...
00040    
00041   //   create the representation of the algorithm  
00042 
00043 
00044   algo = new AlgoPos(new global_linear_Check);
00045   //   create the implementations of the algorithm & register them with the representation
00046 
00047 
00048   new global_linear_0(algo,"base in the input parameters");
00049 
00050 
00051   new global_linear_1(algo,"without base in input parameters");
00052 
00053 
00054   //   register the representation at DDCore
00055   DDalgo(DDName("linear", "global"), algo);
00056 
00057 
00058   algo = new AlgoPos(new global_angular_Check);
00059   //   create the implementations of the algorithm & register them with the representation
00060   
00061 
00062   new global_angular_0(algo,"divrange");
00063 
00064 
00065   //   register the representation at DDCore
00066   DDalgo(DDName("angular", "global"), algo);
00067 
00068 
00069   algo = new AlgoPos(new global_simpleAngular_Check);
00070   //   create the implementations of the algorithm & register them with the representation
00071 
00072 
00073   new global_simpleAngular_0(algo,"number no delta");
00074 
00075 
00076   new global_simpleAngular_1(algo,"delta no number");
00077 
00078 
00079   new global_simpleAngular_2(algo,"delta AND number");
00080 
00081 
00082   //   register the representation at DDCore
00083   DDalgo(DDName("simpleAngular", "global"), algo);
00084 
00085 
00086   
00087   // preshower detector positioning
00088   algo = new AlgoPos(0);
00089   
00090   new presh_detectors(algo, "placing preshower detectors");
00091   //presh_detectors pd(algo,"nix");
00092   
00093   DDalgo(DDName("detectors","presh"), algo);
00094 
00095 }


Generated on Tue Jun 9 17:52:18 2009 for CMSSW by  doxygen 1.5.4