22 gr.setAutoFill(
false);
37 gr.setAutoFill(
false);
42 for(
size_t i=0;
i<
N;
i++) {sX=
vec[
i];
gr.fill(); }
50 gr.setAutoFill(
false);
63 gr.setAutoFill(
false);
69 for(
size_t i=0;
i<
N;
i++) {sX=
vec[
i];
gr.fill(); }
78 gr.setAutoFill(
false);
84 for(
size_t i=0;
i<
N;
i++) {sY=
vec[
i];
gr.fill(); }
92 gr.setAutoFill(
false);
95 auto vecX = vX->
vector(*j);
96 auto vecY = vY->
vector(*j);
97 size_t Nx= vecX.
size();
98 size_t Ny= vecY.size();
99 size_t N = Nx<Ny ? Nx : Ny;
100 for(
size_t i=0;
i<
N;
i++) {sX=vecX[
i];sY=vecY[
i];
gr.fill(); }
110 gr.setAutoFill(
false);
133 declareInterface<IJetHistoFiller>(
this);
145 if( !
m_varY.isEnabled() ){
150 if ( !
m_varZ.isEnabled()) {
160 return StatusCode::SUCCESS;
165 if(jets.empty())
return StatusCode::SUCCESS;
170 if( vX->
isVector() ) processXVec(grpT, vX, jets) ;
171 else processX(grpT, vX, jets) ;
179 case 0: processXY(grpT, vX,vY, jets) ; break ;
180 case 1: processXVecY(grpT, vX,vY, jets) ; break ;
181 case 2: processXYVec(grpT, vX,vY, jets) ; break ;
182 case 3: processXVecYVec(grpT, vX,vY, jets) ; break ;
188 processXYZ(grpT, vX,vY, vZ, jets) ;
192 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
std::vector< size_t > vec
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ToolHandle< GenericMonitoringTool > & getGroup(const std::string &name) const
Get a specific monitoring tool from the tool handle array.
ToolHandle< IJetHistoVarTool > m_varY
ToolHandle< IJetHistoVarTool > m_varZ
Gaudi::Property< std::string > m_group
JetHistoAttributeFiller(const std::string &type, const std::string &name, const IInterface *parent)
ToolHandle< IJetHistoVarTool > m_varX
virtual StatusCode initialize()
virtual StatusCode processJetContainer(const JetMonitoringAlg &parentAlg, const xAOD::JetContainer &jets, const EventContext &ctx) const
A monitoring algorithm in charge of filling histogram for a JetContainer.
The goal of this class is to define a common way to access any "jet variable".
virtual std::string name() const
virtual VectorValue vector(const xAOD::Jet &) const
return a helper object allowing to iterate over the underlying vector. !!! use only if isVector()==tr...
virtual float value(const xAOD::Jet &) const =0
virtual bool isVector() const
return true if the underlying variable is of type vector<X>
Group of local monitoring quantities and retain correlation when filling histograms
Declare a monitored scalar variable.
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".