Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:41

0001 #ifndef Validation_HLTrigger_HLTGenValPathSpecificSettingParser_h
0002 #define Validation_HLTrigger_HLTGenValPathSpecificSettingParser_h
0003 
0004 //********************************************************************************
0005 //
0006 // Description:
0007 //   This class handles parsing of additional settings that can be set for each path in the generator-level validation module
0008 //   Mainly, these are cuts in addition to the ones specified in the module. Passing a pre-defined region is also possible
0009 //   The binning of a certain variable can be changed through this class, as well as setting a tag for all histograms of a path.
0010 //
0011 // Author : Finn Labe, UHH, Jul. 2022
0012 //
0013 //********************************************************************************
0014 
0015 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0016 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0017 
0018 #include "DQMServices/Core/interface/DQMStore.h"
0019 
0020 #include <vector>
0021 
0022 class HLTGenValPathSpecificSettingParser {
0023 public:
0024   // constructor
0025   HLTGenValPathSpecificSettingParser(std::string pathSpecificSettings,
0026                                      std::vector<edm::ParameterSet> binnings,
0027                                      std::string vsVar);
0028 
0029   const std::vector<edm::ParameterSet>* getPathSpecificCuts() const { return &pathSpecificCutsVector_; }
0030   const std::vector<double>* getPathSpecificBins() const { return &pathSpecificBins_; }
0031   const bool havePathSpecificBins() const { return (!pathSpecificBins_.empty()); }
0032   const std::string* getTag() const { return &tag_; }
0033 
0034 private:
0035   std::vector<edm::ParameterSet> pathSpecificCutsVector_;
0036   std::vector<double> pathSpecificBins_;
0037   std::string tag_ = "";
0038 };
0039 
0040 #endif