HLTHiggsValidator

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
#ifndef HLTriggerOffline_Higgs_HLTHiggsValidator_H
#define HLTriggerOffline_Higgs_HLTHiggsValidator_H

/** \class HLTHiggsValidator
*  Generate histograms for trigger efficiencies Higgs related
*  Documentation available on the CMS TWiki:
*  https://twiki.cern.ch/twiki/bin/view/CMS/HiggsWGHLTValidate
*
*  \author  J. Duarte Campderros (based and adapted on J. Klukas,
*           M. Vander Donckt and J. Alcaraz code from the 
*           HLTriggerOffline/Muon package)
*/

//#include "FWCore/PluginManager/interface/ModuleDef.h"
//#include "FWCore/Framework/interface/MakerMacros.h"

#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"

#include "DQMServices/Core/interface/DQMStore.h"

#include "HLTHiggsSubAnalysis.h"

#include <vector>
#include <cstring>

struct EVTColContainer;

class HLTHiggsValidator : public DQMEDAnalyzer {
public:
  //! Constructor
  HLTHiggsValidator(const edm::ParameterSet &);
  ~HLTHiggsValidator() override;

private:
  // concrete analyzer methods
  void bookHistograms(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override;
  void dqmBeginRun(const edm::Run &iRun, const edm::EventSetup &iSetup) override;
  void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override;

  //! Input from configuration file
  edm::ParameterSet _pset;
  //! the names of the subanalysis
  std::vector<std::string> _analysisnames;

  //! The instances of the class which do the real work
  std::vector<HLTHiggsSubAnalysis> _analyzers;

  //! The container with all the collections needed
  EVTColContainer *_collections;
};
#endif