AnalysisDUT.h 1.95 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
        void finalise();
25
26

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

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

        TH1F* hPixelToTAssoc;
        TProfile2D* hPixelToTMapAssoc;

        TH1F* associatedTracksVersusTime;
        TH1F *residualsX, *residualsY;

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

42
        TH1F *clusterTotAssoc, *clusterTotAssocNorm;
43
        TH1F* clusterSizeAssoc;
44
        TH1F* clusterSizeAssocNorm;
45

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

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

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

        TH2F* hAssociatedTracksGlobalPosition;
63
        TH2F* hAssociatedTracksLocalPosition;
64
65

        // Member variables
66
        double spatialCut, m_timeCutFrameEdge;
67
68
69
70
        double chi2ndofCut;
    };
} // namespace corryvreckan

71
#endif // CORRYVRECKAN_DUT_ANALYSIS_H