GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Fieldmaps for the half current solenoid
Re: Fieldmaps for the half current solenoid [message #15987 is a reply to message #15986] Sun, 16 March 2014 14:26 Go to previous messageGo to previous message
Stefan Pflueger is currently offline  Stefan Pflueger
Messages: 99
Registered: February 2012
continuous participant
From: *kph.uni-mainz.de
Hi Donghee,

Looks good, I just have one comment. I was thinking to automize this just like the dipole field maps are picked for the different momenta. So something like this:

  
  if (Map=="FULL") {
    PndDipoleMap *map_d1= new PndDipoleMap("DipoleMap1", "R", fBeamMom);
    PndDipoleMap *map_d2= new PndDipoleMap("DipoleMap2", "R", fBeamMom);

    PndTransMap *map_t;
    PndSolenoidMap *map_s1;
    PndSolenoidMap *map_s2;
    PndSolenoidMap *map_s3;
    PndSolenoidMap *map_s4;

    if(fBeamMom > 3.0) {
      map_t= new PndTransMap("TransMap", "R", fBeamMom);
      map_s1= new PndSolenoidMap("SolenoidMap1", "R");
      map_s2= new PndSolenoidMap("SolenoidMap2", "R");
      map_s3= new PndSolenoidMap("SolenoidMap3", "R");
      map_s4= new PndSolenoidMap("SolenoidMap4", "R");
    }
    else {
      map_t= new PndTransMap("TransMap_Half", "R", fBeamMom);
      map_s1= new PndSolenoidMap("SolenoidMap_Half1", "R");
      map_s2= new PndSolenoidMap("SolenoidMap_Half2", "R");
      map_s3= new PndSolenoidMap("SolenoidMap_Half3", "R");
      map_s4= new PndSolenoidMap("SolenoidMap_Half4", "R");
    }
    
    AddField(map_t);
    AddField(map_d1);
    AddField(map_d2);
    AddField(map_s1);
    AddField(map_s2);
    AddField(map_s3);
    AddField(map_s4);
}


In that way the correct fieldmaps are picked like it will be the case at PANDA without the user having to make a choice. Also no changes in macros are required for the correct setting. In case we do not want to modify the "FULL" case, I would at least make this the "AUTO" case.

Best regards,

Stefan
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [NOTSUPPORTED]Problem in Installation of external package dec 2013
Next Topic: Target Specifications
Goto Forum:
  


Current Time: Thu Apr 18 05:50:37 CEST 2024

Total time taken to generate the page: 0.01177 seconds