hep: go-hep.org/x/hep/fads Index | Files | Directories

package fads

import "go-hep.org/x/hep/fads"

Package fads exposes building blocks for a fast simulation of a HEP detector.

Index

Package 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

type BTagging Uses

type BTagging struct {
    fwk.TaskBase
    // contains filtered or unexported fields
}

func (*BTagging) Configure Uses

func (tsk *BTagging) Configure(ctx fwk.Context) error

func (*BTagging) Process Uses

func (tsk *BTagging) Process(ctx fwk.Context) error

func (*BTagging) StartTask Uses

func (tsk *BTagging) StartTask(ctx fwk.Context) error

func (*BTagging) StopTask Uses

func (tsk *BTagging) StopTask(ctx fwk.Context) error

type ByPt Uses

type ByPt []Candidate

ByPt sorts candidate by descending Pt

func (ByPt) Len Uses

func (p ByPt) Len() int

func (ByPt) Less Uses

func (p ByPt) Less(i, j int) bool

func (ByPt) Swap Uses

func (p ByPt) Swap(i, j int)

type Calorimeter Uses

type Calorimeter struct {
    fwk.TaskBase
    // contains filtered or unexported fields
}

func (*Calorimeter) Configure Uses

func (tsk *Calorimeter) Configure(ctx fwk.Context) error

func (*Calorimeter) Process Uses

func (tsk *Calorimeter) Process(ctx fwk.Context) error

func (*Calorimeter) StartTask Uses

func (tsk *Calorimeter) StartTask(ctx fwk.Context) error

func (*Calorimeter) StopTask Uses

func (tsk *Calorimeter) StopTask(ctx fwk.Context) error

type Candidate Uses

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 Uses

func (cand *Candidate) Add(c *Candidate)

func (*Candidate) Charge Uses

func (cand *Candidate) Charge() int32

func (*Candidate) Clone Uses

func (cand *Candidate) Clone() *Candidate

func (*Candidate) Overlaps Uses

func (cand *Candidate) Overlaps(o *Candidate) bool

func (*Candidate) P4 Uses

func (cand *Candidate) P4() fmom.P4

type Classifier Uses

type Classifier interface {
    Category(cand *Candidate) int
}

Classifier classifies candidates into categories

type Efficiency Uses

type Efficiency struct {
    fwk.TaskBase
    // contains filtered or unexported fields
}

func (*Efficiency) Configure Uses

func (tsk *Efficiency) Configure(ctx fwk.Context) error

func (*Efficiency) Process Uses

func (tsk *Efficiency) Process(ctx fwk.Context) error

func (*Efficiency) StartTask Uses

func (tsk *Efficiency) StartTask(ctx fwk.Context) error

func (*Efficiency) StopTask Uses

func (tsk *Efficiency) StopTask(ctx fwk.Context) error

type Electron Uses

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 Uses

func (ele *Electron) Charge() int32

func (*Electron) P4 Uses

func (ele *Electron) P4() fmom.P4

type EneFrac Uses

type EneFrac struct {
    ECal float64
    HCal float64
}

type EnergyScale Uses

type EnergyScale struct {
    fwk.TaskBase
    // contains filtered or unexported fields
}

func (*EnergyScale) Configure Uses

func (tsk *EnergyScale) Configure(ctx fwk.Context) error

func (*EnergyScale) Process Uses

func (tsk *EnergyScale) Process(ctx fwk.Context) error

func (*EnergyScale) StartTask Uses

func (tsk *EnergyScale) StartTask(ctx fwk.Context) error

func (*EnergyScale) StopTask Uses

func (tsk *EnergyScale) StopTask(ctx fwk.Context) error

type EnergySmearing Uses

type EnergySmearing struct {
    fwk.TaskBase
    // contains filtered or unexported fields
}

func (*EnergySmearing) Configure Uses

func (tsk *EnergySmearing) Configure(ctx fwk.Context) error

func (*EnergySmearing) Process Uses

func (tsk *EnergySmearing) Process(ctx fwk.Context) error

