8000 System of units · Issue #783 · R3BRootGroup/R3BRoot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
System of units #783
Open
Open
@klenze

Description

@klenze

ROOT says:

Selecting the System of Units in ROOT
Historically the system of units in ROOT was based on the three basic units centimeters, seconds and GigaElectronVolts. For the LHC era in Geant4 collaboration decided that a basic unit system based on millimeters, nanoseconds and MegaElectronVolts was better suited for the LHC experiments. All LHC experiments use Geant4 and effectively adopted this convention for all areas of data processing: simulation, reconstruction and data analysis.

I think following the lead of the LHC experiments here and adopt the Geant4 units. This has the additional advantage that we can use Geant4 unit prefixes.

I think writing

  • task->SetThreshold(20*MeV)
  • task->SetMaxTheta(10*degree)
  • task->SetRadius(20*cm)
  • hist->Fill(hit->GetEnergy() / keV )
    is very verbose.

(Of course, it what would be even better would be dimensionality checking at compile time (so that 20*cm+1*MeV or hist->Fill(hit->GetEnergy()) will not even compile, but this would require more work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0