mirror of
https://github.com/sesps/SPS_SABRE_EventBuilder.git
synced 2024-11-12 13:28:52 -05:00
27 lines
556 B
C++
27 lines
556 B
C++
#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);
|
|
bool IsValid() { return validFlag; }
|
|
bool IsInside(const ProcessedEvent* eaddress);
|
|
std::vector<TCutG*> GetCuts() { return cut_array; }
|
|
|
|
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 |