KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVDetectorSignal.cpp
Go to the documentation of this file.
1 //Created by KVClassFactory on Wed Jun 5 17:00:08 2019
2 //Author: John Frankland,,,
3 
4 #include "KVDetectorSignal.h"
5 #include "KVDetector.h"
6 
8 
9 
10 
13  : KVBase(type), fDetector(det), fValue(0)
14 {
15  if (det) SetTitle(Form("Signal %s of detector %s", type, det->GetName()));
16  else SetTitle(Form("Detector signal %s", type));
17 }
18 
19 
20 
22 
24 {
25  double value = -1;
26  // if value can be calculated without supplementary parameters, we print it
27  if (IsAvailableFor("")) value = GetValue();
28  printf(" %-15s\t%-32s\t%-80s\t[%lf]\n", GetName(), ClassName(), GetType(), value);
29 }
30 
31 
32 
35 
37 {
38  // Override in child classes to report on the 'status' of the signal.
39  return -1;
40 }
41 
42 
43 
int Int_t
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
char Char_t
const char Option_t
int type
char * Form(const char *fmt,...)
Base class for KaliVeda framework.
Definition: KVBase.h:135
const Char_t * GetType() const
Definition: KVBase.h:170
Output signal data produced by a detector.
virtual Double_t GetValue(const KVNameValueList &="") const
virtual Int_t GetStatus(const TString &) const
Override in child classes to report on the 'status' of the signal.
void ls(Option_t *="") const
virtual Bool_t IsAvailableFor(const KVNameValueList &) const
Base class for detector geometry description, interface to energy-loss calculations.
Definition: KVDetector.h:121
virtual const char * GetName() const
virtual const char * ClassName() const