Skip to content

Commit

Permalink
AnaQ
Browse files Browse the repository at this point in the history
  • Loading branch information
taehyounpark committed Apr 14, 2024
1 parent 5ef3451 commit ea319a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/examples/hww.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ int main() {
std::vector<std::string> tree_files{"hww.root"};
std::string tree_name = "mini";
dataflow df(multithread::disable());
auto ds = df.load(dataset::input<HepQ::Tree>(tree_files, tree_name));
auto ds = df.load(dataset::input<AnaQ::Tree>(tree_files, tree_name));

// weights
auto mc_weight = ds.read(dataset::column<float>("mcWeight"));
Expand Down Expand Up @@ -210,7 +210,7 @@ int main() {

// make histograms
auto [pTH_2los_presel, pTH_df_presel, pTH_ee_presel, pTH_mm_presel] =
df.get(query::output<HepQ::Hist<1, float>>("pTH", 30, 0, 150))
df.get(query::output<AnaQ::Hist<1, float>>("pTH", 30, 0, 150))
.fill(higgs_pT)
.at(cut_2los, cut_df_presel, cut_ee_presel, cut_mm_presel);

Expand Down
4 changes: 2 additions & 2 deletions docs/examples/iris.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void task(int n) {

std::vector<std::string> tree_files{"Run2012B_SingleMu.root"};
std::string tree_name = "Events";
auto ds = df.load(dataset::input<HepQ::Tree>(tree_files, tree_name));
auto ds = df.load(dataset::input<AnaQ::Tree>(tree_files, tree_name));

auto n_jet = ds.read(dataset::column<unsigned int>("nJet"));
auto jets_pt = ds.read(dataset::column<VecF>("Jet_pt"));
Expand Down Expand Up @@ -109,7 +109,7 @@ void task(int n) {
[](VecI const &goodjet) { return Sum(goodjet); }))(goodjet_mask);

auto h_sumpt_goodjet =
df.get(query::output<HepQ::Hist<1, float>>("goodjet_sumpt", 185, 15, 200))
df.get(query::output<AnaQ::Hist<1, float>>("goodjet_sumpt", 185, 15, 200))
.fill(goodjet_sumpt)
.at(cut_goodjet);

Expand Down
4 changes: 2 additions & 2 deletions docs/examples/xaod.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ float DiElectronsMass(ConstDataVector<xAOD::ElectronContainer> const &els) {
int main() {
dataflow df(multithread::enable());

auto ds = df.load(dataset::input<HepQ::Event>(daodFiles, treeName));
auto ds = df.load(dataset::input<AnaQ::Event>(daodFiles, treeName));
auto eventInfo = ds.read(dataset::column<xAOD::EventInfo>("EventInfo"));
auto allElectrons =
ds.read(dataset::column<xAOD::ElectronContainer>("Electrons"));
Expand All @@ -124,7 +124,7 @@ int main() {
.filter(column::expression(TwoElectrons))(selectedElectrons);

auto selectedElectronsPtHist =
df.get(query::plan<HepQ::Hist<1, float>>("diElectronMass", 100, 0, 500))
df.get(query::plan<AnaQ::Hist<1, float>>("diElectronMass", 100, 0, 500))
.fill(diElectronsMassGeV)
.at(atLeastTwoSelectedElectrons);

Expand Down

0 comments on commit ea319a2

Please sign in to comment.