#ifndef TEmptyBeamSpillControlSample_h #define TEmptyBeamSpillControlSample_h #include "TH1F.h" #include #include // Class to select events based on FGD tracks. Selection criteria is // that there must be one (and only one) iso-recon reconstructed track // in each FGD (using all FGD hits). class IEmptyBeamSpillControlSample : public IControlSampleBase { public: IEmptyBeamSpillControlSample(); ~IEmptyBeamSpillControlSample(){} void SetPOTMax(double d) { fPOTMax = d; } double GetPOTMax() { return fPOTMax; } private: bool IsEventSelectedInternal(COMET::ICOMETEvent& event) ; void InitHistograms(); // maximum number of POT to count as "empty" beam spill Double_t fPOTMax; // histogram for POT/spill TH1F* hpot; }; #endif