AnalysisDUT.h 2.92 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
/**
 * @file
 * @brief Definition of module AnalysisDUT
 *
 * @copyright Copyright (c) 2017-2020 CERN and the Corryvreckan authors.
 * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
 * In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an
 * Intergovernmental Organization or submit itself to any jurisdiction.
 */

11
12
#ifndef CORRYVRECKAN_DUT_ANALYSIS_H
#define CORRYVRECKAN_DUT_ANALYSIS_H
13

14
15
16
17
#include <TCanvas.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TProfile2D.h>
18
19
20
21
22
23
#include <iostream>
#include "core/module/Module.hpp"

namespace corryvreckan {
    /** @ingroup Modules
     */
24
    class AnalysisDUT : public Module {
25
26
27

    public:
        // Constructors and destructors
28
        AnalysisDUT(Configuration& config, std::shared_ptr<Detector> detector);
29
        ~AnalysisDUT() {}
30
31

        // Functions
32
        void initialize() override;
33
        StatusCode run(const std::shared_ptr<Clipboard>& clipboard) override;
34
        void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
35
36

    private:
37
38
        std::shared_ptr<Detector> m_detector;

39
        // Histograms
40
        TH2F *hClusterMapAssoc, *hHitMapAssoc;
41
        TProfile2D *hClusterSizeMapAssoc, *hClusterChargeMapAssoc;
42

43
44
        TH1F* hPixelRawValueAssoc;
        TProfile2D* hPixelRawValueMapAssoc;
45
46

        TH1F* associatedTracksVersusTime;
47
48
        TH1F *residualsX, *residualsY, *residualsPos;
        TH2F* residualsPosVsresidualsTime;
49
50
51

        TH1F *residualsX1pix, *residualsY1pix;
        TH1F *residualsX2pix, *residualsY2pix;
52
53
54
        TH1F *residualsX3pix, *residualsY3pix;
        TH1F *residualsX4pix, *residualsY4pix;
        TH1F *residualsXatLeast5pix, *residualsYatLeast5pix;
55

56
        TH1F* clusterChargeAssoc;
57
        TH1F* clusterSizeAssoc;
58
        TH1F* clusterSizeAssocNorm;
59
60
        TH1F* clusterWidthRowAssoc;
        TH1F* clusterWidthColAssoc;
61

62
63
        TH1F* hCutHisto;

64
65
66
67
68
        TProfile2D *rmsxvsxmym, *rmsyvsxmym, *rmsxyvsxmym;
        TProfile2D *qvsxmym, *qMoyalvsxmym, *pxqvsxmym;
        TProfile2D* npxvsxmym;
        TH2F *npx1vsxmym, *npx2vsxmym, *npx3vsxmym, *npx4vsxmym;

69
70
        TH1F* hTrackCorrelationX;
        TH1F* hTrackCorrelationY;
71
72
        TH1F* hTrackCorrelationPos;
        TH2F* hTrackCorrelationPosVsCorrelationTime;
73
        TH1F* hTrackCorrelationTime;
74
        TH1F* hTrackZPosDUT;
75
        TH1F* residualsTime;
76
        TH2F* residualsTimeVsTot;
77
78
79
        TH2F* residualsTimeVsTime;
        TH2F* residualsTimeVsSignal;
        TH2F* hAssociatedTracksGlobalPosition;
80
        TH2F* hAssociatedTracksLocalPosition;
Lennart Huth's avatar
Lennart Huth committed
81
        TH2F* hUnassociatedTracksGlobalPosition;
82
        // Member variables
83
        double m_timeCutFrameEdge;
84
        double chi2ndofCut;
85
        bool useClosestCluster;
86
87
        double nTimeBins;
        double timeBinning;
Katharina Dort's avatar
Katharina Dort committed
88
        int num_tracks;
89
90
91
    };
} // namespace corryvreckan

92
#endif // CORRYVRECKAN_DUT_ANALYSIS_H