# The `Test_MCViNE_ConstantvQE` Instrument

*McStas: Test of the MCViNE ConstantvQE kernel (fixed Q vector, Gaussian weight in E), as a Union process and as a standalone sample*

## Identification

- **Site:** Tests_samples
- **Author:** Fahima Islam
- **Origin:** MCViNE (https://github.com/mcvine/mcvine) kernels ported to McStas
- **Date:** 2026-09-29

## Description

```text
Monochromatic beam on a small sample described by the MCViNE ConstantvQE kernel.
comp_select=1 uses the Union process MCViNE_ConstantvQE_process (geometry, absorption
and multiple scattering by Union_master); comp_select=2 uses the standalone
component MCViNE_ConstantvQE with the same geometry, absorption and up to 20 orders of
scattering. The two should give the same scattered intensity (see the two
example lines below).
```

## Examples

- **Test: comp_select=1 Detector: detector_I=3.17226e-07**
- **Test: comp_select=2 Detector: detector_I=3.15729e-07**

## Input parameters

Parameters in **boldface** are required; the others are optional.

| Name | Unit | Description | Default |
|------|------|-------------|---------|
| comp_select | 1 | 1: Union process MCViNE_ConstantvQE_process in Union_master, 2: standalone MCViNE_ConstantvQE | 1 |
| Ei | meV | Incident energy | 60 |
| sample_rotation | deg | Rotation of the sample frame about the vertical axis | 0 |

## Links

- [Source code](Test_MCViNE_ConstantvQE.instr) for `Test_MCViNE_ConstantvQE.instr`.

---
