Project

General

Profile

Bug #906

CavityMode == Phased gives Electrostatic cavity

Added by Rogers, Chris almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Fields
Target version:
Start date:
15 February 2012
Due date:
% Done:

100%

Estimated time:
Workflow:
Under Test

Description

Workaround - should use CavityMode AutomaticPhasing, but this is not documented anywhere...

Made Victoria and Androula watchers because she was talking about using this feature.

#1

Updated by Rogers, Chris almost 12 years ago

A bit more digging and it looks like that's not good enough... but I think there is a bug, code thinks the cavity is electrostatic. I'll fix it...

#2

Updated by Rogers, Chris almost 12 years ago

  • Workflow changed from New Issue to Under Test

Needs line like

        frequency = theModule->propertyDoubleThis("Frequency");

added to line 251 of BTFieldConstructor so that it reads

    else
    {
        frequency = theModule->propertyDoubleThis("Frequency");
        energyGain = theModule->propertyDoubleThis("PeakEField");
        timeDelay  = theModule->propertyDoubleThis("TimeDelay");

Previously the frequency was not set and code assumed it was electrostatic...

#3

Updated by Rogers, Chris almost 12 years ago

I applied the patch to G4MICE cvs repository for Andri and maus_rogers repository for everyone else... needs tests before I do the merge into maus trunk

#4

Updated by Rogers, Chris almost 12 years ago

File in G4MICE is BeamTools/src/BTFieldConstructor.cc

#5

Updated by Rogers, Chris over 11 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Merged

#6

Updated by Rogers, Chris over 11 years ago

  • Target version changed from Future MAUS release to MAUS-v0.2.0

Also available in: Atom PDF