|
ATLAS Offline Software
|
Go to the documentation of this file.
44 ATH_MSG_ERROR(
"When using a selection tool, please set BOTH of HistoTitleSuffix (="<<
m_titleSuffix<<
") and HistoNameSuffix (="<<
m_nameSuffix<<
") or set them explicitely to 'none'. This is to avoid histo names clashes.");
45 return StatusCode::FAILURE;
55 return StatusCode::SUCCESS;
63 count+=jtool->buildHistos();
65 const auto & hdata = jtool->bookedHistograms();
66 ATH_MSG_DEBUG(
" Histo tool "<< jtool->name() <<
" count= "<<
count<<
" nh="<<hdata.size());
67 for(
const auto & hd : hdata ){
68 TH1 *
h =
const_cast<TH1*
>(hd.hist);
134 jtool->fillHistosFromContainer(*contPtr,
weight);
147 count+=jtool->finalizeHistos();
162 jtool->setInterval(ityp,
force);
virtual void modifyNameAndTitle(TH1 *h)
ToolHandle< IJetSelector > m_selTool
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
DataVector adapter that acts like it holds const pointers.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
ToolHandleArray< JetHistoBase > m_histoTools
List of histo tools to call on selected jets.
HistosForJetSelection(const std::string &t)
virtual void setInterval(Interval_t ityp, bool force=false)
redefine to forward to sub histos
int m_selType
used only if m_selType == FromTool
SelectionType
Describes the selection type : built-in or use of an external type.
std::string m_titleSuffix
Suffix of the histos titles. If the property is not set and using a built-in type,...
const DV * asDataVector() const
Return a pointer to this object, as a const DataVector.
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
virtual int buildHistos()
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual void prefixHistoDir(const std::string &preDir)
redefine to forward to sub histos
virtual int finalizeHistos()
std::string m_nameSuffix
Suffix of the histos names.
#define CHECK(...)
Evaluate an expression and check for errors.
bool m_inverseToolSelection
std::string m_histoDir
The path where histos in this group leave.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Interval_t
Redefinition of fill intervals as in ManagedMonitorToolBase.
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
virtual int fillHistosFromContainer(const xAOD::JetContainer &cont, float weight)
DataVector adapter that acts like it holds const pointers.
std::vector< HistData > m_vBookedHistograms
The list of histos in this group.
size_type size() const noexcept
Returns the number of elements in the collection.
bool empty() const noexcept
Returns true if the collection is empty.
virtual ~HistosForJetSelection()