ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
CalibrationNtupleMakerTool Class Reference

#include <CalibrationNtupleMakerTool.h>

Inheritance diagram for CalibrationNtupleMakerTool:
Collaboration diagram for CalibrationNtupleMakerTool:

Public Member Functions

 CalibrationNtupleMakerTool (const std::string &name, ISvcLocator *pSvcLocator)
 Standard Athena-Algorithm Constructor. More...
 
virtual ~CalibrationNtupleMakerTool ()
 Default Destructor. More...
 
StatusCode initialize ()
 standard Athena-Algorithm method More...
 
StatusCode execute ()
 standard Athena-Algorithm method More...
 
StatusCode finalize ()
 standard Athena-Algorithm method More...
 
virtual StatusCode bookTree ()
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

template<class T >
const T * getContainer (const std::string &containerName)
 
int Matched (const xAOD::Jet *truth, const xAOD::JetContainer *jets, std::vector< const xAOD::Jet * > &matched, int &index) const
 
float DetectorEta (const xAOD::Jet *jet)
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Static Private Member Functions

static double DRmin (const xAOD::Jet *myjet, const xAOD::JetContainer *jets, double PtMin)
 

Private Attributes

std::vector< std::string > m_collectionNames
 
std::map< std::string, TTree * > m_trees
 
std::string m_treeFolder
 
std::string m_treeDescription
 
std::string m_truthJetContainerName
 
std::string m_vertexContainerName
 
double m_recoIsoDR
 
double m_recoIsoPtCut
 
double m_trueIsoDR
 
double m_trueIsoPtCut
 
double m_matchingCut
 
TH1m_h_events
 
float m_eventWeight = 0.0F
 
float m_mu = 0.0F
 
float m_npv = 0.0F
 
std::vector< int > * m_index
 
std::vector< double > * m_etaCalo
 
std::vector< double > * m_etaDetCalo
 
std::vector< double > * m_phiCalo
 
std::vector< double > * m_eCalo
 
std::vector< double > * m_mCalo
 
std::vector< double > * m_etaCorr
 
std::vector< double > * m_etaDetCorr
 
std::vector< double > * m_phiCorr
 
std::vector< double > * m_eCorr
 
std::vector< double > * m_mCorr
 
std::vector< double > * m_etaTrue
 
std::vector< double > * m_phiTrue
 
std::vector< double > * m_eTrue
 
std::vector< double > * m_mTrue
 
SG::ReadHandleKey< xAOD::EventInfom_evt {this, "EvtInfo", "EventInfo", "EventInfo name"}
 
DataObjIDColl m_extendedExtraObjects
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 18 of file CalibrationNtupleMakerTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ CalibrationNtupleMakerTool()

CalibrationNtupleMakerTool::CalibrationNtupleMakerTool ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Standard Athena-Algorithm Constructor.

Definition at line 33 of file CalibrationNtupleMakerTool.cxx.

33  :
34  AthAlgorithm(name, pSvcLocator),
35  m_treeFolder("/calibration/"),
36  m_treeDescription("Calibration Ntuple"),
37  m_truthJetContainerName("MyAntiKt10TruthJets"),
38  m_vertexContainerName("PrimaryVertices"),
39  m_recoIsoDR(1.5),
40  m_recoIsoPtCut(100.*GeV),
41  m_trueIsoDR(2.5),
42  m_trueIsoPtCut(100.*GeV),
43  m_matchingCut(0.6),
44  m_h_events(nullptr),
45  m_index(nullptr),
46  m_etaCalo(nullptr),
47  m_etaDetCalo(nullptr),
48  m_phiCalo(nullptr),
49  m_eCalo(nullptr),
50  m_mCalo(nullptr),
51  m_etaCorr(nullptr),
52  m_etaDetCorr(nullptr),
53  m_phiCorr(nullptr),
54  m_eCorr(nullptr),
55  m_mCorr(nullptr),
56  m_etaTrue(nullptr),
57  m_phiTrue(nullptr),
58  m_eTrue(nullptr),
59  m_mTrue(nullptr)
60  {
61  declareProperty("FolderName" , m_treeFolder);
62  declareProperty("Description", m_treeDescription);
63 
64  // the jets collections to calibrate
65  declareProperty("JetCollections" , m_collectionNames);
66  declareProperty("TruthJetContainerName", m_truthJetContainerName);
67  declareProperty("VertexContainerName" , m_vertexContainerName);
68 
69  declareProperty("RecoIsolationDR" , m_recoIsoDR);
70  declareProperty("RecoIsolationPtCut" , m_recoIsoPtCut);
71  declareProperty("TruthIsolationDR" , m_trueIsoDR);
72  declareProperty("TruthIsolationPtCut", m_trueIsoPtCut);
73  declareProperty("MatchingCut" , m_matchingCut);
74  }

