HerdSoftware
0.1.1
|
Base algorithm for bonding digitizers of the Monte Carlo hits of silicon detectors. More...
#include <algorithms/digitization/SiliconDetectorBondingDigitizerAlgo.h>
Public Member Functions | |
SiliconDetectorBondingDigitizerAlgo (const std::string &name) | |
Constructor. More... | |
bool | Initialize () override |
Initialization of the algorithm. More... | |
bool | Process () override |
Process a single event. More... | |
std::vector< std::string > | FreeObjects (const std::vector< std::string > &objs, Memory::Status memStatus) override |
Free the memory of unneeded objects. More... | |
Protected Attributes | |
int | _nWafersPerLadderTop |
Number of wafers in each ladder, i.e. wafers to be bonded together, on top face. More... | |
int | _nWafersPerLadderSideEven |
int | _nWafersPerLadderSideOdd |
std::string | _detName |
Name of the detector, e.g "stk". More... | |
Private Member Functions | |
SiliconDetectorHitsColl | _Bond (const SiliconDetectorHitsColl &hitsColl) |
Bonds the silicon strips. More... | |
SiliconDetectorGeoParams | _CreateGeoParams (const SiliconDetectorGeoParams &origGeoParams, int nWafersPerLadder) |
Creates the geometry parameter objects for the bonded detector. More... | |
int | _NWafersPerLadder (RefFrame::Side side, int iLayer) |
Private Attributes | |
SiliconDetectorHitsColl | _bondedHitsColl |
std::shared_ptr< SiliconDetectorGeoParamsColl > | _bondedGeoParamsColl |
observer_ptr< SiliconDetectorGeoParamsColl > | _origGeoParamsColl |
StorePtr | _evStore |
StorePtr | _globStore |
Base algorithm for bonding digitizers of the Monte Carlo hits of silicon detectors.
This algorithm sums up the energy releases in the strips in neighboring wafers that are connected by bonding wires to produce the energy release in each strip of the ladder.
NOTE: this algorithm cannot be used directly in analysis job; use #StkBondingDigitizerAlgo for STK and #ScdBondingDigitizerAlgo for SCD.
Herd::SiliconDetectorBondingDigitizerAlgo::SiliconDetectorBondingDigitizerAlgo | ( | const std::string & | name | ) |
Constructor.
name | The name of the algorithm. |
|
private |
Bonds the silicon strips.
This function computes the hits on the bonded strips. It fills the collection passed as the HitsColl
argument with the digitized hits.
hitsColl | The collection of hits. |
|
private |
Creates the geometry parameter objects for the bonded detector.
Starting from the original geometry parameters this method computes the new geoparams objects accounting for bonded wafers
origGeoParams | the original geometry parameters. |
nWafersPerLadder | the number of wafers in the bonded ladder. |
|
inlineprivate |
|
override |
Free the memory of unneeded objects.
Currently this method frees the memory of the digitized hits if memStatus
is EXHAUSTED.
objs | The list of objects to be freed. |
memStatus | The current memory occupation status. |
|
override |
Initialization of the algorithm.
|
override |
Process a single event.
|
private |
|
private |
|
protected |
Name of the detector, e.g "stk".
|
private |
|
private |
|
protected |
Number of wafers in each ladder, i.e. wafers to be bonded together, on side faces for even layers
|
protected |
Number of wafers in each ladder, i.e. wafers to be bonded together, on side faces for odd layers
|
protected |
Number of wafers in each ladder, i.e. wafers to be bonded together, on top face.
|
private |