76 for(
unsigned int i = 0; i < howmany; i++ )
79 if( pRotToClean != 0 )
90 for(
unsigned int j = 0; j < howmany; j++ )
115 if( pRotation != 0 ) { *toStore = *pRotation; }
136 G4bool isReflection =
false;
152 if( pRotation != 0 ) { *toStore = *pRotation; }
175 G4bool isReflection =
false;
226 unsigned int numberOfDaughters;
228 if( copyNumBase == 0 )
234 numberOfDaughters = copyNumBase;
243 std::vector<G4AssemblyTriplet> triplets = pAssembly->
fTriplets;
245 for(
unsigned int i = 0; i < triplets.size(); i++ )
248 triplets[i].GetTranslation() );
249 if ( triplets[i].IsReflection() ) { Ta = Ta *
G4ReflectZ3D(); }
253 if ( triplets[i].GetVolume() )
265 std::stringstream pvName;
271 << triplets[i].GetVolume()->GetName().c_str()
282 pvName.str().c_str(),
283 triplets[i].GetVolume(),
286 numberOfDaughters + i,
291 fPVStore.push_back( pvPlaced.first );
292 if ( pvPlaced.second ) {
fPVStore.push_back( pvPlaced.second ); }
294 else if ( triplets[i].GetAssembly() )
299 Tfinal, i*100+copyNumBase, surfCheck );
305 "Triplet has no volume and no assembly");
324 if( pRotationInMother == 0 )
333 translationInMother );
334 MakeImprint(
this, pMotherLV, transform, copyNumBase, surfCheck);
348 MakeImprint(
this, pMotherLV, transformation, copyNumBase, surfCheck);
std::vector< G4AssemblyTriplet > fTriplets
void AddPlacedVolume(G4LogicalVolume *pPlacedVolume, G4ThreeVector &translation, G4RotationMatrix *rotation)
std::pair< G4VPhysicalVolume *, G4VPhysicalVolume * > G4PhysicalVolumesPair
void InstanceCountMinus()
static DLL_API const HepRotation IDENTITY
CLHEP::HepRotation G4RotationMatrix
void SetImprintsCount(unsigned int value)
G4int GetNoDaughters() const
static G4ThreadLocal unsigned int fsInstanceCounter
void SetAssemblyID(unsigned int value)
std::vector< G4VPhysicalVolume * > fPVStore
void MakeImprint(G4LogicalVolume *pMotherLV, G4ThreeVector &translationInMother, G4RotationMatrix *pRotationInMother, G4int copyNumBase=0, G4bool surfCheck=false)
const XML_Char int const XML_Char * value
unsigned int GetInstanceCount() const
unsigned int GetImprintsCount() const
unsigned int GetAssemblyID() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void AddPlacedAssembly(G4AssemblyVolume *pAssembly, G4Transform3D &transformation)
void SetInstanceCount(unsigned int value)
G4PhysicalVolumesPair Place(const G4Transform3D &transform3D, const G4String &name, G4LogicalVolume *LV, G4LogicalVolume *motherLV, G4bool isMany, G4int copyNo, G4bool surfCheck=false)
static G4ReflectionFactory * Instance()