-
Ole Hansen authoredOle Hansen authored
UserEvtHandler.h 1.04 KiB
#ifndef Podd_UserEvtHandler_h_
#define Podd_UserEvtHandler_h_
/////////////////////////////////////////////////////////////////////
//
// UserEvtHandler
// For more details see the implementation file.
// The idea would be to copy this and modify it for your purposes.
// author Robert Michaels (rom@jlab.org)
//
/////////////////////////////////////////////////////////////////////
#include "THaEvtTypeHandler.h"
#include <string>
#include <vector>
#include <map>
class UserEvtHandler : public THaEvtTypeHandler {
public:
UserEvtHandler(const char* name, const char* description);
virtual ~UserEvtHandler();
virtual Int_t Analyze(THaEvData *evdata);
virtual EStatus Init( const TDatime& run_time);
Float_t GetData(const std::string& tag) const;
private:
std::map<std::string, Float_t> theDataMap;
std::vector<std::string> dataKeys;
Double_t *dvars;
UserEvtHandler(const UserEvtHandler& fh);
UserEvtHandler& operator=(const UserEvtHandler& fh);
ClassDef(UserEvtHandler,0) // Example of an Event handler
};
#endif