KaliVeda
Toolkit for HIC analysis
KVPhoswich.cpp
1 /***************************************************************************
2 $Id: KVPhoswich.cpp,v 1.14 2007/01/04 16:38:50 franklan Exp $
3  kvphoswich.cpp - description
4  -------------------
5  begin : Thu May 16 2002
6  copyright : (C) 2002 by J.D. Frankland
7  email : frankland@ganil.fr
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 #include "KVPhoswich.h"
19 
21 
22 
25 
27 {
28  //Override KVDetector::GetEnergy to return total energy lost in both layers
29 
30  return (GetAbsorber(0)->GetEnergyLoss() +
31  GetAbsorber(1)->GetEnergyLoss());
32 }
33 
34 
35 
38 
40 {
41  //Set energy lost in both layers
42 
43  GetAbsorber(0)->SetEnergyLoss(e / 2.);
44  GetAbsorber(1)->SetEnergyLoss(e / 2.);
45 }
46 
47 
#define e(i)
double Double_t
Phoswich detector in the INDRA array (first 3 campaigns)
Definition: KVPhoswich.h:36
Double_t GetEnergy() const override
Override KVDetector::GetEnergy to return total energy lost in both layers.
Definition: KVPhoswich.cpp:26
void SetEnergy(Double_t e) const override
Set energy lost in both layers.
Definition: KVPhoswich.cpp:39
ClassImp(TPyArg)