<commit_before>// Author: <NAME> 2011/3/6

/******************************************************************************
 * Copyright (C) 2006-, <NAME>                                         *
 * All rights reserved.                                                       *
 *****************************************************************************/

// An example of hexagonal Winston cone

// define useful units
static const Double_t cm = AOpticsManager::cm();
static const Double_t mm = AOpticsManager::mm();
static const Double_t um = AOpticsManager::um();
static const Double_t nm = AOpticsManager::nm();
static const Double_t m = AOpticsManager::m();

void HexWinstonCone(Int_t mode = 0) {
  // mode == 0: hex-hex Winston cone built with AGeoWinstonConePoly
  // mode == 1: hex-hex Winston cone built with three AGeoWinstonCone2D
  // mode == 2: circle-circle Winston cone with AGeoWinstonConePoly

  AOpticsManager* manager = new AOpticsManager("manager", "SC");

  // Make the world
  TGeoBBox* worldbox = new TGeoBBox("worldbox", 30 * m, 30 * m, 30 * m);
  AOpticalComponent* world = new AOpticalComponent("world", worldbox);
  manager->SetTopVolume(world);

  // Make the primary mirror
  const Double_t kRin = 20 * mm;
  const Double_t kRout = 10 * mm;
  TGeoRotation* rot30 = new TGeoRotation("rot30", 30, 0, 0);
  rot30->RegisterYourself();
  TGeoRotation* rot60 = new TGeoRotation("rot60", 60, 0, 0);
  rot60->RegisterYourself();
  TGeoRotation* rot120 = new TGeoRotation("rot120", 120, 0, 0);
  rot120->RegisterYourself();

  AGeoWinstonCone2D* coneV =
      new AGeoWinstonCone2D("coneV", kRin, kRout, kRin * 1.733);
  TGeoPgon* pgon = new TGeoPgon("pgon", 0, 360, 6, 4);
  pgon->DefineSection(0, -coneV->GetDZ() * 0.999, 0, kRout * 1.001);
  pgon->DefineSection(1, -coneV->GetDZ() * 0.5, 0, kRin * 0.9);
  pgon->DefineSection(2, -coneV->GetDZ() * 0., 0, kRin * 0.99);
  pgon->DefineSection(3, coneV->GetDZ() * 0.999, 0, kRin * 1.001);

  if (mode == 0) {
    AGeoWinstonConePoly* hexV = new AGeoWinstonConePoly("hexV", kRin, kRout, 6);
    TGeoCompositeShape* coneComp1 =<commit_msg>Increase the cone body size to fix issue #31. This closes #31.<commit_after>// Author: <NAME> 2011/3/6

/******************************************************************************
 * Copyright (C) 2006-, <NAME>                                         *
 * All rights reserved.                                                       *
 *****************************************************************************/

// An example of hexagonal Winston cone

// define useful units
static const Double_t cm = AOpticsManager::cm();
static const Double_t mm = AOpticsManager::mm();
static const Double_t um = AOpticsManager::um();
static const Double_t nm = AOpticsManager::nm();
static const Double_t m = AOpticsManager::m();

void HexWinstonCone(Int_t mode = 0) {
  // mode == 0: hex-hex Winston cone built with AGeoWinstonConePoly
  // mode == 1: hex-hex Winston cone built with three AGeoWinstonCone2D
  // mode == 2: circle-circle Winston cone with AGeoWinstonConePoly

  AOpticsManager* manager = new AOpticsManager("manager", "SC");

  // Make the world
  TGeoBBox* worldbox = new TGeoBBox("worldbox", 30 * m, 30 * m, 30 * m);
  AOpticalComponent* world = new AOpticalComponent("world", worldbox);
  manager->SetTopVolume(world);

  // Make the primary mirror
  const Double_t kRin = 20 * mm;
  const Double_t kRout = 10 * mm;
  TGeoRotation* rot30 = new TGeoRotation("rot30", 30, 0, 0);
  rot30->RegisterYourself();
  TGeoRotation* rot60 = new TGeoRotation("rot60", 60, 0, 0);
  rot60->RegisterYourself();
  TGeoRotation* rot120 = new TGeoRotation("rot120", 120, 0, 0);
  rot120->RegisterYourself();

  AGeoWinstonCone2D* coneV =
      new AGeoWinstonCone2D("coneV", kRin, kRout, kRin * 1.733);
  TGeoPgon* pgon = new TGeoPgon("pgon", 0, 360, 6, 4);
  pgon->DefineSection(0, -coneV->GetDZ() * 0.999, 0, kRout * 1.1);
  pgon->DefineSection(1, -coneV->GetDZ() * 0.5, 0, kRin * 0.9);
  pgon->DefineSection(2, -coneV->GetDZ() * 0., 0, kRin * 0.99);
  pgon->DefineSection(3, coneV->GetDZ() * 0.999, 0, kRin * 1.001);

  if (mode == 0) {
    AGeoWinstonConePoly* hexV = new AGeoWinstonConePoly("hexV", kRin, kRout, 6);
    TGeoCompositeShape* coneComp1 =
{'fraction_non_alphanumeric': 0.20370804975357898, 'fraction_numerical': 0.05022295235860127, 'mean_word_length': 3.6225596529284165, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '634630', 'n_tokens_mistral': 1676, 'n_tokens_neox': 1433, 'n_words': 385}