gtouchable
Loading...
Searching...
No Matches
gtouchable.h File Reference
#include "gbase.h"
#include <vector>
#include <string>
#include <memory>
#include <CLHEP/Units/SystemOfUnits.h>
#include "gtouchable_options.h"
#include "gtouchableConventions.h"
Include dependency graph for gtouchable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GIdentifier
 A single (name,value) identifier element used to build a touchable identity vector. More...
 
class  GTouchable
 Represents a touchable sensitive detector element used as a hit-collection discriminator. More...
 

Namespaces

namespace  gtouchable
 

Enumerations

enum  GTouchableType {
  readout , flux , particle_counter , dosimeter ,
  integral_counter
}
 Enumeration representing the type of a touchable sensitive element. More...
 

Functions

const char * gtouchable::to_string (GTouchableType t)
 Converts a GTouchableType value to a stable string for logging.
 

Enumeration Type Documentation

◆ GTouchableType

The type determines the secondary discriminating rule used after the identity vector:

  • readout: uses the electronics time-cell index. Steps ending in the same time are accumulated in the hits.
  • flux: uses track id to discriminate between hits.
  • particle_counter: uses particle id to discriminate between hits.
  • dosimeter: requires no additional discriminator beyond the identity vector. Meant to accumulate dose.
  • integral_counter: uses particle id to discriminate between hits.

The mapping from a digitization string to a GTouchableType is implemented in the GTouchable constructors, using the constants FLUXNAME, COUNTERNAME, and DOSIMETERNAME.

Enumerator
readout 
flux 
particle_counter 
dosimeter 
integral_counter 

Definition at line 31 of file gtouchable.h.