Skip to content

Proper Command Usage to Place and Configure Griffin Detectors

Tyler Ballast edited this page Oct 22, 2013 · 4 revisions

In order to place a Griffin detector somewhere in space, one of the following commands must be used:

/DetSys/Det/addGriffinForward int
/DetSys/Det/addGriffinForwardDetector int
/DetSys/Det/addGriffinBack int
/DetSys/Det/addGriffinBackDetector int
/DetSys/Det/addGriffinCustom int
/DetSys/Det/addGriffinCustomDetector int

Calling any one of these will place a detector for you. An explanation of how each works is provided below. There are three additional commands that can be used to control the location and configuration of the suppressors. These are:

/DetSys/det/SetCustomRadialDistance double unit
/DetSys/det/SetCustomShieldsPresent int
/DetSys/det/SetCustomExtensionSuppressorLocation int
/DetSys/det/SetCustomDeadLayer int int int

Please note that these parameters only affect addGriffinCustom.

Usage

The following is a description of what each of the above commands does, and examples of how to use it.

addGriffinForward

This command can be used to add multiple Griffin forward detectors. The argument when calling this is the number of detectors that you wish to place. They are always placed starting with detector 0. The suppressors are always present when this is called, and the extension suppressors are always in the back position. The detector is always placed at a radial distance of 11cm.

The radial distance and suppressor configuration can not be controlled when using this command.

Ex.

This adds one Griffin detector in the first position

/DetSys/det/addGriffinForward 1

This adds 12 Griffin detectors, starting in the first position, and ending in the 12th.

/DetSys/det/addGriffinForward 12

addGriffinForwardDetector

This command can be used to place a single Griffin detector in any position that you wish. The argument passed to it is the location number that you want the detector to be placed in. The suppressors are always present when this is called, and the extension suppressors are always in the back position. The detector is always placed at a radial distance of 11cm.

The radial distance and suppressor configuration can not be controlled when using this command.

Ex.

This adds one Griffin detector in the first position

/DetSys/det/addGriffinForwardDetector 1

This adds one Griffin detector in the 12th position.

/DetSys/det/addGriffinForwardDetector 12

addGriffinBack and addGriffinBackDetector

These commands work in the exact same way as addGriffinForward and addGriffinForwardDetector, except the detectors are placed in the back position, and the extension suppressors are forward.

The radial distance and suppressor configuration can not be controlled when using this command.

addGriffinCustom

This command allows you to control the radial distance as well as the suppressor configuration using the following commands:

/DetSys/det/SetCustomRadialDistance double unit
/DetSys/det/SetCustomShieldsPresent int
/DetSys/det/SetCustomExtensionSuppressorLocation int
/DetSys/det/SetCustomDeadLayer int int int

If addGriffinCustom is called without first calling one of the previous commands, then the detectors will be placed at 11.0 cm, with the suppressors present and the extension suppressors in the back position. By calling any of the above commands, followed by addGriffinCustom, it is possible to modify the placement of the detector. The integer argument that is passed to addGriffinCustom works in the same way that addGriffinForward does. It will place as many detectors as you specify, starting in the first position.

Ex.

This adds a three detectors in the first three positions with a radial distance of 11.0 cm (by default) and no suppressors

/DetSys/det/SetCustomShieldsPresent 0
/DetSys/det/addGriffinCustom 3

This adds all 16 detectors with no suppressors at a radial distance of 25 cm

/DetSys/det/SetCustomRadialDistance 25.0 cm
/DetSys/det/SetCustomShieldsPresent 0
/DetSys/det/addGriffinCustom 16

This adds 1 detector with the shields present in the forward position and a radial distance of 11cm

/DetSys/det/SetCustomExtensionSuppressorLocation 1
/DetSys/det/addGriffinCustom 1

addGriffinCustomDetector

This command allows you to modify the placement of a detector in the exact same way that addGriffinCustom does, but the argument passed to it is now unused, but must be specified (just use 0). In order to specify where the detector is placed you must call SetCustomDeadLayer. This command allows you to choose which detector gets placed in a specific position. Since the dead layers are different for each detector, they are all independent and can be placed at any location. The use of this command will be explained in the examples. addGriffinCustomdetector will only place one detector, in the same way that addGriffinForwardDetector and addGriffinBackDetector do.

Ex.

This adds the third Griffin detector in the third position with no suppression shields. SetCustomDeadLayer expects three integers. The first specifies the detector number, the second specified the position number, and the third is unused. This is due to a limitation with how command arguments can be packed.

/DetSys/det/SetCustomDeadLayer 3 3 0 # Detector number, Position Number, Unused int (just set it to 0) 
/DetSys/det/setCustomShieldsPresent 0
/DetSys/det/addGriffinCustomDetector 0

This adds the 16th Griffin detector in the 16th position at a radial distance of 25cm with no suppression shields.

/DetSys/det/SetCustomRadialDistance 25.0 cm
/DetSys/det/SetCustomShieldsPresent 0
/DetSys/det/SetCustomDeadLayer 16 16 0
/DetSys/det/addGriffinCustomDetector 0 

This adds the third detector in the eighth position, at a radial distance of 20.0 cm with suppression shields (this would likely never be used, but is here to illustrate that it is possible).

/DetSys/det/SetCustomRadialDistance 20.0 cm
/DetSys/det/SetCustomShieldsPresent 1
/DetSys/det/addGriffinCustomDetector 3 8 0 # Detector number, Position number, unused. 

Clone this wiki locally