/* This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus * * MAUS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * MAUS is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MAUS. If not, see . * */ /** @class TrackerDataPlotterSZ * * Plots the tracker seed spacepoints in s-z for both trackers, including the fits, using ROOT * */ #ifndef _SRC_COMMON_CPP_RECON_SCIFI_TRACKERDATAPLOTTERSZ_ #define _SRC_COMMON_CPP_RECON_SCIFI_TRACKERDATAPLOTTERSZ_ // ROOT headers #include "TCanvas.h" #include "TGraph.h" // MAUS headers #include "src/common_cpp/Plotting/SciFi/TrackerData.hh" #include "src/common_cpp/Plotting/SciFi/TrackerDataPlotterBase.hh" namespace MAUS { class TrackerDataPlotterSZ : public TrackerDataPlotterBase { public: // Macros to allow friendship with the gtests FRIEND_TEST(TrackerDataPlotterSZTest, TestConstructor); FRIEND_TEST(TrackerDataPlotterSZTest, TestBrackets); /** Default constructor, initialise the abstract base class, and set pointers to NULL. */ TrackerDataPlotterSZ(); /** Destructor. Delete graph objects (member canvas is deleted by base class). */ virtual ~TrackerDataPlotterSZ(); /** Overloaded brackets operator, takes in the data, does all the work */ TCanvas* operator() ( TrackerData &t1, TrackerData &t2, TCanvas* aCanvas = NULL); protected: TGraph *_gr_sz1; TGraph *_gr_sz2; }; } // ~namespace MAUS #endif