AnalysisDUT.h 1.89 KB
Newer Older
1
2
#ifndef CORRYVRECKAN_DUT_ANALYSIS_H
#define CORRYVRECKAN_DUT_ANALYSIS_H
3

4
5
6
7
#include <TCanvas.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TProfile2D.h>
8
9
10
11
12
13
#include <iostream>
#include "core/module/Module.hpp"

namespace corryvreckan {
    /** @ingroup Modules
     */
14
    class AnalysisDUT : public Module {
15
16
17

    public:
        // Constructors and destructors
18
19
        AnalysisDUT(Configuration config, std::shared_ptr<Detector> detector);
        ~AnalysisDUT() {}
20
21
22

        // Functions
        void initialise();
23
        StatusCode run(std::shared_ptr<Clipboard> clipboard);
24
25

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

28
        // Histograms
29
        TH2F *hClusterMapAssoc, *hHitMapAssoc, *hHitMapROI;
30
        TProfile2D *hClusterSizeMapAssoc, *hClusterToTMapAssoc;
31
32
33
34
35
36
37
38
39
40

        TH1F* hPixelToTAssoc;
        TProfile2D* hPixelToTMapAssoc;

        TH1F* associatedTracksVersusTime;
        TH1F *residualsX, *residualsY;

        TH1F *residualsX1pix, *residualsY1pix;
        TH1F *residualsX2pix, *residualsY2pix;

41
        TH1F *clusterTotAssoc, *clusterTotAssocNorm;
42
43
        TH1F* clusterSizeAssoc;

44
45
46
47
48
        TProfile2D *rmsxvsxmym, *rmsyvsxmym, *rmsxyvsxmym;
        TProfile2D *qvsxmym, *qMoyalvsxmym, *pxqvsxmym;
        TProfile2D* npxvsxmym;
        TH2F *npx1vsxmym, *npx2vsxmym, *npx3vsxmym, *npx4vsxmym;

49
50
51
        TProfile2D* hPixelEfficiencyMap;
        TProfile2D* hChipEfficiencyMap;
        TProfile2D* hGlobalEfficiencyMap;
52
53
54
55
56
57
58
59
60
61
62
63

        TH1F* hTrackCorrelationX;
        TH1F* hTrackCorrelationY;
        TH1F* hTrackCorrelationTime;
        TH1F* residualsTime;
        TH2F* residualsTimeVsTime;
        TH2F* residualsTimeVsSignal;

        TH2F* hAssociatedTracksGlobalPosition;
        TH2F* hUnassociatedTracksGlobalPosition;

        // Member variables
64
        double spatialCut, m_timeCutFrameEdge;
65
66
67
68
        double chi2ndofCut;
    };
} // namespace corryvreckan

69
#endif // CORRYVRECKAN_DUT_ANALYSIS_H