#ifndef TP0DTrackSandMuonControlSample_h #define TP0DTrackSandMuonControlSample_h #include "TGraph.h" #include "TH1F.h" #include // Class to select sand muon events based on P0D tracks. Selection criteria are // 1. There is exactly one vertex in the P0D // 2. The vertex contains exactly one track (actually a PID object, this is irrelevant). // 3. The front end of the track is at the start of the P0D and // the Z projection of the track is longer than fZCut // class IP0DTrackSandMuonControlSample : public IControlSampleBase { public: IP0DTrackSandMuonControlSample(); ~IP0DTrackSandMuonControlSample(){} private: bool IsEventSelectedInternal(COMET::ICOMETEvent& event) ; void InitHistograms(); // Z cut: accept only tracks with Z projection larger than this value Double_t fZCut; Double_t fTotPOT; Double_t fPrevPOT; Int_t fNSelected; TGraph* gEventsPOT; TH1F *hNVtx, *hNTrk,*hTrkFront, *hTrkBack; TH1F *hNSelectedCycles; TH1F *hNTpc1Tracks, *hNTpc2Tracks, *hNTpc3Tracks; TH1F *hPOTDiff; }; #endif