ATLAS Offline Software
Loading...
Searching...
No Matches
JetHistoBase.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6#include <algorithm>
7
8#include "TH1F.h"
9#include "TString.h"
11{
12 declareInterface<JetHistoBase>(this);
13
14}
15
17
18 //if(m_histoDir=="") {m_histoDir = "Jets/"; m_histoDir+=m_inputContainer+"/";}
19 return StatusCode::SUCCESS;
20}
21
22
23
25 int count=0;
26 for( const xAOD::Jet* jet : cont ){ count+=fillHistosFromJet( *jet, weight );}
27 return count;
28}
29
30int JetHistoBase::fillHistosFromJet(const xAOD::Jet &, float /*weight*/) { return 0;}
31
33
34// void JetHistoBase::setContainerAndDir(const std::string& cont, const std::string& dir){
35// m_histoDir = dir;
36// m_inputContainer = cont;
37// if(m_histoDir=="") {m_histoDir = "Jets/"; m_histoDir+=m_inputContainer+"/";}
38// }
39
40
HistoGroupBase(const std::string &t)
JetHistoBase(const std::string &t)
virtual int finalizeHistos()
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
virtual int fillHistosFromContainer(const xAOD::JetContainer &cont, float weight)
virtual int fillHistosFromJet(const xAOD::Jet &j, float)
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:146
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".