CMS 3D CMS Logo

AlgoInit.cc

Go to the documentation of this file.
00001 
00003 // GENERATED FILE, DO NOT MODIFY
00005 
00006 
00007 #include "DetectorDescription/Algorithm/src/AlgoInit.h"
00008 #include "DetectorDescription/Core/interface/DDAlgo.h"
00009 #include "DetectorDescription/ExprAlgo/interface/AlgoPos.h"
00010 // include all from XML generated algorithms
00011 
00012 
00013 #include "global_linear.h"
00014 
00015 
00016 #include "global_angular.h"
00017 
00018 
00019 #include "global_simpleAngular.h"
00020 
00021 
00022 #include "DetectorDescription/Algorithm/src/presh_detectors.h"
00023 
00024 
00025 
00026 // add a line for each generated algorithm to register the
00027 // algorithm with DDCore
00028 void AlgoInit()
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 }
00096 
00097 

Generated on Tue Jun 9 17:31:49 2009 for CMSSW by  doxygen 1.5.4