Skip to content
Snippets Groups Projects
Commit d2a0ad93 authored by Markus Frank's avatar Markus Frank Committed by MarkusFrankATcernch
Browse files

Improve DDDigi doc

parent f7b44beb
No related branches found
No related tags found
No related merge requests found
......@@ -72,14 +72,14 @@ energy deposits of the simulation.
Deposit attenuator for energy deposits according to decay time constant. <br/>
Properties: <br/>
|**Property** |**Data type** |**Description** |
|:--- |:--- |:--- |
|`.input` | vector<string> | List of input files to be processed |
|`.attenuate_history`| boolean | Propagate the weight also to the history entries. default: true |
|`.processor_type`| string | Processor type used for single container attenuation default: `DigiAttenuator` |
|`.containers` | vector<string> | List of containers to be attenuated. |
|`.signal_decay`| string | Decay function. default: `exponential` |
|`.t0` | double | Time constant for exponential signal decay. |
|**Property** |**Data type** |**Description** |
|:--- |:--- |:--- |
|`.input` | vector<string> | List of input files to be processed |
|`.processor_type`| string | Processor type used for single container attenuation. |
| | | default: `DigiAttenuator` |
|`.containers` | vector<string> | List of containers to be attenuated. |
|`.signal_decay` | string | Decay function. default: `exponential` |
|`.t0` | double | Time constant for exponential signal decay. |
......
......@@ -48,8 +48,6 @@ DigiAttenuator::attenuate(T& cont, const predicate_t& predicate) const {
for( auto& dep : cont ) {
if ( predicate(dep) ) {
dep.second.deposit *= m_factor;
if ( !m_attenuate_history )
continue;
auto& e = dep.second.history;
for( auto& h : e.hits ) h.weight *= m_factor;
for( auto& h : e.particles ) h.weight *= m_factor;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment