TestAlgorithm.h 1.18 KB
Newer Older
1
2
3
#ifndef TESTALGORITHM_H
#define TESTALGORITHM_H 1

4
5
6
#include <TCanvas.h>
#include <TH1F.h>
#include <TH2F.h>
7
#include <iostream>
8
#include "core/module/Module.hpp"
9
#include "objects/Cluster.hpp"
Simon Spannagel's avatar
Simon Spannagel committed
10
#include "objects/Pixel.hpp"
11

12
namespace corryvreckan {
13
    /** @ingroup Modules
Simon Spannagel's avatar
Simon Spannagel committed
14
     */
15
    class TestAlgorithm : public Module {
Simon Spannagel's avatar
Simon Spannagel committed
16
17
18

    public:
        // Constructors and destructors
19
        TestAlgorithm(Configuration config, std::shared_ptr<Detector> detector);
Simon Spannagel's avatar
Simon Spannagel committed
20
21
22
        ~TestAlgorithm() {}

        // Functions
23
        void initialise();
24
        StatusCode run(std::shared_ptr<Clipboard> clipboard);
Simon Spannagel's avatar
Simon Spannagel committed
25

26
27
28
    private:
        std::shared_ptr<Detector> m_detector;

Simon Spannagel's avatar
Simon Spannagel committed
29
        // Pixel histograms
30
31
        TH2F* hitmap;
        TH1F* eventTimes;
Simon Spannagel's avatar
Simon Spannagel committed
32
33

        // Correlation plots
34
35
36
37
38
39
40
41
        TH1F* correlationX;
        TH1F* correlationY;
        TH2F* correlationX2Dlocal;
        TH2F* correlationY2Dlocal;
        TH2F* correlationX2D;
        TH2F* correlationY2D;
        TH1F* correlationTime;
        TH1F* correlationTimeInt;
Simon Spannagel's avatar
Simon Spannagel committed
42
43
44

        // Parameters which can be set by user
        bool makeCorrelations;
45
        double timingCut;
46
        bool do_timing_cut_;
Simon Spannagel's avatar
Simon Spannagel committed
47
    };
48
} // namespace corryvreckan
49
#endif // TESTALGORITHM_H