generated from key4hep/k4-project-template
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DCH v2 digitizer, which smears the position and adds cluster informat…
…ion (#27) * DCH v2 digitizer, which smears the position and adds cluster information * remove gaudi transformer linking/header * filter out the new digitizer if DCH data extension is not found * update test of idea vx * fix vx test * remove position_L/R member of data extension * add test for DCHdigi * add protection in case the file for CLS is not available * add ctest * cast variables to void to get rid of spurious compiler warning * add edm4hep link in yaml * use to mutable digi hit * add association as second collection in the output * fix path to compact file of DCH stand alone * array index in C start at 0... * use ref to mutable object, to be checked if association is correct * write association in the output * default z resolution 1 mm * default xy resolution 0.1 mm * expanded comment about the uid service * comment added * add comment about advancing the random engines * change value in test * output file with histograms for debugging is now configurable from steering * remove unused function * add shebang * remove alias for edm4hep classes * rename namespace of edm4hep extension to edm4hep, add interface * implement Thomas suggestion, exit code removed * moving back new edm4hep classes to extension namespace * add interface back again... * add extension::Track * rename of cluster variables * indentantion is compliant with local .clang-format file * indentation corrected * avoid downloading several times the cluster input file * initialize variables, fix compilation in ubuntu * major refactorization of cluster counting function * data extension modified, field was total number of electrons summed over all clusters during that step * clang format of source code * include vector of cluster sizes in the data extension * add few comments * move initialization of distributions to the main scope of the CalculateClusters function * add protection against zero energy hit * change direction and random seed for DDSim steering file * add version v01 suffix to digitizer class name * add protection against negative values * add readme * ancillary functions to calculate wire positions moved to data extension * use new geometry functions from data extension, safer way of saving output histograms * update comments * update README * update README * additional flag to make dNdx calculation optional, plus extra comments * update README and header doxygen * enable dNdx calculation in the test
- Loading branch information
1 parent
5101031
commit d133342
Showing
14 changed files
with
3,822 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Drift chamber (DCH) digitizers | ||
|
||
## DCHdigi_v01 | ||
|
||
* Each simulated hit is transformed into a digitized hit. The digitized hit position is the projection of the simulated hit position onto the sense wire (at the center of the cell) | ||
* Smearing of the digitized hit position along the wire and radially is done according to the input parameter values (`zResolution_mm` and `xyResolution_mm`, respectively) | ||
* The digitized hit adds dNdx information if flag `calculate_dndx` is enabled (default not). This information consist on number of clusters and their size, which are derived from precalculated distributions contained in an input file specified by the parameter `fileDataAlg`. The method and distributions corresponds to the option 3 described in F. Cuna et al, arXiv:2105.07064 | ||
* It requires that the cellID contain the layer and number of cell within the layer (nphi). It does not matter if the segmentation comes from geometrical segmentation by using twisted tubes and hyperboloids (and the cellID is created out of volume IDs), or the segmentation is virtual DD4hep segmentation | ||
* New digitized hit class is used as an EDM4hep data extension, to be integrated into EDM4hep | ||
* Debug histograms are created if `create_debug_histograms` option is enabled (output file name can be given) | ||
* Stand alone test run simulation of the drift chamber based on twisted tubes, and then apply the digitizer. Dedicated directory with all the files needed is given in `DCHdigi/test/test_DCHdigi/` | ||
* Random number generator uses the seeds calculated on an event basis by the UID service, from the podio header information (run/event number) | ||
* This digitizer is meant to be used with `DriftChamber_o1_v02` from k4geo and is expected to work for the upcoming `DriftChamber_o1_v03` | ||
|
||
## DCHsimpleDigitizerExtendedEdm | ||
|
||
* Algorithm for creating digitized drift chamber hits (based on edm4hep::TrackerHit3D) from edm4hep::SimTrackerHit. Resolution along z and xy (distance to the wire) has to be specified. The smearing is applied in the wire reference frame, by means of the placement matrix of the wires | ||
* No cluster counting information is added into the digitized output | ||
* It relies on a dedicated data extension, similar to DCHdigi_v01 | ||
* This digitizer is meant to be used with `DriftChamber_o1_v01` from k4geo. Deprecated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.