File: GenericPolyconeSection.h

package info (click to toggle)
vecgeom 1.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,928 kB
  • sloc: cpp: 88,717; ansic: 6,894; python: 1,035; sh: 582; sql: 538; makefile: 29
file content (33 lines) | stat: -rw-r--r-- 961 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/// @file GenericPolyconeSection.h
/// @author Raman Sehgal (raman.sehgal@cern.ch)

#ifndef VECGEOM_GENERICPOLYCONESECTION_H_
#define VECGEOM_GENERICPOLYCONESECTION_H_

#include "VecGeom/volumes/ConeStruct.h"
#include "VecGeom/volumes/CoaxialConesStruct.h"

namespace vecgeom {

// helper structure to encapsulate a section
VECGEOM_DEVICE_FORWARD_DECLARE(struct GenericPolyconeSection;);
VECGEOM_DEVICE_DECLARE_CONV(struct, GenericPolyconeSection);

inline namespace VECGEOM_IMPL_NAMESPACE {

struct GenericPolyconeSection {
  VECCORE_ATT_HOST_DEVICE
  GenericPolyconeSection() : fCoaxialCones(0), fShift(0.0), fTubular(0), fConvex(0) {}

  VECCORE_ATT_HOST_DEVICE
  ~GenericPolyconeSection() {}

  CoaxialConesStruct<Precision> *fCoaxialCones;
  double fShift;
  bool fTubular;
  bool fConvex; // TRUE if all points in section are concave in regards to whole polycone, will be determined
};
} // namespace VECGEOM_IMPL_NAMESPACE
} // namespace vecgeom

#endif