/search.css" rel="stylesheet" type="text/css"/> /search.js">
00001 #ifndef ADCOINCFILTER_H 00002 #define ADCOINCFILTER_H 00003 00004 #include "GaudiAlg/GaudiAlgorithm.h" 00005 #include "Event/IHeader.h" 00006 #include "Conventions/DetectorId.h" 00007 #include "Context/TimeStamp.h" 00008 #include <vector> 00009 #include <string> 00010 #include <map> 00011 00012 class IJobInfoSvc; 00013 class IDataProviderSvc; 00014 00015 class ADCoincFilter: public GaudiAlgorithm 00016 { 00017 public: 00019 ADCoincFilter(const std::string& name, ISvcLocator* svcloc); 00020 virtual ~ADCoincFilter(); 00021 00023 StatusCode initialize(); 00024 StatusCode execute(); 00025 StatusCode finalize(); 00026 00027 private: 00028 IJobInfoSvc *m_jobInfoSvc; 00029 IDataProviderSvc* m_archiveSvc; 00030 std::map<DetectorId::DetectorId_t, std::vector<const DayaBay::IHeader*> > m_inputHeaders; 00031 std::map<DetectorId::DetectorId_t, TimeStamp> m_lastTimeStamp; 00032 int m_nTagged; 00033 int m_nSeen; 00034 int m_nKept; 00035 int m_nKeptMuon; 00036 bool m_unPhysicalRun; 00037 00038 // properties 00039 std::string m_tagADLoc; 00040 std::string m_tagMuonLoc; 00041 std::string m_recHeaderLoc; 00042 double m_timeWindow; 00043 double m_muonVetoWindow; 00044 double m_muonKeptWindow; 00045 double m_maxCoincFraction; 00046 }; 00047 00048 #endif