CMS 3D CMS Logo

CocoaToDDLMgr.h
Go to the documentation of this file.
1 // COCOA class header file
2 //Id: CocoaToDDLMgr.h
3 //CAT: Model
4 //
5 // Class to manage the sets of fitted entries (one set per each measurement data set)
6 //
7 // History: v1.0
8 // Pedro Arce
9 
10 #ifndef _CocoaToDDLMgr_HH
11 #define _CocoaToDDLMgr_HH
12 
13 #include <map>
14 //#include <fstream>
16 
18 
19 #include "CLHEP/Vector/Rotation.h"
20 
22 class CocoaSolidShape;
23 class OpticalObject;
24 
26 public:
27  //---------- Constructors / Destructor
30  static CocoaToDDLMgr* getInstance();
31 
34  void writeMaterials();
35  void writeSolids();
36  void writeLogicalVolumes();
37  void writePhysicalVolumes();
38  void writeRotations();
39  void writeSpecPars();
41 
48  void so(OpticalObject* opto);
51  void lv(OpticalObject* opto);
54  void pv(OpticalObject* opto);
57  void ro(const CLHEP::HepRotation& ro, int n);
60  void specPar(OpticalObject* opto);
61  void writeSpecParsCocoa();
67 
69 
70 private:
72 
75 
76  std::vector<CocoaMaterialElementary*> theMaterialList;
77  std::vector<CLHEP::HepRotation> theRotationList;
78 };
79 #endif
void specPar(OpticalObject *opto)
void newSectPost_pv(std::string name)
void writeRotations()
void newSectPre_so(std::string name)
void pv(OpticalObject *opto)
void newSectPost_ro(std::string name)
void newSectPost_so(std::string name)
void newSectPre_lv(std::string name)
void writeLogicalVolumes()
ALIbool materialIsRepeated(CocoaMaterialElementary *ma)
void writeHeader(ALIstring filename)
void writeSolids()
int ALIint
Definition: CocoaGlobals.h:15
void newSectPre(std::string name, std::string type)
void newPartPost(std::string name, std::string extension)
void newPartPre(std::string name)
void writeSpecParsCocoa()
void writeMaterials()
void newSectPre_ma(std::string name)
void writeDDDFile(ALIstring filename)
void lv(OpticalObject *opto)
void writePhysicalVolumes()
bool ALIbool
Definition: CocoaGlobals.h:19
static CocoaToDDLMgr * instance
Definition: CocoaToDDLMgr.h:71
void measurementsAsSpecPars()
void writeSpecPars()
std::vector< CocoaMaterialElementary * > theMaterialList
Definition: CocoaToDDLMgr.h:76
void newSectPre_pv(std::string name)
static CocoaToDDLMgr * getInstance()
std::string scrubString(const std::string &s)
std::vector< CLHEP::HepRotation > theRotationList
Definition: CocoaToDDLMgr.h:77
ALIFileOut file_
Definition: CocoaToDDLMgr.h:73
void newSectPost_specPar(std::string name)
void ma(CocoaMaterialElementary *ma)
void ro(const CLHEP::HepRotation &ro, int n)
void so(OpticalObject *opto)
std::string filename_
Definition: CocoaToDDLMgr.h:74
std::string ALIstring
Definition: CocoaGlobals.h:9
ALIint buildRotationNumber(OpticalObject *opto)
void newSectPre_specPar(std::string name)
void newSectPost_ma(std::string name)
void newSectPost(std::string name)
void newSectPre_ro(std::string name)
void newSectPost_lv(std::string name)