ATLAS Offline Software
PseudoTopResult.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 // Local include(s).
7 
8 // System include(s).
9 #include <array>
10 
11 namespace xAOD {
12 
13  //Initialize variables
14  void PseudoTopResult::IniVar(bool isReco) {
15 
17  static constexpr std::size_t N_DECOR = 12;
19  using Dec = Decorator< float >;
20 
22  static const std::array< Dec, N_DECOR > recoDecorators = {
23  Dec( "PseudoTop_Reco_ttbar_eta" ),
24  Dec( "PseudoTop_Reco_ttbar_phi" ),
25  Dec( "PseudoTop_Reco_ttbar_m" ),
26  Dec( "PseudoTop_Reco_ttbar_pt" ),
27  Dec( "PseudoTop_Reco_top_had_pt" ),
28  Dec( "PseudoTop_Reco_top_had_eta" ),
29  Dec( "PseudoTop_Reco_top_had_phi" ),
30  Dec( "PseudoTop_Reco_top_had_m" ),
31  Dec( "PseudoTop_Reco_top_lep_pt" ),
32  Dec( "PseudoTop_Reco_top_lep_eta" ),
33  Dec( "PseudoTop_Reco_top_lep_phi" ),
34  Dec( "PseudoTop_Reco_top_lep_m" )
35  };
37  static const std::array< Dec, N_DECOR > truthDecorators = {
38  Dec( "PseudoTop_Particle_ttbar_eta" ),
39  Dec( "PseudoTop_Particle_ttbar_phi" ),
40  Dec( "PseudoTop_Particle_ttbar_m" ),
41  Dec( "PseudoTop_Particle_ttbar_pt" ),
42  Dec( "PseudoTop_Particle_top_had_pt" ),
43  Dec( "PseudoTop_Particle_top_had_eta" ),
44  Dec( "PseudoTop_Particle_top_had_phi" ),
45  Dec( "PseudoTop_Particle_top_had_m" ),
46  Dec( "PseudoTop_Particle_top_lep_pt" ),
47  Dec( "PseudoTop_Particle_top_lep_eta" ),
48  Dec( "PseudoTop_Particle_top_lep_phi" ),
49  Dec( "PseudoTop_Particle_top_lep_m" )
50  };
52  static constexpr float DEFVAL = -100.0f;
53 
54  // Select which set of decorators to use.
55  const auto& decorators = isReco ? recoDecorators : truthDecorators;
56 
57  // Perform the decorations.
58  for( const auto& d : decorators ) {
59  d( *this ) = DEFVAL;
60  }
61  }
62 
63 } // namespace xAOD
PseudoTopResult.h
hist_file_dump.d
d
Definition: hist_file_dump.py:137
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::PseudoTopResult::IniVar
void IniVar(bool)
Definition: PseudoTopResult.cxx:14
SG::Decorator< float >