// TO DO: CHECK MATERIALS COMPOSITION!!! Materials wall thickness only 2 mm??

// Pixel support tube: BPIX section (horizontal)
Support {
  type custom
  subdetectorName ITST
  customZMin 0
  customRMin 208.5           // Envelope position: R 207-212 mm. Hence place at 208.5 mm, as imaginary 2 mm thickness. Source: [ITST_2017_12_05_AO].
  customLength 226.99        // CMSSW TBPX/TFPX volumes transition at Z = 227 mm. 
  customDir horizontal
  Component {
    componentName "Supports Mechanics: ITST (cylinder around TBPX)" 
    Element {
      elementName CFRP_ITST
      quantity 3.00        // To check: too much? From [ITST_2019_01_15_AJ].
      unit mm
    }
  }
}

// Pixel support tube: FPIX1 section (horizontal)
Support {
  type custom
  subdetectorName ITST
  customZMin 227.01          // CMSSW TBPX/TFPX volumes transition at Z = 227 mm. 
  customRMin 208.5           // Envelope position: R 207-212 mm. Hence place at 208.5 mm, as imaginary 2 mm thickness. Source: [ITST_2017_12_05_AO].
  customLength 1374.49       // TFPX/TEPX volumes transition at Z = 1600-1605 mm. Hence place at Z = 1601.5 mm, as imaginary 2 mm thickness. Source: [ITST_2017_12_05_AO].
  customDir horizontal
  Component {
    componentName "Supports Mechanics: ITST (cylinder around TFPX)" 
    Element {
      elementName CFRP_ITST
      quantity 3.00        // To check: too much? From [ITST_2019_01_15_AJ].
      unit mm
    }
  }
}

// Pixel support tube: flange (vertical)
Support {
  type custom
  subdetectorName ITST
  customZMin 1601.51       // TFPX/TEPX volumes transition at Z = 1600-1605 mm. Hence place at Z = 1601.5 mm, as imaginary 2 mm thickness. Source: [ITST_2017_12_05_AO].
  customRMin 208.5         // Envelope position: R 207-212 mm. Hence place at 208.5 mm, as imaginary 2 mm thickness. Source: [ITST_2017_12_05_AO].
  customLength 95          // Envelope position: R 302-307 mm. Hence place at 303.5 mm, as imaginary 2 mm thickness. Source: [ITST_2017_12_05_AO].
  customDir vertical 
  Component {
    componentName "Supports Mechanics: ITST (flange)" 
    Element {
      elementName CFRP_ITST
      quantity 3.00        // To check: too much? From [ITST_2019_01_15_AJ].
      unit mm
    }
  }
}

// Pixel support tube: FPIX2 section (horizontal)
Support {
  type custom
  subdetectorName ITST
  customZMin 1603.52     // TFPX/TEPX volumes transition at Z = 1600-1605 mm. Hence place at Z = 1601.5 mm + imaginary 2 mm thickness. Source: [ITST_2017_12_05_AO].
  customRMin 303.52      // Envelope position: R 302-307 mm. Hence place at 303.5 mm, as imaginary 2 mm thickness. Source: [ITST_2017_12_05_AO].
  customLength 1131.48   // Goes until Z = 2735 mm. APPROXIMATION: do not curve the edges. Source: [ITST_2017_12_05_AO].
  customDir horizontal
  Component {
    componentName "Supports Mechanics: ITST (cylinder around TEPX)" 
    Element {
      elementName CFRP_ITST
      quantity 3.00        // To check: too much? From [ITST_2019_01_15_AJ].
      unit mm
    }
  }
}

