From d2a0ad93b49d0f1c2f916c700d884e60d7ecfd5a Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Tue, 6 Dec 2022 17:03:26 +0100
Subject: [PATCH] Improve DDDigi doc

---
 DDDigi/README.md              | 16 ++++++++--------
 DDDigi/src/DigiAttenuator.cpp |  2 --
 2 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/DDDigi/README.md b/DDDigi/README.md
index f3c2720e3..fe50fe6d3 100644
--- a/DDDigi/README.md
+++ b/DDDigi/README.md
@@ -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.                     |
 
 
 
diff --git a/DDDigi/src/DigiAttenuator.cpp b/DDDigi/src/DigiAttenuator.cpp
index d736a11e4..62845b03b 100644
--- a/DDDigi/src/DigiAttenuator.cpp
+++ b/DDDigi/src/DigiAttenuator.cpp
@@ -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;
-- 
GitLab