func (*EnergySmearing) StartTask Uses

func (tsk *EnergySmearing) StartTask(ctx fwk.Context) error

func (*EnergySmearing) StopTask Uses

func (tsk *EnergySmearing) StopTask(ctx fwk.Context) error

type EtaPhiBin Uses

type EtaPhiBin struct {
    EtaBins []float64
    PhiBins []float64
}

type EtaPhiGrid Uses

type EtaPhiGrid struct {
    // contains filtered or unexported fields
}

func NewEtaPhiGrid Uses

func NewEtaPhiGrid(bins []EtaPhiBin) EtaPhiGrid

func (*EtaPhiGrid) EtaPhiBin Uses

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 Uses

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 Uses

type Event struct {
    Header RunHeader
}

type FastJetFinder Uses

type FastJetFinder struct {
    fwk.TaskBase
    // contains filtered or unexported fields
}

FastJetFinder finds jets using the fastjet library

func (*FastJetFinder) Configure Uses

func (tsk *FastJetFinder) Configure(ctx fwk.Context) error

func (*FastJetFinder) Process Uses

func (tsk *FastJetFinder) Process(ctx fwk.Context) error

func (*FastJetFinder) StartTask Uses

func (tsk *FastJetFinder) StartTask(ctx fwk.Context) error

func (*FastJetFinder) StopTask Uses

func (tsk *FastJetFinder) StopTask(ctx fwk.Context) error

type HepMcReader Uses

type HepMcReader struct {
    fwk.TaskBase
    // contains filtered or unexported fields
}

func (*HepMcReader) Configure Uses

func (tsk *HepMcReader) Configure(ctx fwk.Context) error

func (*HepMcReader) Process Uses

func (tsk *HepMcReader) Process(ctx fwk.Context) error

func (*HepMcReader) StartTask Uses

func (tsk *HepMcReader) StartTask(ctx fwk.Context) error

func (*HepMcReader) StopTask Uses

func (tsk *HepMcReader) StopTask(ctx fwk.Context) error

type HepMcStreamer Uses

type HepMcStreamer struct {
    Name string // input filename
    // contains filtered or unexported fields
}

func (*HepMcStreamer) Connect Uses

func (s *HepMcStreamer) Connect(ports []fwk.Port) error

func (*HepMcStreamer) Disconnect Uses

func (s *HepMcStreamer) Disconnect() error

func (*HepMcStreamer) Read Uses

func (s *HepMcStreamer) Read(ctx fwk.Context) error

type Isolation Uses

type Isolation struct {
    fwk.TaskBase
    // contains filtered or unexported fields
}

func (*Isolation) Configure Uses

func (tsk *Isolation) Configure(ctx fwk.Context) error

func (*Isolation) Process Uses

func (tsk *Isolation) Process(ctx fwk.Context) error

func (*Isolation) StartTask Uses

func (tsk *Isolation) StartTask(ctx fwk.Context) error

func (*Isolation) StopTask Uses

func (tsk *Isolation) StopTask(ctx fwk.Context) error

type Jet Uses

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 Uses

func (jet *Jet) Charge() int32

func (*Jet) P4 Uses

func (jet *Jet) P4() fmom.P4

type Merger Uses

type Merger struct {
    fwk.TaskBase
    // contains filtered or unexported fields
}

func (*Merger) Configure Uses

func (tsk *Merger) Configure(ctx fwk.Context) error

func (*Merger) Process Uses

func (tsk *Merger) Process(ctx fwk.Context) error

func (*Merger) StartTask Uses

func (tsk *Merger) StartTask(ctx fwk.Context) error

func (*Merger) StopTask Uses

func (tsk *Merger) StopTask(ctx fwk.Context) error

type MissingEt Uses

type MissingEt struct {
    MET float64 // missing transverse energy
    Phi float64 // missing energy azimuthal angle
}

type MomentumSmearing Uses

type MomentumSmearing struct {
    fwk.TaskBase
    // contains filtered or unexported fields
}

func (*MomentumSmearing) Configure Uses

func (tsk *MomentumSmearing) Configure(ctx fwk.Context) error

func (*MomentumSmearing) Process Uses

func (tsk *MomentumSmearing) Process(ctx fwk.Context) error

func (*MomentumSmearing) StartTask Uses

func (tsk *MomentumSmearing) StartTask(ctx fwk.Context) error

func (*MomentumSmearing) StopTask Uses

func (tsk *MomentumSmearing) StopTask(ctx fwk.Context) error

type Muon Uses

type Muon struct {
    Mom      fmom.PtEtaPhiM // muon momentum (mass=0.0)
    MuCharge int32          // muon charge

    McPart *hepmc.Particle // generated particle
}

func (*Muon) Charge Uses

func (muon *Muon) Charge() int32

func (*Muon) P4 Uses

func (muon *Muon) P4() fmom.P4

type ObjPair Uses

type ObjPair struct {
    In  string
    Out string
}

type Particle Uses

type Particle interface {
    P4() fmom.P4
    Charge() int32
}

type Photon Uses

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 Uses

func (pho *Photon) Charge() int32

func (*Photon) P4 Uses

func (pho *Photon) P4() fmom.P4

type Propagator Uses

type Propagator struct {
    fwk.TaskBase
    // contains filtered or unexported fields
}

func (*Propagator) Configure Uses

func (tsk *Propagator) Configure(ctx fwk.Context) error

func (*Propagator) Process Uses

func (tsk *Propagator) Process(ctx fwk.Context) error

func (*Propagator) StartTask Uses

func (tsk *Propagator) StartTask(ctx fwk.Context) error

func (*Propagator) StopTask Uses

func (tsk *Propagator) StopTask(ctx fwk.Context) error

type Rho Uses

type Rho float64

rho energy density

type RunHeader Uses

type RunHeader struct {
    RunNbr  int64 // run number
    EvtNbr  int64 // event number
    Trigger int64 // trigger word
}

type ScalarHt Uses

type ScalarHt float64

scalar sum of transverse momenta

type TauTagging Uses

type TauTagging struct {
    fwk.TaskBase
    // contains filtered or unexported fields
}

func (*TauTagging) Configure Uses

func (tsk *TauTagging) Configure(ctx fwk.Context) error

func (*TauTagging) Process Uses

func (tsk *TauTagging) Process(ctx fwk.Context) error

func (*TauTagging) StartTask Uses

func (tsk *TauTagging) StartTask(ctx fwk.Context) error

func (*TauTagging) StopTask Uses

func (tsk *TauTagging) StopTask(ctx fwk.Context) error

type Tower Uses

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 Uses

func (tower *Tower) P4() fmom.P4

type Track Uses

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 Uses

func (trk *Track) Charge() int32

func (*Track) P4 Uses

func (trk *Track) P4() fmom.P4

type UniqueObjectFinder Uses

type UniqueObjectFinder struct {
    fwk.TaskBase
    // contains filtered or unexported fields
}

func (*UniqueObjectFinder) Configure Uses

func (tsk *UniqueObjectFinder) Configure(ctx fwk.Context) error

func (*UniqueObjectFinder) Process Uses

func (tsk *UniqueObjectFinder) Process(ctx fwk.Context) error

func (*UniqueObjectFinder) StartTask Uses

func (tsk *UniqueObjectFinder) StartTask(ctx fwk.Context) error

func (*UniqueObjectFinder) StopTask Uses

func (tsk *UniqueObjectFinder) StopTask(ctx fwk.Context) error

Directories

PathSynopsis
cmd/fads-appfads-app is a command that runs a simple ATLAS-like detector simulation, modelled after the C++ Delphes ATLAS data-card.
cmd/fads-rivet-mc-genericfads-rivet-mc-generic is a command mirroring the MC_GENERIC analysis example from Rivet.

Package fads imports 15 packages (graph) and is imported by 2 packages. Updated 2018-07-27. Refresh now. Tools for package owners.