AnalysisDUT.h 2.64 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
29
        AnalysisDUT(Configuration config, std::shared_ptr<Detector> detector);
        ~AnalysisDUT() {}
30
31
32

        // Functions
        void initialise();
33
        StatusCode run(std::shared_ptr<Clipboard> clipboard);
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, *hHitMapROI;
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
52

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

53
        TH1F* clusterChargeAssoc;
54
        TH1F* clusterSizeAssoc;
55
        TH1F* clusterSizeAssocNorm;
56
57
        TH1F* clusterWidthRowAssoc;
        TH1F* clusterWidthColAssoc;
58

59
60
        TH1F* hCutHisto;

61
62
63
64
65
        TProfile2D *rmsxvsxmym, *rmsyvsxmym, *rmsxyvsxmym;
        TProfile2D *qvsxmym, *qMoyalvsxmym, *pxqvsxmym;
        TProfile2D* npxvsxmym;
        TH2F *npx1vsxmym, *npx2vsxmym, *npx3vsxmym, *npx4vsxmym;

66
67
        TH1F* hTrackCorrelationX;
        TH1F* hTrackCorrelationY;
68
69
        TH1F* hTrackCorrelationPos;
        TH2F* hTrackCorrelationPosVsCorrelationTime;
70
71
72
73
74
75
        TH1F* hTrackCorrelationTime;
        TH1F* residualsTime;
        TH2F* residualsTimeVsTime;
        TH2F* residualsTimeVsSignal;

        TH2F* hAssociatedTracksGlobalPosition;
76
        TH2F* hAssociatedTracksLocalPosition;
Lennart Huth's avatar
Lennart Huth committed
77
        TH2F* hUnassociatedTracksGlobalPosition;
78
        // Member variables
79
        double m_timeCutFrameEdge;
80
        double chi2ndofCut;
81
        bool useClosestCluster;
Katharina Dort's avatar
Katharina Dort committed
82
        int num_tracks;
83
84
85
    };
} // namespace corryvreckan

86
#endif // CORRYVRECKAN_DUT_ANALYSIS_H