CorrelationFactory.h
1 
9 #ifndef CORRELATIONFACTORY_H
10 #define CORRELATIONFACTORY_H
11 
12 //Includes
13 #include <iostream>
14 #include <TObject.h>
15 #include <TMath.h>
16 #include <TVector3.h>
17 
18 class WaveformGraph;
19 
20 
22 
26 {
27  public:
30 
31  //Instance generator
32  static CorrelationFactory* Instance();
33 
34  void addWaveformToCorrelation(WaveformGraph *inputWave);
35 
36  void setCorrelationDeltaT(Double_t deltaT) {fDeltaT=deltaT;}
37  Double_t getCorrelationDeltaT() { return fDeltaT;}
38 
39 
41  Double_t fDeltaT;
42 
43  protected:
45 
46 };
47 
48 
49 #endif //CORRELATIONFACTORY_H
WaveformGraph * fGrWave[2]
The input WaveformGraph&#39;s.
static CorrelationFactory * Instance()
Instance generator.
void setCorrelationDeltaT(Double_t deltaT)
Sets the deltaT for the correlation.
static CorrelationFactory * fgInstance
Protect against multiple instances.
The graph class that inherits from ROOT&#39;s TGraph.
Definition: WaveformGraph.h:14
Double_t fDeltaT
The deltaT used in the correlation.
~CorrelationFactory()
Destructor.
CorrelationFactory()
Constructor.
The correlation factory which takes two waveforms and correlates them.
Double_t getCorrelationDeltaT()
Returns the deltaT used in correlation.
void addWaveformToCorrelation(WaveformGraph *inputWave)
Adds a a waveform to the correlation.