ATLAS Offline Software
Loading...
Searching...
No Matches
JZCombineWeightNtupler.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef RATESANALYSIS_JZCOMBINEWEIGHTNTUPLER_H
6#define RATESANALYSIS_JZCOMBINEWEIGHTNTUPLER_H 1
7
10#include "TTree.h"
11
12#include <unordered_map>
13
18
20 public:
21 JZCombineWeightNtupler(const std::string& name, ISvcLocator* pSvcLocator);
22 virtual ~JZCombineWeightNtupler();
23
24 virtual StatusCode ratesInitialize() override;
25 virtual StatusCode ratesExecute() override;
26 virtual StatusCode ratesFinalize() override;
27
28 private:
29 StatusCode addEmulatedThresholds();
30 StatusCode setEmulatedThresholds();
31 StatusCode resetValues();
32
33 private:
34 Gaudi::Property<std::string> m_jetCollectionHS {
35 this, "JetCollectionHS", "AntiKt4TruthJets", "Name of the hard-scatter jet collection"};
36 Gaudi::Property<std::string> m_jetCollectionPU {
37 this, "JetCollectionPU", "InTimeAntiKt4TruthJets", "Name of the pile-up jet collection"};
38 Gaudi::Property<uint32_t> m_dsid_JZ0 {
39 this, "JZ0ID", 801165u, "DSID of the JZ0 sample"};
40
44 ToolHandleArray<IEmulatedTrigger> m_triggers {this, "Triggers", {}, ""};
45
46 TTree* m_tree {nullptr};
47 uint64_t m_event_number {0};
48 double m_weight_eb {1.0};
49 double m_mu_actual {0.0};
50 double m_pt_j0_AK4HS {5.0};
51 uint32_t m_index_JZ {0};
52 uint32_t m_n_pileup_records {0};
53 std::vector<double> m_pt_j0_AK4PU;
54 std::vector<uint32_t> m_pileup_event_number;
55
56 std::unordered_map<std::string, double> m_thresholds;
57};
58
59#endif //> !RATESANALYSIS_JZCOMBINEWEIGHTNTUPLER_H
virtual StatusCode ratesInitialize() override
To be implemented by the user.
JZCombineWeightNtupler(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode ratesExecute() override
To be implemented by the user.
ToolHandleArray< IEmulatedTrigger > m_triggers
User can extend the output tree with customised emulated triggers.
Gaudi::Property< std::string > m_jetCollectionPU
std::vector< uint32_t > m_pileup_event_number
virtual StatusCode ratesFinalize() override
To be implemented by the user.
Gaudi::Property< std::string > m_jetCollectionHS
std::unordered_map< std::string, double > m_thresholds
std::vector< double > m_pt_j0_AK4PU
Gaudi::Property< uint32_t > m_dsid_JZ0
RatesAnalysisAlg(const std::string &name, ISvcLocator *pSvcLocator)