diff --git a/Alignment/OfflineValidation/plugins/JetHTAnalyzer.cc b/Alignment/OfflineValidation/plugins/JetHTAnalyzer.cc index fe37b33171202..c24d406f9ffbc 100644 --- a/Alignment/OfflineValidation/plugins/JetHTAnalyzer.cc +++ b/Alignment/OfflineValidation/plugins/JetHTAnalyzer.cc @@ -56,18 +56,12 @@ // // class declaration // - -// If the analyzer does not use TFileService, please remove -// the template argument to the base class so the class inherits -// from edm::one::EDAnalyzer<> -// This will improve performance in multithreaded jobs. - using reco::TrackCollection; class JetHTAnalyzer : public edm::one::EDAnalyzer { public: explicit JetHTAnalyzer(const edm::ParameterSet&); - ~JetHTAnalyzer() override; + ~JetHTAnalyzer() override = default; static void fillDescriptions(edm::ConfigurationDescriptions& descriptions); static bool mysorter(reco::Track i, reco::Track j) { return (i.pt() > j.pt()); } @@ -78,23 +72,23 @@ class JetHTAnalyzer : public edm::one::EDAnalyzer { void endJob() override; // ----------member data --------------------------- + const edm::InputTag pvsTag_; + const edm::EDGetTokenT pvsToken_; - edm::InputTag pvsTag_; - edm::EDGetTokenT pvsToken_; + const edm::InputTag tracksTag_; + const edm::EDGetTokenT tracksToken_; - edm::InputTag tracksTag_; - edm::EDGetTokenT tracksToken_; + const edm::InputTag triggerTag_; + const edm::EDGetTokenT triggerToken_; - edm::InputTag triggerTag_; - edm::EDGetTokenT triggerToken_; + const int printTriggerTable_; + const double minVtxNdf_; + const double minVtxWgt_; - int printTriggerTable_; - double minVtxNdf_; - double minVtxWgt_; - - std::vector profilePtBorders_; - std::vector iovList_; + const std::vector profilePtBorders_; + const std::vector iovList_; + // output histograms edm::Service outfile_; TH1F* h_ntrks; TH1F* h_probePt; @@ -106,6 +100,9 @@ class JetHTAnalyzer : public edm::one::EDAnalyzer { TH1F* h_probeDzErr; SmartSelectionMonitor mon; + + // for the conversions + static constexpr double cmToum = 10000; }; // @@ -127,11 +124,6 @@ JetHTAnalyzer::JetHTAnalyzer(const edm::ParameterSet& iConfig) usesResource(TFileService::kSharedResource); } -// -// Default destructor -// -JetHTAnalyzer::~JetHTAnalyzer() = default; - // // member functions // @@ -140,8 +132,6 @@ JetHTAnalyzer::~JetHTAnalyzer() = default; void JetHTAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) { using namespace edm; - const double cmToum = 10000; - const auto& vertices = iEvent.get(pvsToken_); const reco::VertexCollection& pvtx = vertices; @@ -341,6 +331,11 @@ void JetHTAnalyzer::fillDescriptions(edm::ConfigurationDescriptions& description desc.add("vtxCollection", edm::InputTag("offlinePrimaryVerticesFromRefittedTrks")); desc.add("triggerResults", edm::InputTag("TriggerResults", "", "HLT")); desc.add("trackCollection", edm::InputTag("TrackRefitter")); + desc.add("printTriggerTable", false); + desc.add("minVertexNdf", 10.); + desc.add("minVertexMeanWeight", 0.5); + desc.add>("profilePtBorders", {3, 5, 10, 20, 50, 100}); + desc.add>("iovList", {0, 500000}); descriptions.add("JetHTAnalyzer", desc); }