Changeset 850 for trunk/source/geometry/divisions/src
- Timestamp:
- Sep 10, 2008, 5:40:37 PM (16 years ago)
- Location:
- trunk/source/geometry/divisions/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/geometry/divisions/src/G4PVDivision.cc
r831 r850 25 25 // 26 26 // 27 // $Id: G4PVDivision.cc,v 1.2 0 2006/06/29 18:18:31 gunterExp $28 // GEANT4 tag $Name: $27 // $Id: G4PVDivision.cc,v 1.21 2008/08/18 14:06:13 tnikitin Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4PVDivision Implementation file … … 74 74 SetParameterisation(pMotherLogical, pAxis, nDivs, 75 75 width, offset, DivNDIVandWIDTH); 76 CheckAndSetParameters (pAxis, nDivs, width, offset, 77 DivNDIVandWIDTH, pMotherLogical); 76 CheckAndSetParameters (pAxis,offset, pMotherLogical); 78 77 } 79 78 … … 105 104 SetMotherLogical(pMotherLogical); 106 105 SetParameterisation(pMotherLogical, pAxis, nDivs, 0., offset, DivNDIV); 107 CheckAndSetParameters (pAxis, nDivs, 0., offset, DivNDIV, pMotherLogical);106 CheckAndSetParameters (pAxis, offset, pMotherLogical); 108 107 } 109 108 … … 135 134 SetMotherLogical(pMotherLogical); 136 135 SetParameterisation(pMotherLogical, pAxis, 0, width, offset, DivWIDTH); 137 CheckAndSetParameters (pAxis, 0, width, offset, DivWIDTH, pMotherLogical);136 CheckAndSetParameters (pAxis, offset, pMotherLogical); 138 137 } 139 138 … … 141 140 void 142 141 G4PVDivision::CheckAndSetParameters( const EAxis pAxis, 143 const G4int nDivs,144 const G4double width,145 142 const G4double offset, 146 DivisionType divType,147 143 const G4LogicalVolume* pMotherLogical ) 148 144 { 149 if( divType == DivWIDTH ) 150 { 151 fnReplicas = fparam->GetNoDiv(); 152 } 153 else 154 { 155 fnReplicas = nDivs; 156 } 145 fnReplicas = fparam->GetNoDiv(); 146 157 147 if (fnReplicas < 1 ) 158 148 { … … 161 151 } 162 152 163 if( divType != DivNDIV) 164 { 165 fwidth = fparam->GetWidth(); 166 } 167 else 168 { 169 fwidth = width; 170 } 153 fwidth = fparam->GetWidth(); 154 171 155 if( fwidth < 0 ) 172 156 { -
trunk/source/geometry/divisions/src/G4PVDivisionFactory.cc
r831 r850 26 26 // 27 27 // $Id: G4PVDivisionFactory.cc,v 1.2 2006/06/29 18:18:33 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4PVDivisionFactory Implementation file -
trunk/source/geometry/divisions/src/G4ParameterisationBox.cc
r831 r850 26 26 // 27 27 // $Id: G4ParameterisationBox.cc,v 1.10 2006/06/29 18:18:35 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4ParameterisationBox Implementation file -
trunk/source/geometry/divisions/src/G4ParameterisationCons.cc
r831 r850 26 26 // 27 27 // $Id: G4ParameterisationCons.cc,v 1.9 2006/06/29 18:18:38 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4ParameterisationCons Implementation file -
trunk/source/geometry/divisions/src/G4ParameterisationPara.cc
r831 r850 26 26 // 27 27 // $Id: G4ParameterisationPara.cc,v 1.11 2006/06/29 18:18:42 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4ParameterisationPara Implementation file -
trunk/source/geometry/divisions/src/G4ParameterisationPolycone.cc
r831 r850 26 26 // 27 27 // $Id: G4ParameterisationPolycone.cc,v 1.15 2006/06/29 18:18:44 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4ParameterisationPolycone Implementation file -
trunk/source/geometry/divisions/src/G4ParameterisationPolyhedra.cc
r831 r850 26 26 // 27 27 // $Id: G4ParameterisationPolyhedra.cc,v 1.16 2007/05/18 07:27:23 gcosmo Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4ParameterisationPolyhedra Implementation file -
trunk/source/geometry/divisions/src/G4ParameterisationTrd.cc
r831 r850 26 26 // 27 27 // $Id: G4ParameterisationTrd.cc,v 1.14 2006/06/29 18:18:48 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4ParameterisationTrd Implementation file -
trunk/source/geometry/divisions/src/G4ParameterisationTubs.cc
r831 r850 26 26 // 27 27 // $Id: G4ParameterisationTubs.cc,v 1.8 2006/06/29 18:18:50 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4ParameterisationTubs Implementation file -
trunk/source/geometry/divisions/src/G4VDivisionParameterisation.cc
r831 r850 25 25 // 26 26 // 27 // $Id: G4VDivisionParameterisation.cc,v 1.1 2 2007/05/11 13:26:26 gcosmoExp $28 // GEANT4 tag $Name: $27 // $Id: G4VDivisionParameterisation.cc,v 1.13 2008/07/25 16:23:35 ivana Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4VDivisionParameterisation Implementation file … … 163 163 << " has too big offset + width*nDiv = " << G4endl 164 164 << " " << foffset + fwidth*fnDiv << " > " 165 << foffset<< ". Width = "165 << maxPar << ". Width = " 166 166 << G4endl 167 167 << " " << fwidth << ". nDiv = " << fnDiv << " !"
Note: See TracChangeset
for help on using the changeset viewer.