2021-07-13 16:36:41 -04:00
|
|
|
#ifndef CUTHANDLER_H
|
|
|
|
#define CUTHANDLER_H
|
|
|
|
|
|
|
|
#include "DataStructs.h"
|
|
|
|
|
|
|
|
class CutHandler {
|
|
|
|
public:
|
|
|
|
CutHandler();
|
|
|
|
CutHandler(const std::string& filename);
|
|
|
|
~CutHandler();
|
|
|
|
void SetCuts(const std::string& filename);
|
2021-12-13 12:28:56 -05:00
|
|
|
bool IsValid() { return validFlag; }
|
2021-12-13 17:04:44 -05:00
|
|
|
bool IsInside(const ProcessedEvent* eaddress);
|
2021-12-13 12:28:56 -05:00
|
|
|
std::vector<TCutG*> GetCuts() { return cut_array; }
|
2021-07-13 16:36:41 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
void InitVariableMap();
|
|
|
|
|
|
|
|
std::vector<TCutG*> cut_array;
|
|
|
|
std::vector<TFile*> file_array;
|
|
|
|
std::unordered_map<std::string, double*> varmap;
|
|
|
|
bool validFlag;
|
|
|
|
ProcessedEvent m_event;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|