23 std::map<std::string, std::string> scale2str( {
24 {
"JetEMScaleMomentum" ,
"EMScale" } ,
25 {
"JetConstitScaleMomentum" ,
"ConstitScale" } } );
28 TString prefixn = scaleTag;
29 if(prefixn !=
"") prefixn +=
"_";
33 TH1::AddDirectory(kFALSE);
34 m_tau21 =
bookHisto(
new TH1F(prefixn+
"Tau21" ,
"Jet Tau21 ;Entries", 100, 0, 1) );
35 m_tau32 =
bookHisto(
new TH1F(prefixn+
"Tau32" ,
"Jet Tau32 ;Entries", 100, 0, 1) );
38 m_C1 =
bookHisto(
new TH1F(prefixn+
"C1" ,
"Jet C1;Entries", 100, -1, 1) );
39 m_C2 =
bookHisto(
new TH1F(prefixn+
"C2" ,
"Jet C2;Entries", 100, -1, 1) );
40 m_D2 =
bookHisto(
new TH1F(prefixn+
"D2" ,
"Jet D2;Entries", 100, 0, 10) );
44 TH1::AddDirectory(kTRUE);
51 TString
tags[] = { scaleTag};
52 for(
const auto& t :
tags ) {
if(qualif !=
"(") qualif+=
",";qualif += t; }
56 TString t = hdata.hist->GetTitle(); t+=
" "+qualif;
57 hdata.hist->SetTitle(t );
80 if( Tau1Acc(j) > 1e-8 )
m_tau21->Fill( Tau2Acc(j) / Tau1Acc(j), weight );
81 if( Tau2Acc(j) > 1e-8 )
m_tau32->Fill( Tau3Acc(j) / Tau2Acc(j), weight );
83 if( Tau1_wtaAcc.
isAvailable(j) && Tau2_wtaAcc(j) && Tau3_wtaAcc(j)){
84 if( Tau1_wtaAcc(j) > 1e-8 )
m_tau21_wta->Fill( Tau2_wtaAcc(j) / Tau1_wtaAcc(j), weight );
85 if( Tau2_wtaAcc(j) > 1e-8 )
m_tau32_wta->Fill( Tau3_wtaAcc(j) / Tau2_wtaAcc(j), weight );
88 if( ECF1Acc(j) > 1e-8 )
m_C1->Fill( ECF2Acc(j) /
pow( ECF1Acc(j), 2.0), weight );
89 if( ECF2Acc(j) > 1e-8 ) {
90 m_C2->Fill( ( ECF3Acc(j) * ECF1Acc(j) ) /
pow( ECF2Acc(j), 2.0), weight );
91 m_D2->Fill( ( ECF3Acc(j) *
pow( ECF1Acc(j), 3.0 ) ) /
pow( ECF2Acc(j), 3.0), weight );
constexpr int pow(int base, int exp) noexcept
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
std::vector< HistData > m_vBookedHistograms
The list of histos in this group.
T * bookHisto(T *h, Interval_t ityp=useToolInterval)
register the histo h in this group (if h!=NULL). The histo name is changed if m_prefixedHistoName==tr...
JetHistoBase(const std::string &t)
virtual int fillHistosFromJet(const xAOD::Jet &j, float weight)
JetSubStructureHistos(const std::string &t)
virtual int buildHistos()
Helper class to provide constant type-safe access to aux data.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
std::vector< std::string > tags
Jet_v1 Jet
Definition of the current "jet version".