GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Constant magnetic field instead Solenoid Field maps
Re: Constant magnetic field instead Solenoid Field maps [message #14910 is a reply to message #14905] Tue, 02 July 2013 10:58 Go to previous messageGo to previous message
Anastasia Karavdina is currently offline  Anastasia Karavdina
Messages: 76
Registered: May 2010
Location: Mainz, Germany
continuous participant

From: *kph.uni-mainz.de
Ok, the message "GetBz Should be implimented" is misleading since it's printed from GetBxyz method, which is indeed isn't implemented in PndConstField. Also it isn't implemented in PndFieldMap class, but there is no messages with maps fields usage.
Seems like this call happens in
void PndMultiField::GetFieldValue(const Double_t point[3], Double_t* bField)
{
  
   PndRegion *fReg=0;
   FairField *fField=0;
   for (fMapIter=fFieldMaps.begin(); fMapIter!= fFieldMaps.end();fMapIter++ ){
      fReg=fMapIter->first;
      if(fReg->IsInside(point[2])){
         fField=fMapIter->second;
	 break;
      }
   }
  if(fField){
     fField->GetBxyz(point, bField);  
  }else{
    bField[0] = 0;
    bField[1] = 0;
    bField[2] = 0;
  }
}
 

But if I understand this code correctly is should call GetBxyz for both PndConstField as well as PndFieldMap. Why there is no error messages when PndFieldMap is used?

[Updated on: Tue, 02 July 2013 11:10]

Report message to a moderator

 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Errors in SttHi
Next Topic: Problem in creating geometry from root file
Goto Forum:
  


Current Time: Fri Apr 26 06:35:30 CEST 2024

Total time taken to generate the page: 0.00883 seconds