CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
25 
27 {
28 
29 public:
30  //---------- Constructors / Destructor
33  static CocoaToDDLMgr* getInstance();
34 
37  void writeMaterials();
38  void writeSolids();
39  void writeLogicalVolumes();
40  void writePhysicalVolumes();
41  void writeRotations();
42  void writeSpecPars();
44 
45  void newPartPre(std::string name);
46  void newPartPost(std::string name, std::string extension);
47  void newSectPre_ma(std::string name);
49  void newSectPost_ma(std::string name);
50  void newSectPre_so(std::string name);
51  void so(OpticalObject * opto);
52  void newSectPost_so(std::string name);
53  void newSectPre_lv(std::string name);
54  void lv(OpticalObject * opto);
55  void newSectPost_lv(std::string name);
56  void newSectPre_pv(std::string name);
57  void pv(OpticalObject * opto);
58  void newSectPost_pv(std::string name);
59  void newSectPre_ro(std::string name);
60  void ro(const CLHEP::HepRotation& ro, int n);
61  void newSectPost_ro(std::string name);
62  void newSectPre_specPar(std::string name);
63  void specPar(OpticalObject * opto);
64  void writeSpecParsCocoa();
65  void newSectPost_specPar(std::string name);
66  void newSectPre(std::string name, std::string type);
67  void newSectPost(std::string name);
70 
71  std::string scrubString(const std::string& s);
72 
73 private:
75 
77  std::string filename_;
78 
79  std::vector<CocoaMaterialElementary*> theMaterialList;
80  std::vector<CLHEP::HepRotation> theRotationList;
81 
82 };
83 #endif
84 
type
Definition: HCALResponse.h:22
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:74
void measurementsAsSpecPars()
void writeSpecPars()
std::vector< CocoaMaterialElementary * > theMaterialList
Definition: CocoaToDDLMgr.h:79
void newSectPre_pv(std::string name)
static CocoaToDDLMgr * getInstance()
std::string scrubString(const std::string &s)
std::vector< CLHEP::HepRotation > theRotationList
Definition: CocoaToDDLMgr.h:80
ALIFileOut file_
Definition: CocoaToDDLMgr.h:76
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:77
std::string ALIstring
Definition: CocoaGlobals.h:9
tuple filename
Definition: lut2db_cfg.py:20
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)