ATLAS Offline Software
TriggerCountToMetadata.cxx
Go to the documentation of this file.
1 /*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 //============================================================================
5 //
6 // Author : Matteo Bedognetti <matteo.bedognetti@cern.ch.>
7 // Changes:
8 //
9 // Store trigger counts for specific chains in the DAOD's MetaData.
10 // This allows it to store information about triggers upon which events are NOT selected during the derivation
11 //
12 // Job options:
13 // - TriggerList -- a vector containing all triggers to store as strings
14 // - FolderName -- Is supposed to be the derivation name (some convention I guess)
15 // - TrigDecisionTool -- if one wants to pass this a specific TrigDecisionTool
16 //
17 //============================================================================
18 //
19 
22 
23 #include <memory>
24 
25 namespace DerivationFramework {
26 
27  //--------------------------------------------------------------------------
29  const std::string& n,
30  const IInterface* p)
31  : CfAthAlgTool(t,n,p), m_trigDecisionTool( "Trig::TrigDecisionTool/TrigDecisionTool" )
32  {
33  declareInterface<DerivationFramework::IAugmentationTool>(this);
34 
35  declareProperty("TrigDecisionTool", m_trigDecisionTool );
36  declareProperty("FolderName", m_folderName = "DerivationLevel");
37  declareProperty("TriggerList", m_triggerList);
38 
39  }
40  //--------------------------------------------------------------------------
42  ATH_CHECK(m_trigDecisionTool.retrieve());
43 
44  return StatusCode::SUCCESS;
45  }
46 
47  //--------------------------------------------------------------------------
49 
50  ATH_MSG_DEBUG("Inside TriggerCountToMetadata::addBranches()");
51 
52  // W.w. method
53  addEvent("AllEvents");
54 
55  for( unsigned int i=0; i<m_triggerList.size(); i++){
57  }
58 
59  return StatusCode::SUCCESS;
60  }
61 
62 } // End of namespace DerivationFramework
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
DerivationFramework::CfAthAlgTool::addEvent
virtual bool addEvent(const std::string &name, double weight=1.) const
Definition: CfAthAlgTool.cxx:104
DerivationFramework::TriggerCountToMetadata::initialize
virtual StatusCode initialize() override
Definition: TriggerCountToMetadata.cxx:41
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::TriggerCountToMetadata::addBranches
virtual StatusCode addBranches() const override
Pass the thinning service
Definition: TriggerCountToMetadata.cxx:48
lumiFormat.i
int i
Definition: lumiFormat.py:92
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TriggerCountToMetadata.h
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::TriggerCountToMetadata::m_trigDecisionTool
ToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool
Definition: TriggerCountToMetadata.h:45
DerivationFramework::TriggerCountToMetadata::m_folderName
std::string m_folderName
Definition: TriggerCountToMetadata.h:46
DerivationFramework::TriggerCountToMetadata::TriggerCountToMetadata
TriggerCountToMetadata(const std::string &t, const std::string &n, const IInterface *p)
Definition: TriggerCountToMetadata.cxx:28
DerivationFramework::TriggerCountToMetadata::m_triggerList
std::vector< std::string > m_triggerList
Definition: TriggerCountToMetadata.h:44
DerivationFramework::CfAthAlgTool
Definition: CfAthAlgTool.h:35