#ifndef TTpcTrackSandMuonControlSample_h #define TTpcTrackSandMuonControlSample_h #include "TGraph.h" #include "TH1F.h" #include #include // Class to select events based on TPC tracks. Selection criteria is // 1) At most one track in each TPC. // 2) Tracks in at least two TPCs. class ITpcTrackSandMuonControlSample : public IControlSampleBase { public: ITpcTrackSandMuonControlSample(); ~ITpcTrackSandMuonControlSample(){} private: bool IsEventSelectedInternal(COMET::ICOMETEvent& event) ; void InitHistograms(); Double_t fTotPOT; Double_t fPrevPOT; Int_t fNSelected; TGraph* gEventsPOT; TH1F *hNFgd1Tracks, *hNFgd2Tracks; TH1F *hNTpc1Tracks, *hNTpc2Tracks, *hNTpc3Tracks; TH1F *hNTpc3_12, *hNTpc2_13, *hNTpc1_23; TH1F* hPOTDiff; }; #endif