package fads
import "go-hep.org/x/hep/fads"
Package fads exposes building blocks for a fast simulation of a HEP detector.
Index ¶
- type BTagging
- func (tsk *BTagging) Configure(ctx fwk.Context) error
- func (tsk *BTagging) Process(ctx fwk.Context) error
- func (tsk *BTagging) StartTask(ctx fwk.Context) error
- func (tsk *BTagging) StopTask(ctx fwk.Context) error
- type ByPt
- type Calorimeter
- func (tsk *Calorimeter) Configure(ctx fwk.Context) error
- func (tsk *Calorimeter) Process(ctx fwk.Context) error
- func (tsk *Calorimeter) StartTask(ctx fwk.Context) error
- func (tsk *Calorimeter) StopTask(ctx fwk.Context) error
- type Candidate
- func (cand *Candidate) Add(c *Candidate)
- func (cand *Candidate) Charge() int32
- func (cand *Candidate) Clone() *Candidate
- func (cand *Candidate) Overlaps(o *Candidate) bool
- func (cand *Candidate) P4() fmom.P4
- type Classifier
- type Efficiency
- func (tsk *Efficiency) Configure(ctx fwk.Context) error
- func (tsk *Efficiency) Process(ctx fwk.Context) error
- func (tsk *Efficiency) StartTask(ctx fwk.Context) error
- func (tsk *Efficiency) StopTask(ctx fwk.Context) error
- type Electron
- type EneFrac
- type EnergyScale
- func (tsk *EnergyScale) Configure(ctx fwk.Context) error
- func (tsk *EnergyScale) Process(ctx fwk.Context) error
- func (tsk *EnergyScale) StartTask(ctx fwk.Context) error
- func (tsk *EnergyScale) StopTask(ctx fwk.Context) error
- type EnergySmearing
- func (tsk *EnergySmearing) Configure(ctx fwk.Context) error
- func (tsk *EnergySmearing) Process(ctx fwk.Context) error
- func (tsk *EnergySmearing) StartTask(ctx fwk.Context) error
- func (tsk *EnergySmearing) StopTask(ctx fwk.Context) error
- type EtaPhiBin
- type EtaPhiGrid
- func NewEtaPhiGrid(bins []EtaPhiBin) EtaPhiGrid
- func (grid *EtaPhiGrid) EtaPhiBin(ieta, iphi int) (float64, float64, bool)
- func (grid *EtaPhiGrid) EtaPhiIndex(eta, phi float64) (int, int, bool)
- type Event
- type FastJetFinder
- func (tsk *FastJetFinder) Configure(ctx fwk.Context) error
- func (tsk *FastJetFinder) Process(ctx fwk.Context) error
- func (tsk *FastJetFinder) StartTask(ctx fwk.Context) error
- func (tsk *FastJetFinder) StopTask(ctx fwk.Context) error
- type HepMcReader
- func (tsk *HepMcReader) Configure(ctx fwk.Context) error
- func (tsk *HepMcReader) Process(ctx fwk.Context) error
- func (tsk *HepMcReader) StartTask(ctx fwk.Context) error
- func (tsk *HepMcReader) StopTask(ctx fwk.Context) error
- type HepMcStreamer
- func (s *HepMcStreamer) Connect(ports []fwk.Port) error
- func (s *HepMcStreamer) Disconnect() error
- func (s *HepMcStreamer) Read(ctx fwk.Context) error
- type Isolation
- func (tsk *Isolation) Configure(ctx fwk.Context) error
- func (tsk *Isolation) Process(ctx fwk.Context) error
- func (tsk *Isolation) StartTask(ctx fwk.Context) error
- func (tsk *Isolation) StopTask(ctx fwk.Context) error
- type Jet
- type Merger
- func (tsk *Merger) Configure(ctx fwk.Context) error
- func (tsk *Merger) Process(ctx fwk.Context) error
- func (tsk *Merger) StartTask(ctx fwk.Context) error
- func (tsk *Merger) StopTask(ctx fwk.Context) error
- type MissingEt
- type MomentumSmearing
- func (tsk *MomentumSmearing) Configure(ctx fwk.Context) error
- func (tsk *MomentumSmearing) Process(ctx fwk.Context) error
- func (tsk *MomentumSmearing) StartTask(ctx fwk.Context) error
- func (tsk *MomentumSmearing) StopTask(ctx fwk.Context) error
- type Muon
- type ObjPair
- type Particle
- type Photon
- type Propagator
- func (tsk *Propagator) Configure(ctx fwk.Context) error
- func (tsk *Propagator) Process(ctx fwk.Context) error
- func (tsk *Propagator) StartTask(ctx fwk.Context) error
- func (tsk *Propagator) StopTask(ctx fwk.Context) error
- type Rho
- type RunHeader
- type ScalarHt
- type TauTagging
- func (tsk *TauTagging) Configure(ctx fwk.Context) error
- func (tsk *TauTagging) Process(ctx fwk.Context) error
- func (tsk *TauTagging) StartTask(ctx fwk.Context) error
- func (tsk *TauTagging) StopTask(ctx fwk.Context) error
- type Tower
- type Track
- type UniqueObjectFinder
Types ¶
type BTagging ¶
func (*BTagging) Configure ¶
func (*BTagging) Process ¶
func (*BTagging) StartTask ¶
func (*BTagging) StopTask ¶
type ByPt ¶
type ByPt []Candidate
ByPt sorts candidate by descending Pt
func (ByPt) Len ¶
func (ByPt) Less ¶
func (ByPt) Swap ¶
type Calorimeter ¶
func (*Calorimeter) Configure ¶
func (tsk *Calorimeter) Configure(ctx fwk.Context) error
func (*Calorimeter) Process ¶
func (tsk *Calorimeter) Process(ctx fwk.Context) error
func (*Calorimeter) StartTask ¶
func (tsk *Calorimeter) StartTask(ctx fwk.Context) error
func (*Calorimeter) StopTask ¶
func (tsk *Calorimeter) StopTask(ctx fwk.Context) error
type Candidate ¶
type Candidate struct { Pid int32 // HEP ID number Status int32 // particle status M1, M2, D1, D2 int32 // particle mothers and daughters CandCharge int32 // particle charge CandMass float64 // particle mass IsPU byte // 0 or 1 for particles from pile-up interactions IsConstituent byte // 0 or 1 for particles being constituents BTag uint32 // b-tag information (bit-mask) TauTag uint32 // tau-tag information (bit-mask) Eem float64 // electromagnetic energy Ehad float64 // hadronic energy Edges [4]float64 DEta float64 DPhi float64 Mom fmom.PxPyPzE Pos fmom.PxPyPzE Area fmom.PxPyPzE Candidates []Candidate }
func (*Candidate) Add ¶
func (*Candidate) Charge ¶
func (*Candidate) Clone ¶
func (*Candidate) Overlaps ¶
func (*Candidate) P4 ¶
type Classifier ¶
Classifier classifies candidates into categories
type Efficiency ¶
func (*Efficiency) Configure ¶
func (tsk *Efficiency) Configure(ctx fwk.Context) error
func (*Efficiency) Process ¶
func (tsk *Efficiency) Process(ctx fwk.Context) error
func (*Efficiency) StartTask ¶
func (tsk *Efficiency) StartTask(ctx fwk.Context) error
func (*Efficiency) StopTask ¶
func (tsk *Efficiency) StopTask(ctx fwk.Context) error
type Electron ¶
type Electron struct { Mom fmom.PtEtaPhiM // electron momentum (mass=0.0) EleCharge int32 // electron charge EhoEem float64 // ratio of the hadronic versus electromagnetic energy deposited in the calorimeter McPart *hepmc.Particle // generated particle }
func (*Electron) Charge ¶
func (*Electron) P4 ¶
type EneFrac ¶
type EnergyScale ¶
func (*EnergyScale) Configure ¶
func (tsk *EnergyScale) Configure(ctx fwk.Context) error
func (*EnergyScale) Process ¶
func (tsk *EnergyScale) Process(ctx fwk.Context) error
func (*EnergyScale) StartTask ¶
func (tsk *EnergyScale) StartTask(ctx fwk.Context) error
func (*EnergyScale) StopTask ¶
func (tsk *EnergyScale) StopTask(ctx fwk.Context) error
type EnergySmearing ¶
func (*EnergySmearing) Configure ¶
func (tsk *EnergySmearing) Configure(ctx fwk.Context) error
func (*EnergySmearing) Process ¶
func (tsk *EnergySmearing) Process(ctx fwk.Context) error
func (*EnergySmearing) StartTask ¶
func (tsk *EnergySmearing) StartTask(ctx fwk.Context) error
func (*EnergySmearing) StopTask ¶
func (tsk *EnergySmearing) StopTask(ctx fwk.Context) error
type EtaPhiBin ¶
type EtaPhiGrid ¶
type EtaPhiGrid struct {
// contains filtered or unexported fields
}
func NewEtaPhiGrid ¶
func NewEtaPhiGrid(bins []EtaPhiBin) EtaPhiGrid
func (*EtaPhiGrid) EtaPhiBin ¶
func (grid *EtaPhiGrid) EtaPhiBin(ieta, iphi int) (float64, float64, bool)
EtaPhiBin returns the eta/phi bin center corresponding to a given eta/phi index pair.
func (*EtaPhiGrid) EtaPhiIndex ¶
func (grid *EtaPhiGrid) EtaPhiIndex(eta, phi float64) (int, int, bool)
EtaPhiIndex returns the eta/phi bin indices corresponding to a given eta/phi pair. EtaPhiIndex returns false if no bin contains this eta/phi pair.
type Event ¶
type Event struct { Header RunHeader }
type FastJetFinder ¶
FastJetFinder finds jets using the fastjet library
func (*FastJetFinder) Configure ¶
func (tsk *FastJetFinder) Configure(ctx fwk.Context) error
func (*FastJetFinder) Process ¶
func (tsk *FastJetFinder) Process(ctx fwk.Context) error
func (*FastJetFinder) StartTask ¶
func (tsk *FastJetFinder) StartTask(ctx fwk.Context) error
func (*FastJetFinder) StopTask ¶
func (tsk *FastJetFinder) StopTask(ctx fwk.Context) error
type HepMcReader ¶
func (*HepMcReader) Configure ¶
func (tsk *HepMcReader) Configure(ctx fwk.Context) error
func (*HepMcReader) Process ¶
func (tsk *HepMcReader) Process(ctx fwk.Context) error
func (*HepMcReader) StartTask ¶
func (tsk *HepMcReader) StartTask(ctx fwk.Context) error
func (*HepMcReader) StopTask ¶
func (tsk *HepMcReader) StopTask(ctx fwk.Context) error
type HepMcStreamer ¶
type HepMcStreamer struct { Name string // input filename // contains filtered or unexported fields }
func (*HepMcStreamer) Connect ¶
func (s *HepMcStreamer) Connect(ports []fwk.Port) error
func (*HepMcStreamer) Disconnect ¶
func (s *HepMcStreamer) Disconnect() error
func (*HepMcStreamer) Read ¶
func (s *HepMcStreamer) Read(ctx fwk.Context) error
type Isolation ¶
func (*Isolation) Configure ¶
func (*Isolation) Process ¶
func (*Isolation) StartTask ¶
func (*Isolation) StopTask ¶
type Jet ¶
type Jet struct { Mom fmom.PtEtaPhiM // jet momentum JetCharge int32 // jet charge DEta float64 // jet radius in pseudo-rapidity DPhi float64 // jet radius in azimuthal angle BTag byte // 0 or 1 for a jet that has been tagged as containing a heavy quark TauTag byte // 0 or 1 for a jet that has been tagged as a tau Constituents []Particle // pointers to constituents McParts []*hepmc.Particle // pointers to generated particles }
func (*Jet) Charge ¶
func (*Jet) P4 ¶
type Merger ¶
func (*Merger) Configure ¶
func (*Merger) Process ¶
func (*Merger) StartTask ¶
func (*Merger) StopTask ¶
type MissingEt ¶
type MissingEt struct { MET float64 // missing transverse energy Phi float64 // missing energy azimuthal angle }
type MomentumSmearing ¶
func (*MomentumSmearing) Configure ¶
func (tsk *MomentumSmearing) Configure(ctx fwk.Context) error
func (*MomentumSmearing) Process ¶
func (tsk *MomentumSmearing) Process(ctx fwk.Context) error
func (*MomentumSmearing) StartTask ¶
func (tsk *MomentumSmearing) StartTask(ctx fwk.Context) error
func (*MomentumSmearing) StopTask ¶
func (tsk *MomentumSmearing) StopTask(ctx fwk.Context) error
type Muon ¶
type Muon struct { Mom fmom.PtEtaPhiM // muon momentum (mass=0.0) MuCharge int32 // muon charge McPart *hepmc.Particle // generated particle }
func (*Muon) Charge ¶
func (*Muon) P4 ¶
type ObjPair ¶
type Particle ¶
type Photon ¶
type Photon struct { Mom fmom.PtEtaPhiM // photon momentum (mass=0.0) EhoEem float64 // ratio of the hadronic over electromagnetic energy deposited in the calorimeter McPart *hepmc.Particle // generated particle }
func (*Photon) Charge ¶
func (*Photon) P4 ¶
type Propagator ¶
func (*Propagator) Configure ¶
func (tsk *Propagator) Configure(ctx fwk.Context) error
func (*Propagator) Process ¶
func (tsk *Propagator) Process(ctx fwk.Context) error
func (*Propagator) StartTask ¶
func (tsk *Propagator) StartTask(ctx fwk.Context) error
func (*Propagator) StopTask ¶
func (tsk *Propagator) StopTask(ctx fwk.Context) error
type Rho ¶
type Rho float64
rho energy density
type RunHeader ¶
type RunHeader struct { RunNbr int64 // run number EvtNbr int64 // event number Trigger int64 // trigger word }
type ScalarHt ¶
type ScalarHt float64
scalar sum of transverse momenta
type TauTagging ¶
func (*TauTagging) Configure ¶
func (tsk *TauTagging) Configure(ctx fwk.Context) error
func (*TauTagging) Process ¶
func (tsk *TauTagging) Process(ctx fwk.Context) error
func (*TauTagging) StartTask ¶
func (tsk *TauTagging) StartTask(ctx fwk.Context) error
func (*TauTagging) StopTask ¶
func (tsk *TauTagging) StopTask(ctx fwk.Context) error
type Tower ¶
type Tower struct { Mom fmom.EtEtaPhiM // calorimeter tower momentum Ene float64 // calorimeter tower energy Eem float64 // calorimeter tower electromagnetic energy Ehad float64 // calorimter tower hadronic energy Edges [4]float64 // calorimeter tower edges McParts []*hepmc.Particle // pointers to generated particles }
func (*Tower) P4 ¶
type Track ¶
type Track struct { Pid int32 // HEP ID number Mom fmom.PtEtaPhiM // track momentum (mass=0.0) TrkCharge int32 // track charge Eta float64 // track pseudo-rapidity at the tracker edge Phi float64 // track azimuthal angle at the tracker edge X float64 // track vertex position Y float64 // track vertex position Z float64 // track vertex position Xout float64 // track vertex position at the tracker edge Yout float64 // track vertex position at the tracker edge Zout float64 // track vertex position at the tracker edge McPart *hepmc.Particle // pointer to generated particle }
func (*Track) Charge ¶
func (*Track) P4 ¶
type UniqueObjectFinder ¶
func (*UniqueObjectFinder) Configure ¶
func (tsk *UniqueObjectFinder) Configure(ctx fwk.Context) error
func (*UniqueObjectFinder) Process ¶
func (tsk *UniqueObjectFinder) Process(ctx fwk.Context) error
func (*UniqueObjectFinder) StartTask ¶
func (tsk *UniqueObjectFinder) StartTask(ctx fwk.Context) error
func (*UniqueObjectFinder) StopTask ¶
func (tsk *UniqueObjectFinder) StopTask(ctx fwk.Context) error
Source Files ¶
btagging.go calo.go datamodel.go dumper.go efficiency.go energy_scale.go energy_smearing.go event.go fads.go fastjet_finder.go hepmcreader.go isolation.go merger.go momentum_smearing.go propagator.go tautagging.go unique_obj_finder.go utils.go
Directories ¶
Path | Synopsis |
---|---|
fads/cmd | |
fads/cmd/fads-app | fads-app is a command that runs a simple ATLAS-like detector simulation, modelled after the C++ Delphes ATLAS data-card. |
fads/cmd/fads-rivet-mc-generic | fads-rivet-mc-generic is a command mirroring the MC_GENERIC analysis example from Rivet. |
- Version
- v0.37.0 (latest)
- Published
- May 20, 2025
- Platform
- linux/amd64
- Imports
- 15 packages
- Last checked
- 16 hours ago –
Tools for package owners.