ATLAS Offline Software
PileUpXingFolder.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 #include "GaudiKernel/IProperty.h"
6 #include <exception>
7 #include "PileUpXingFolder.h"
9  const std::string& name,
10  const IInterface* parent) :
11  base_class(type, name, parent),
12  m_folder( "SG::Folder/SGF", this ),
13  m_firstXing(-999),
14  m_lastXing(999),
15  m_itemList(),
16  m_cacheRefreshFrequency(0.0)
17 {
18  declareProperty("FirstXing", m_firstXing);
19  declareProperty("LastXing", m_lastXing);
20  declareProperty("ItemList", m_itemList);
21  m_cacheRefreshFrequency.verifier().setBounds(0.0, 1.0);
22  declareProperty("CacheRefreshFrequency", m_cacheRefreshFrequency,
23  "frequency with which data objs in this folder should be cleared from bkg caches at end of event. Default 0 (never clear), range [0.0, 1.0]");
24 }
25 
27  if (!(m_folder.retrieve()).isSuccess()) return StatusCode::FAILURE;
28  return (dynamic_cast<IProperty&>(*m_folder)).setProperty(m_itemList);
29 }
PileUpXingFolder::PileUpXingFolder
PileUpXingFolder(const std::string &type, const std::string &name, const IInterface *parent)
Definition: PileUpXingFolder.cxx:8
PileUpXingFolder::m_cacheRefreshFrequency
Gaudi::CheckedProperty< double > m_cacheRefreshFrequency
Bound property [0.0, 1.0]: frequency with which data objs in this folder should be cleared from bkg c...
Definition: PileUpXingFolder.h:73
PileUpXingFolder::m_itemList
Gaudi::Property< std::vector< std::string > > m_itemList
this must match SG::Folder::m_itemList
Definition: PileUpXingFolder.h:70
PileUpXingFolder::m_folder
ToolHandle< SG::IFolder > m_folder
Definition: PileUpXingFolder.h:67
PileUpXingFolder.h
specify time interval we want to study pileup for a set of data objs
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
PileUpXingFolder::m_lastXing
Gaudi::Property< int > m_lastXing
Definition: PileUpXingFolder.h:69
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
PileUpXingFolder::initialize
virtual StatusCode initialize()
Definition: PileUpXingFolder.cxx:26
PileUpXingFolder::m_firstXing
Gaudi::Property< int > m_firstXing
Definition: PileUpXingFolder.h:68