| 1 | //
|
|---|
| 2 | // ********************************************************************
|
|---|
| 3 | // * DISCLAIMER *
|
|---|
| 4 | // * *
|
|---|
| 5 | // * The following disclaimer summarizes all the specific disclaimers *
|
|---|
| 6 | // * of contributors to this software. The specific disclaimers,which *
|
|---|
| 7 | // * govern, are listed with their locations in: *
|
|---|
| 8 | // * http://cern.ch/geant4/license *
|
|---|
| 9 | // * *
|
|---|
| 10 | // * Neither the authors of this software system, nor their employing *
|
|---|
| 11 | // * institutes,nor the agencies providing financial support for this *
|
|---|
| 12 | // * work make any representation or warranty, express or implied, *
|
|---|
| 13 | // * regarding this software system or assume any liability for its *
|
|---|
| 14 | // * use. *
|
|---|
| 15 | // * *
|
|---|
| 16 | // * This code implementation is the intellectual property of the *
|
|---|
| 17 | // * GEANT4 collaboration. *
|
|---|
| 18 | // * By copying, distributing or modifying the Program (or any work *
|
|---|
| 19 | // * based on the Program) you indicate your acceptance of this *
|
|---|
| 20 | // * statement, and all its terms. *
|
|---|
| 21 | // ********************************************************************
|
|---|
| 22 | //
|
|---|
| 23 | // The code was written by :
|
|---|
| 24 | // ^Claudio Andenna claudio.andenna@iss.infn.it, claudio.andenna@ispesl.it
|
|---|
| 25 | // *Barbara Caccia barbara.caccia@iss.it
|
|---|
| 26 | // with the support of Pablo Cirrone (LNS, INFN Catania Italy)
|
|---|
| 27 | //
|
|---|
| 28 | // ^ISPESL and INFN Roma, gruppo collegato Sanità , Italy
|
|---|
| 29 | // *Istituto Superiore di Sanità and INFN Roma, gruppo collegato Sanità , Italy
|
|---|
| 30 | // Viale Regina Elena 299, 00161 Roma (Italy)
|
|---|
| 31 | // tel (39) 06 49902246
|
|---|
| 32 | // fax (39) 06 49387075
|
|---|
| 33 | //
|
|---|
| 34 | // more information:
|
|---|
| 35 | // http://g4advancedexamples.lngs.infn.it/Examples/medical-linac
|
|---|
| 36 | //
|
|---|
| 37 | //*******************************************************//
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 | #ifndef CML2Acc1H
|
|---|
| 41 | #define CML2Acc1H
|
|---|
| 42 |
|
|---|
| 43 | #include "G4VPhysicalVolume.hh"
|
|---|
| 44 | #include "G4LogicalVolume.hh"
|
|---|
| 45 | #include "G4Box.hh"
|
|---|
| 46 | #include "G4Cons.hh"
|
|---|
| 47 | #include "G4Tubs.hh"
|
|---|
| 48 | #include "G4VisAttributes.hh"
|
|---|
| 49 | #include "G4PVPlacement.hh"
|
|---|
| 50 | #include "G4NistManager.hh"
|
|---|
| 51 |
|
|---|
| 52 | #include "G4BooleanSolid.hh"
|
|---|
| 53 | #include "G4IntersectionSolid.hh"
|
|---|
| 54 | #include "G4UnionSolid.hh"
|
|---|
| 55 | #include "G4SubtractionSolid.hh"
|
|---|
| 56 | #include "ML2SinputData.hh"
|
|---|
| 57 | #include "G4ProductionCuts.hh"
|
|---|
| 58 |
|
|---|
| 59 | class CML2Acc1Messenger;
|
|---|
| 60 | class CML2Acc1
|
|---|
| 61 | {
|
|---|
| 62 | public:
|
|---|
| 63 | CML2Acc1(void);
|
|---|
| 64 | ~CML2Acc1(void);
|
|---|
| 65 | static CML2Acc1* GetInstance(void);
|
|---|
| 66 | void Construct(G4VPhysicalVolume *PVWorld);
|
|---|
| 67 | inline void setJaw1X(G4double val){this->jaw1XAperture=val;};
|
|---|
| 68 | inline void setJaw2X(G4double val){this->jaw2XAperture=val;};
|
|---|
| 69 | inline void setJaw1Y(G4double val){this->jaw1YAperture=val;};
|
|---|
| 70 | inline void setJaw2Y(G4double val){this->jaw2YAperture=val;};
|
|---|
| 71 | inline void setSSD(G4double val){this->SSD=val;};
|
|---|
| 72 | inline void setidEnergy(G4int val){this->idEnergy=val;};
|
|---|
| 73 | inline void setLeavesAx(G4double val){this->leavesA.push_back(val);};
|
|---|
| 74 | inline void setLeavesBx(G4double val){this->leavesB.push_back(val);};
|
|---|
| 75 |
|
|---|
| 76 | private:
|
|---|
| 77 | G4double jaw1XAperture, jaw2XAperture, jaw1YAperture, jaw2YAperture, SSD;
|
|---|
| 78 | std::vector <G4double> leavesA, leavesB;
|
|---|
| 79 | G4int idEnergy;
|
|---|
| 80 | CML2Acc1Messenger *acc1Messenger;
|
|---|
| 81 | static CML2Acc1 * instance;
|
|---|
| 82 |
|
|---|
| 83 | G4Material * otherMaterials(const G4String materialName);
|
|---|
| 84 | void SetJawAperture(G4int idJaw, G4ThreeVector ¢re, G4ThreeVector halfSize, G4double aperture, G4RotationMatrix *cRotation);
|
|---|
| 85 | bool target();
|
|---|
| 86 | bool primaryCollimator();
|
|---|
| 87 | bool BeWindow();
|
|---|
| 88 | bool flatteningFilter();
|
|---|
| 89 | bool ionizationChamber();
|
|---|
| 90 | bool mirror();
|
|---|
| 91 | bool Jaw1X();
|
|---|
| 92 | bool Jaw2X();
|
|---|
| 93 | bool Jaw1Y();
|
|---|
| 94 | bool Jaw2Y();
|
|---|
| 95 | bool MLC();
|
|---|
| 96 | G4VPhysicalVolume *PVWorld;
|
|---|
| 97 | };
|
|---|
| 98 |
|
|---|
| 99 | #endif
|
|---|
| 100 |
|
|---|