//////////////////////////////////////////////////////////////////// /// \class RAT:IsCalibrationSource /// /// \brief Check the FECD if the event was tagged as a cal. source /// /// \author Tanner Kaptanoglu /// /// \details This processor loops over the FECD channels and compares /// any hits on the FECD to the lcn of the tagged source, /// which is passed in from a ratdb file. There are several /// source that are tagged using a FECD channel, N16 is the /// most obvious one. /// //////////////////////////////////////////////////////////////////// #ifndef __RAT__IsCalibrationSource__ #define __RAT__IsCalibrationSource__ #include #include #include #include namespace RAT { class IsCalibrationSource : public Processor { public: IsCalibrationSource(); virtual ~IsCalibrationSource(){}; virtual void BeginOfRun(DS::Run&); virtual Processor::Result DSEvent(DS::Run&, DS::Entry& ds); protected: int fLCN; // LCN of the tagged source int fRunType; // Check run type is deployed source bool checkLCN; // Check the LCN on the FECD set in the ratdb file // matches the channel that is hit in the first event // with a hit on the bottom half of the FECD bool wrongLCN; // set true if LCNs don't match }; }//namespace RAT #endif