◆ ~CalibrationNtupleMakerTool()

CalibrationNtupleMakerTool::~CalibrationNtupleMakerTool ( )
virtualdefault

Default Destructor.

Member Function Documentation

◆ bookTree()

StatusCode CalibrationNtupleMakerTool::bookTree ( )
virtual

Definition at line 93 of file CalibrationNtupleMakerTool.cxx.

94 {
95  ATH_MSG_INFO( "bookTree()" );
96 
97 
98  for (auto& name : m_collectionNames) {
99 
100  // creating the tree for thw jet collection
101  TTree * tree = new TTree (name.c_str(), m_treeDescription.c_str());
102 
103  // add the branches
104  tree->Branch("EventWeight" , &m_eventWeight );
105 
106  tree->Branch("eta_calo" , &m_etaCalo );
107  tree->Branch("eta_det_calo" , &m_etaDetCalo );
108  tree->Branch("phi_calo" , &m_phiCalo );
109  tree->Branch("E_calo" , &m_eCalo );
110  tree->Branch("m_calo" , &m_mCalo );
111 
112  tree->Branch("eta_corr1" , &m_etaCorr );
113  tree->Branch("eta_det_corr1" , &m_etaDetCorr );
114  tree->Branch("phi_corr1" , &m_phiCorr );
115  tree->Branch("E_corr1" , &m_eCorr );
116  tree->Branch("m_corr1" , &m_mCorr );
117 
118  tree->Branch("eta_true" , &m_etaTrue );
119  tree->Branch("phi_true" , &m_phiTrue );
120  tree->Branch("E_true" , &m_eTrue );
121  tree->Branch("m_true" , &m_mTrue );
122 
123  tree->Branch("index" , &m_index );
124  tree->Branch("mu" , &m_mu );
125  tree->Branch("NPV" , &m_npv );
126 
127 
128  m_trees.insert(std::pair<std::string, TTree*>(name, tree));
129 
130  }
131 
132  // now register the Tree
133  ITHistSvc* tHistSvc = nullptr;
134  if (service("THistSvc",tHistSvc).isFailure()) {
135  ATH_MSG_ERROR( "initialize() Could not find Hist Service!" );
136  return StatusCode::FAILURE;
137  }
138 
139  if (tHistSvc) {
140  for (const auto& name : m_collectionNames) {
141  if((tHistSvc->regTree(m_treeFolder+name, m_trees.at(name))).isFailure()) {
142  ATH_MSG_ERROR( "initialize() Could not register the validation Tree!" );
143  return StatusCode::FAILURE;
144  }
145  }
146  }
147 
148  // now register the Event histogram
149  m_h_events = new TH1F("h_events","total events", 10, 0, 10);
150 
151  if (tHistSvc and (tHistSvc->regHist(m_treeFolder+m_h_events->GetName(), m_h_events)).isFailure()) {
152  ATH_MSG_ERROR( "Can not register histogram" << m_h_events->GetName() );
153  return StatusCode::FAILURE;
154  }
155 
156  ATH_MSG_INFO("Calibration Tree booked and registered successfully!");
157 
158  return StatusCode::SUCCESS;
159 
160 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ DetectorEta()

float CalibrationNtupleMakerTool::DetectorEta ( const xAOD::Jet jet)
private

Definition at line 302 of file CalibrationNtupleMakerTool.cxx.

302  {
303 
304  xAOD::IParticle::FourMom_t corrP4(0,0,0,0);
305 
306  const auto& partLinks = jet->constituentLinks();
307  for (const xAOD::IParticleLink& link : partLinks) {
308 
309  if (not link.isValid()) {
310  ATH_MSG_WARNING("Got an invalid element link. Returning jet eta...");
311  return jet->eta();
312  }
313 
314  const xAOD::TrackCaloCluster* tcc = dynamic_cast<const xAOD::TrackCaloCluster*>(*link);
315 
316  static const SG::AuxElement::Accessor< float > acc_detEta( "DetectorEta" );
317  float det_eta = tcc->eta();
318 
319  if (acc_detEta.isAvailable(*tcc)) {
320  det_eta = acc_detEta(*tcc);
321  } else
322  ATH_MSG_WARNING("DetectorEta decoration not found for TCCs! Using eta...");
323 
324  double pt = tcc->p4().P()/cosh(det_eta);
325 
327  p4CorrCl.SetPtEtaPhiE(pt, det_eta, tcc->p4().Phi(), tcc->p4().E());
328  if(tcc->p4().E() < 0.) p4CorrCl*=-1.;
329  corrP4 += p4CorrCl;
330  }
331 
332  return corrP4.Eta();
333 }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ DRmin()

double CalibrationNtupleMakerTool::DRmin ( const xAOD::Jet myjet,
const xAOD::JetContainer jets,
double  PtMin 
)
staticprivate

Definition at line 290 of file CalibrationNtupleMakerTool.cxx.

290  {
291 
292  double DRmin=9999;
293  for (const auto& jet : *jets) {
294  if (PtMin>0. and jet->pt()<PtMin) continue;
295  double Dr = myjet->p4().DeltaR(jet->p4());
296  if (Dr>0.0001 and Dr<DRmin)
297  DRmin=Dr;
298  }
299  return DRmin;
300 }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode CalibrationNtupleMakerTool::execute ( )

standard Athena-Algorithm method

Definition at line 162 of file CalibrationNtupleMakerTool.cxx.

163 {
164  m_h_events->Fill(0);
165 
167  if(!evt.isValid()) {
168  ATH_MSG_FATAL( "Unable to retrieve Event Info" );
169  }
170  float ev_weight = evt->mcEventWeight();
171 
172  const auto *const truths = getContainer<xAOD::JetContainer>(m_truthJetContainerName);
173  if (not truths) return StatusCode::FAILURE;
174 
175  const auto *const vertices = getContainer<xAOD::VertexContainer>(m_vertexContainerName);
176  if (not vertices) return StatusCode::FAILURE;
177 
178  // get mu
179  float mu= evt->averageInteractionsPerCrossing();
180 
181  //get NPV
182  float npv = 0.;
183 
184  for (const auto& vertex : *vertices) {
185  if (vertex->nTrackParticles()>=2)
186  npv++;
187  }
188 
189  for (auto& name : m_collectionNames) {
190  const auto *const jets = getContainer<xAOD::JetContainer>(name);
191 
192  m_etaCalo ->clear();
193  m_etaDetCalo ->clear();
194  m_phiCalo ->clear();
195  m_eCalo ->clear();
196  m_mCalo ->clear();
197  m_etaCorr ->clear();
198  m_etaDetCorr ->clear();
199  m_phiCorr ->clear();
200  m_eCorr ->clear();
201  m_mCorr ->clear();
202  m_etaTrue ->clear();
203  m_phiTrue ->clear();
204  m_eTrue ->clear();
205  m_mTrue ->clear();
206  m_index ->clear();
207 
208  for (const auto& truth: *truths) {
209 
210  // here we match to the reco
211  int index = 0;
212  std::vector<const xAOD::Jet*> matched = {};
213 
214  int Nmatches = Matched(truth, jets, matched, index);
215 
216  // skip truth jets that don't match any reco jets
217  if (Nmatches==0) continue;
218 
219  // skip the jets that are not isolated
220  if ( m_recoIsoDR > 0 ) {
221  double DRminReco = DRmin(matched.at(0),jets,m_recoIsoPtCut);
222  if ( DRminReco < m_recoIsoDR ) continue;
223  }
224 
225  if ( m_trueIsoDR > 0 ) {
226  double DRminTruth = DRmin(truth,truths,m_trueIsoPtCut);
227  if ( DRminTruth < m_trueIsoDR ) continue;
228  }
229 
230  //Storing variables
231  m_etaTrue->push_back(truth->eta());
232  m_phiTrue->push_back(truth->phi());
233  m_mTrue->push_back(truth->m()/GeV);
234  m_eTrue->push_back(truth->e()/GeV);
235 
236  m_etaCalo->push_back(jets->at(index)->eta());
237  m_phiCalo->push_back(jets->at(index)->phi());
238  m_mCalo->push_back(jets->at(index)->m()/GeV);
239  m_eCalo->push_back(jets->at(index)->e()/GeV);
240 
241  float detectorEta = DetectorEta(jets->at(index));
242  m_etaDetCalo->push_back(detectorEta);
243 
244  m_etaCorr->push_back(jets->at(index)->eta());
245  m_phiCorr->push_back(jets->at(index)->phi());
246  m_mCorr->push_back(jets->at(index)->m()/GeV);
247  m_eCorr->push_back(jets->at(index)->e()/GeV);
248  m_etaDetCorr->push_back(detectorEta);
249 
250  m_index->push_back(index);
251 
252  }
253 
254  m_eventWeight = ev_weight;
255  m_mu = mu;
256  m_npv = npv;
257 
258  m_trees.at(name)->Fill();
259 
260  }
261 
262  return StatusCode::SUCCESS;
263 
264 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 50 of file AthAlgorithm.cxx.

51 {
52  // If we didn't find any symlinks to add, just return the collection
53  // from the base class. Otherwise, return the extended collection.
54  if (!m_extendedExtraObjects.empty()) {
56  }
57  return Algorithm::extraOutputDeps();
58 }

◆ finalize()

StatusCode CalibrationNtupleMakerTool::finalize ( )

standard Athena-Algorithm method

Definition at line 335 of file CalibrationNtupleMakerTool.cxx.

336 {
337  ATH_MSG_INFO( "finalize()" );
338 
339  delete m_index;
340 
341  delete m_etaCalo;
342  delete m_etaDetCalo;
343  delete m_phiCalo;
344  delete m_eCalo;
345  delete m_mCalo;
346 
347  delete m_etaCorr;
348  delete m_etaDetCorr;
349  delete m_phiCorr;
350  delete m_eCorr;
351  delete m_mCorr;
352 
353  delete m_etaTrue;
354  delete m_phiTrue;
355  delete m_eTrue;
356  delete m_mTrue;
357 
358  return StatusCode::SUCCESS;
359 
360 }

◆ getContainer()

template<class T >
const T * CalibrationNtupleMakerTool::getContainer ( const std::string &  containerName)
inlineprivate

Definition at line 98 of file CalibrationNtupleMakerTool.h.

98  {
99  const T * ptr = evtStore()->retrieve< const T >( containerName );
100  if (!ptr) {
101  ATH_MSG_WARNING("Container '"<<containerName<<"' could not be retrieved");
102  }
103  return ptr;
104 }

◆ initialize()

StatusCode CalibrationNtupleMakerTool::initialize ( )

standard Athena-Algorithm method

Definition at line 79 of file CalibrationNtupleMakerTool.cxx.

80 {
81  ATH_MSG_INFO( "initialize()" );
82 
83  if (bookTree().isFailure()){
84  ATH_MSG_FATAL( "Could not book the TTree object" );
85  return StatusCode::FAILURE;
86  }
87 
89 
90  return StatusCode::SUCCESS;
91 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ Matched()

int CalibrationNtupleMakerTool::Matched ( const xAOD::Jet truth,
const xAOD::JetContainer jets,
std::vector< const xAOD::Jet * > &  matched,
int &  index 
) const
private

Definition at line 266 of file CalibrationNtupleMakerTool.cxx.

266  {
267 
268  int Nmatches = 0;
269  double drmin = 999.;
270  int Min_index=-1;
271 
272  for (unsigned int ind = 0; ind < jets->size(); ind++) {
273  double dr = truth->p4().DeltaR(jets->at(ind)->p4());
274  if (dr < m_matchingCut) ++Nmatches;
275  //find minimum:
276  if (dr < drmin) {
277  drmin = dr;
278  Min_index = ind;
279  }
280  }
281 
282  if (drmin<m_matchingCut) {
283  matched.push_back(jets->at(Min_index));
284  index = Min_index;
285  }
286 
287  return Nmatches;
288 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< Algorithm >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Algorithm >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< Algorithm > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

StatusCode AthAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, PyAthena::Alg, and AthHistogramAlgorithm.

Definition at line 66 of file AthAlgorithm.cxx.

66  {
68 
69  if (sc.isFailure()) {
70  return sc;
71  }
72  ServiceHandle<ICondSvc> cs("CondSvc",name());
73  for (auto h : outputHandles()) {
74  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
75  // do this inside the loop so we don't create the CondSvc until needed
76  if ( cs.retrieve().isFailure() ) {
77  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
78  return StatusCode::SUCCESS;
79  }
80  if (cs->regHandle(this,*h).isFailure()) {
81  sc = StatusCode::FAILURE;
82  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
83  << " with CondSvc");
84  }
85  }
86  }
87  return sc;
88 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_collectionNames

std::vector< std::string > CalibrationNtupleMakerTool::m_collectionNames
private

Definition at line 52 of file CalibrationNtupleMakerTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_eCalo

std::vector< double >* CalibrationNtupleMakerTool::m_eCalo
private

Definition at line 78 of file CalibrationNtupleMakerTool.h.

◆ m_eCorr

std::vector< double >* CalibrationNtupleMakerTool::m_eCorr
private

Definition at line 84 of file CalibrationNtupleMakerTool.h.

◆ m_etaCalo

std::vector< double >* CalibrationNtupleMakerTool::m_etaCalo
private

Definition at line 75 of file CalibrationNtupleMakerTool.h.

◆ m_etaCorr

std::vector< double >* CalibrationNtupleMakerTool::m_etaCorr
private

Definition at line 81 of file CalibrationNtupleMakerTool.h.

◆ m_etaDetCalo

std::vector< double >* CalibrationNtupleMakerTool::m_etaDetCalo
private

Definition at line 76 of file CalibrationNtupleMakerTool.h.

◆ m_etaDetCorr

std::vector< double >* CalibrationNtupleMakerTool::m_etaDetCorr
private

Definition at line 82 of file CalibrationNtupleMakerTool.h.

◆ m_etaTrue

std::vector< double >* CalibrationNtupleMakerTool::m_etaTrue
private

Definition at line 87 of file CalibrationNtupleMakerTool.h.

◆ m_eTrue

std::vector< double >* CalibrationNtupleMakerTool::m_eTrue
private

Definition at line 89 of file CalibrationNtupleMakerTool.h.

◆ m_eventWeight

float CalibrationNtupleMakerTool::m_eventWeight = 0.0F
private

Definition at line 69 of file CalibrationNtupleMakerTool.h.

◆ m_evt

SG::ReadHandleKey<xAOD::EventInfo> CalibrationNtupleMakerTool::m_evt {this, "EvtInfo", "EventInfo", "EventInfo name"}
private

Definition at line 93 of file CalibrationNtupleMakerTool.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_h_events

TH1* CalibrationNtupleMakerTool::m_h_events
private

Definition at line 67 of file CalibrationNtupleMakerTool.h.

◆ m_index

std::vector< int >* CalibrationNtupleMakerTool::m_index
private

Definition at line 73 of file CalibrationNtupleMakerTool.h.

◆ m_matchingCut

double CalibrationNtupleMakerTool::m_matchingCut
private

Definition at line 65 of file CalibrationNtupleMakerTool.h.

◆ m_mCalo

std::vector< double >* CalibrationNtupleMakerTool::m_mCalo
private

Definition at line 79 of file CalibrationNtupleMakerTool.h.

◆ m_mCorr

std::vector< double >* CalibrationNtupleMakerTool::m_mCorr
private

Definition at line 85 of file CalibrationNtupleMakerTool.h.

◆ m_mTrue

std::vector< double >* CalibrationNtupleMakerTool::m_mTrue
private

Definition at line 90 of file CalibrationNtupleMakerTool.h.

◆ m_mu

float CalibrationNtupleMakerTool::m_mu = 0.0F
private

Definition at line 70 of file CalibrationNtupleMakerTool.h.

◆ m_npv

float CalibrationNtupleMakerTool::m_npv = 0.0F
private

Definition at line 71 of file CalibrationNtupleMakerTool.h.

◆ m_phiCalo

std::vector< double >* CalibrationNtupleMakerTool::m_phiCalo
private

Definition at line 77 of file CalibrationNtupleMakerTool.h.

◆ m_phiCorr

std::vector< double >* CalibrationNtupleMakerTool::m_phiCorr
private

Definition at line 83 of file CalibrationNtupleMakerTool.h.

◆ m_phiTrue

std::vector< double >* CalibrationNtupleMakerTool::m_phiTrue
private

Definition at line 88 of file CalibrationNtupleMakerTool.h.

◆ m_recoIsoDR

double CalibrationNtupleMakerTool::m_recoIsoDR
private

Definition at line 60 of file CalibrationNtupleMakerTool.h.

◆ m_recoIsoPtCut

double CalibrationNtupleMakerTool::m_recoIsoPtCut
private

Definition at line 61 of file CalibrationNtupleMakerTool.h.

◆ m_treeDescription

std::string CalibrationNtupleMakerTool::m_treeDescription
private

Definition at line 55 of file CalibrationNtupleMakerTool.h.

◆ m_treeFolder

std::string CalibrationNtupleMakerTool::m_treeFolder
private

Definition at line 54 of file CalibrationNtupleMakerTool.h.

◆ m_trees

std::map< std::string, TTree* > CalibrationNtupleMakerTool::m_trees
private

Definition at line 53 of file CalibrationNtupleMakerTool.h.

◆ m_trueIsoDR

double CalibrationNtupleMakerTool::m_trueIsoDR
private

Definition at line 62 of file CalibrationNtupleMakerTool.h.

◆ m_trueIsoPtCut

double CalibrationNtupleMakerTool::m_trueIsoPtCut
private

Definition at line 63 of file CalibrationNtupleMakerTool.h.

◆ m_truthJetContainerName

std::string CalibrationNtupleMakerTool::m_truthJetContainerName
private

Definition at line 57 of file CalibrationNtupleMakerTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vertexContainerName

std::string CalibrationNtupleMakerTool::m_vertexContainerName
private

Definition at line 58 of file CalibrationNtupleMakerTool.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
CalibrationNtupleMakerTool::m_trueIsoDR
double m_trueIsoDR
Definition: CalibrationNtupleMakerTool.h:62
CalibrationNtupleMakerTool::m_etaDetCalo
std::vector< double > * m_etaDetCalo
Definition: CalibrationNtupleMakerTool.h:76
CalibrationNtupleMakerTool::m_collectionNames
std::vector< std::string > m_collectionNames
Definition: CalibrationNtupleMakerTool.h:52
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:66
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
index
Definition: index.py:1
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
CalibrationNtupleMakerTool::m_etaCorr
std::vector< double > * m_etaCorr
Definition: CalibrationNtupleMakerTool.h:81
CalibrationNtupleMakerTool::m_recoIsoPtCut
double m_recoIsoPtCut
Definition: CalibrationNtupleMakerTool.h:61
xAOD::TrackCaloCluster_v1
Class describing a TrackCaloCluster.
Definition: TrackCaloCluster_v1.h:25
CalibrationNtupleMakerTool::m_etaCalo
std::vector< double > * m_etaCalo
Definition: CalibrationNtupleMakerTool.h:75
tree
TChain * tree
Definition: tile_monitor.h:30
CalibrationNtupleMakerTool::DRmin
static double DRmin(const xAOD::Jet *myjet, const xAOD::JetContainer *jets, double PtMin)
Definition: CalibrationNtupleMakerTool.cxx:290
test_pyathena.pt
pt
Definition: test_pyathena.py:11
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
CalibrationNtupleMakerTool::m_evt
SG::ReadHandleKey< xAOD::EventInfo > m_evt
Definition: CalibrationNtupleMakerTool.h:93
CalibrationNtupleMakerTool::m_eTrue
std::vector< double > * m_eTrue
Definition: CalibrationNtupleMakerTool.h:89
xAOD::TrackCaloCluster_v1::p4
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition: TrackCaloCluster_v1.cxx:36
LArG4FSStartPointFilter.evt
evt
Definition: LArG4FSStartPointFilter.py:42
python.TurnDataReader.dr
dr
Definition: TurnDataReader.py:112
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
RunExEngineTest.PtMin
PtMin
Definition: RunExEngineTest.py:49
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
xAOD::IParticle::FourMom_t
TLorentzVector FourMom_t
Definition of the 4-momentum type.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:68
CalibrationNtupleMakerTool::m_vertexContainerName
std::string m_vertexContainerName
Definition: CalibrationNtupleMakerTool.h:58
xAOD::TrackCaloCluster_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
CalibrationNtupleMakerTool::m_index
std::vector< int > * m_index
Definition: CalibrationNtupleMakerTool.h:73
CalibrationNtupleMakerTool::m_trueIsoPtCut
double m_trueIsoPtCut
Definition: CalibrationNtupleMakerTool.h:63
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthAlgorithm.cxx:66
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
CalibrationNtupleMakerTool::m_treeFolder
std::string m_treeFolder
Definition: CalibrationNtupleMakerTool.h:54
CalibrationNtupleMakerTool::m_phiTrue
std::vector< double > * m_phiTrue
Definition: CalibrationNtupleMakerTool.h:88
CalibrationNtupleMakerTool::m_eventWeight
float m_eventWeight
Definition: CalibrationNtupleMakerTool.h:69
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CalibrationNtupleMakerTool::m_npv
float m_npv
Definition: CalibrationNtupleMakerTool.h:71
CalibrationNtupleMakerTool::m_recoIsoDR
double m_recoIsoDR
Definition: CalibrationNtupleMakerTool.h:60
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
CalibrationNtupleMakerTool::m_mCorr
std::vector< double > * m_mCorr
Definition: CalibrationNtupleMakerTool.h:85
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
TH1::Fill
int Fill(double)
Definition: rootspy.cxx:285
CalibrationNtupleMakerTool::m_treeDescription
std::string m_treeDescription
Definition: CalibrationNtupleMakerTool.h:55
CalibrationNtupleMakerTool::DetectorEta
float DetectorEta(const xAOD::Jet *jet)
Definition: CalibrationNtupleMakerTool.cxx:302
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
Dr
double Dr
Definition: LArDetectorConstructionTBEC.cxx:55
CalibrationNtupleMakerTool::m_eCorr
std::vector< double > * m_eCorr
Definition: CalibrationNtupleMakerTool.h:84
CalibrationNtupleMakerTool::m_phiCalo
std::vector< double > * m_phiCalo
Definition: CalibrationNtupleMakerTool.h:77
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CalibrationNtupleMakerTool::m_trees
std::map< std::string, TTree * > m_trees
Definition: CalibrationNtupleMakerTool.h:53
CalibrationNtupleMakerTool::bookTree
virtual StatusCode bookTree()
Definition: CalibrationNtupleMakerTool.cxx:93
python.ElectronD3PDObject.matched
matched
Definition: ElectronD3PDObject.py:138
CalibrationNtupleMakerTool::m_h_events
TH1 * m_h_events
Definition: CalibrationNtupleMakerTool.h:67
CalibrationNtupleMakerTool::Matched
int Matched(const xAOD::Jet *truth, const xAOD::JetContainer *jets, std::vector< const xAOD::Jet * > &matched, int &index) const
Definition: CalibrationNtupleMakerTool.cxx:266
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
xAOD::Jet_v1::p4
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition: Jet_v1.cxx:71
a
TList * a
Definition: liststreamerinfos.cxx:10
h
CalibrationNtupleMakerTool::m_eCalo
std::vector< double > * m_eCalo
Definition: CalibrationNtupleMakerTool.h:78
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
CalibrationNtupleMakerTool::m_mCalo
std::vector< double > * m_mCalo
Definition: CalibrationNtupleMakerTool.h:79
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
CalibrationNtupleMakerTool::m_truthJetContainerName
std::string m_truthJetContainerName
Definition: CalibrationNtupleMakerTool.h:57
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
CalibrationNtupleMakerTool::m_phiCorr
std::vector< double > * m_phiCorr
Definition: CalibrationNtupleMakerTool.h:83
CalibrationNtupleMakerTool::m_mTrue
std::vector< double > * m_mTrue
Definition: CalibrationNtupleMakerTool.h:90
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
CalibrationNtupleMakerTool::m_etaDetCorr
std::vector< double > * m_etaDetCorr
Definition: CalibrationNtupleMakerTool.h:82
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
CalibrationNtupleMakerTool::m_matchingCut
double m_matchingCut
Definition: CalibrationNtupleMakerTool.h:65
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
GeV
#define GeV
Definition: CaloTransverseBalanceVecMon.cxx:30
CalibrationNtupleMakerTool::m_etaTrue
std::vector< double > * m_etaTrue
Definition: CalibrationNtupleMakerTool.h:87
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
checkFileSG.ind
list ind
Definition: checkFileSG.py:118
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
CalibrationNtupleMakerTool::m_mu
float m_mu
Definition: CalibrationNtupleMakerTool.h:70
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >