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

Conditions algorithm to unpack fill parameters from COOL. More...

#include <BunchCrossingCondAlg.h>

Inheritance diagram for BunchCrossingCondAlg:
Collaboration diagram for BunchCrossingCondAlg:

Public Types

typedef BunchCrossingCondData::bunchTrain_t bunchTrain_t
 

Public Member Functions

virtual StatusCode initialize () override
 Gaudi initialize method. More...
 
virtual StatusCode execute (const EventContext &ctx) const override
 Algorithm execute method. More...
 
virtual bool isReEntrant () const override final
 
 AthReentrantAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 Forward base class ctor. More...
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
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

std::vector< bunchTrain_tfindTrains (const std::bitset< BunchCrossingCondData::m_MAX_BCID > &pairsToConsume, const int maxSpacingInTrain, const unsigned minBunchesPerTrain) const
 internal methods: More...
 
std::vector< float > tokenize (const std::string &pattern) const
 This helper function is used to convert a string of type "[0.0, 0.0, 1.0, 1.0, 1.0]" into a vector of floats. More...
 
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...
 

Private Attributes

SG::ReadCondHandleKey< AthenaAttributeListm_fillParamsFolderKey { this, "FillParamsFolderKey", "/TDAQ/OLC/LHC/FILLPARAMS", "" }
 Input conditions object. More...
 
SG::ReadCondHandleKey< LuminosityCondDatam_lumiCondDataKey {this, "LumiCondData", "LuminosityCondData", "Lumi cond data key"}
 
SG::ReadCondHandleKey< TrigConf::L1BunchGroupSetm_bunchGroupCondDataKey {this, "L1BunchGroupCondData", "L1BunchGroup", "Bunch group cond data key"}
 
SG::WriteCondHandleKey< BunchCrossingCondDatam_outputKey {this, "OutputKey", "BunchCrossingData", "Key of output CDO" }
 Output conditions object. More...
 
const ServiceHandle< TrigConf::ILVL1ConfigSvcm_trigConfigSvc {this, "TrigConfigSvc", "TrigConf::xAODConfigSvc/xAODConfigSvc", "Trig Config Svc"}
 
Gaudi::Property< unsigned > m_maxBunchSpacing {this, "MaxBunchSpacing",5, "Maximal bunch-spacing to be considered a 'bunch train'"}
 
Gaudi::Property< unsigned > m_minBunchesPerTrain {this, "MinBunchesPerTrain",32, "Minimal number of bunches to be considerd a 'bunch train'"}
 
Gaudi::Property< bool > m_isRun1 {this,"Run1",false,"Assume run-1 database"}
 
Gaudi::Property< int > m_mode {this, "Mode", 1, "Alg mode (COOL FILLPARAMS = 0, MC = 1, TrigConf = 2, Luminosity = 3)"}
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
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

Conditions algorithm to unpack fill parameters from COOL.

Definition at line 29 of file BunchCrossingCondAlg.h.

Member Typedef Documentation

◆ bunchTrain_t

Definition at line 34 of file BunchCrossingCondAlg.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ AthReentrantAlgorithm()

AthReentrantAlgorithm::AthReentrantAlgorithm

Forward base class ctor.

Definition at line 90 of file AthReentrantAlgorithm.cxx.

22  :
24 {
25 
26  // Set up to run AthAlgorithmDHUpdate in sysInitialize before
27  // merging depedency lists. This extends the output dependency
28  // list with any symlinks implied by inheritance relations.
29  m_updateDataHandles =
30  std::make_unique<AthenaBaseComps::AthAlgorithmDHUpdate>
32  std::move (m_updateDataHandles));
33 }

◆ cardinality()

unsigned int AthReentrantAlgorithm::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::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; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::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< Gaudi::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 BunchCrossingCondAlg::execute ( const EventContext &  ctx) const
overridevirtual

Algorithm execute method.

Definition at line 28 of file BunchCrossingCondAlg.cxx.

28  {
29 
31  if (writeHdl.isValid()) {
32  ATH_MSG_DEBUG("Found valid write handle");
33  return StatusCode::SUCCESS;
34  }
35  // make sure that the output IOV has a valid timestamp, otherwise the conditions
36  // data cannot be added to the "mixed" conditions data container. A mixed container
37  // is needed when the conditions depends on e.g. the LuminosityCondData
38  writeHdl.addDependency(IOVInfiniteRange::infiniteMixed());
39 
40  //Output object & range:
41  auto bccd=std::make_unique<BunchCrossingCondData>();
42 
43  if (m_mode == 2) { // use trigger bunch groups
44  const TrigConf::L1BunchGroupSet* bgs{nullptr};
47  if (! bgsh.isValid()) {
48  ATH_MSG_ERROR("Unable to retrieve L1BunchGroupSet object " << m_bunchGroupCondDataKey);
49  return StatusCode::FAILURE;
50  }
51  bgs = *bgsh;
52  } else {
53  bgs = &(m_trigConfigSvc->l1BunchGroupSet(ctx));
54  }
55  // bunch group 1 = paired
56  if (bgs->size() >= 2) {
57  ATH_MSG_DEBUG("from BunchGroupCondData: BG1 bunches " << bgs->getBunchGroup(1)->bunches() );
58  for (const auto& pos : bgs->getBunchGroup(1)->bunches() ) {
59  bccd->m_beam1.set(pos);
60  bccd->m_beam2.set(pos);
61  bccd->m_luminous.set(pos);
62  }
63  }
64  else {
65  ATH_MSG_ERROR("missing bunch group data");
66  }
67  // in Run 1 we don't have bunch group information to determine beam 1 or beam 2 unpaired
68  // so test if we have at least 15 bunch groups, then assume BG13/14 are the unpaired bunches
69  if (bgs->size() >= 15) {
70  for (const auto& pos : bgs->getBunchGroup(13)->bunches() ) {
71  bccd->m_beam1.set(pos);
72  }
73  for (const auto& pos : bgs->getBunchGroup(14)->bunches() ) {
74  bccd->m_beam2.set(pos);
75  }
76  }
77  // find trains
78  bccd->m_trains=findTrains(bccd->m_luminous, m_maxBunchSpacing,m_minBunchesPerTrain);
79  // we will only trust the validity for 1 LB but that's OK
80  const auto& thisevt = ctx.eventID();
81  EventIDRange range = EventIDRange(EventIDBase(thisevt.run_number(), EventIDBase::UNDEFEVT,
82  EventIDBase::UNDEFNUM, 0, thisevt.lumi_block()),
83  EventIDBase(thisevt.run_number(), EventIDBase::UNDEFEVT,
84  EventIDBase::UNDEFNUM, 0, thisevt.lumi_block()+1));
85  writeHdl.addDependency(range);
86  }
87 
88  if (m_mode == 3) { // use luminosity data
90  writeHdl.addDependency(prefLumiHdl);
91 
92  // consider BCID filled if mu < 1000*average mu
93  float avMu = prefLumiHdl->lbAverageInteractionsPerCrossing();
94  const auto& lumiVec = prefLumiHdl->lbLuminosityPerBCIDVector();
95  float cutLumi = avMu/1000.f*prefLumiHdl->muToLumi();
96 
97  for (size_t bcid = 0; bcid < LuminosityCondData::TOTAL_LHC_BCIDS; ++bcid ) {
98  if (lumiVec[bcid] > cutLumi) {
99  bccd->m_beam1.set(bcid);
100  bccd->m_beam2.set(bcid);
101  bccd->m_luminous.set(bcid);
102  }
103  }
104  // find trains
105  bccd->m_trains=findTrains(bccd->m_luminous, m_maxBunchSpacing,m_minBunchesPerTrain);
106  }
107 
108  if (m_mode == 0 || m_mode == 1) { // use FILLPARAMS (data) or /Digitization/Parameters (MC)
109 
111  writeHdl.addDependency(fillParamsHdl);
112 
113  const AthenaAttributeList* attrList=*fillParamsHdl;
114 
115 
116  if (m_mode == 1) {
117  ATH_MSG_INFO("Assuming MC case");
118  ATH_MSG_INFO("Got AttributeList with size " << attrList->size());
119  std::string sbunches;
120  try {
121  const coral::Attribute& attr=(*attrList)[std::string("BeamIntensityPattern")];
122  if (attr.isNull()) {
123  ATH_MSG_ERROR("Got NULL attribute for BeamIntensityPattern");
124  return StatusCode::FAILURE;
125  }
126  sbunches = attr.data< std::string >();
127  } catch (coral::AttributeListException& e) {
128  ATH_MSG_ERROR(e.what());
129  ATH_MSG_ERROR("Failed to get Attribute 'BeamIntensityPattern' from AttributeList in " << m_fillParamsFolderKey);
130  return StatusCode::FAILURE;
131  }
132 
133  const float minBunchIntensity=0.001;
134  std::vector<float> bunches=tokenize(sbunches);
135  if (!bunches.empty()) {
136  // Check if the pattern "fits into" the LHC:
137  if( BunchCrossingCondData::m_MAX_BCID % bunches.size() ) {
138 
139  ATH_MSG_INFO( "Bunch pattern doesn't \"fit into\" " << BunchCrossingCondData::m_MAX_BCID );
140  // The loop doesn't go all the way up to MAX_BCID/2 in order not to produce "weird"
141  // patterns half way. This should be pretty safe to do, because the MC BCIDs will
142  // only be in the range defined by the pattern from the metadata.
143  for( int i = 0; i < ( BunchCrossingCondData::m_MAX_BCID / 2 - 20 ); ++i ) {
144  const int pos1 = i % bunches.size();
145  const int pos2 = bunches.size() - 1 - ( i % bunches.size() );
146  if( bunches[ pos1 ] > minBunchIntensity) {
147  bccd->m_beam1.set(i);
148  bccd->m_beam2.set(i);
149  bccd->m_luminous.set(i);
150  }
151  if( bunches[ pos2 ] > minBunchIntensity) {
152  bccd->m_beam1.set(BunchCrossingCondData::m_MAX_BCID - 1 -i);
153  bccd->m_beam2.set(BunchCrossingCondData::m_MAX_BCID - 1 -i);
154  bccd->m_luminous.set(BunchCrossingCondData::m_MAX_BCID - 1 -i);
155  }
156  }
157 
158  } else {
159  // If the sample size fits into the number of available bunches, the algorithm
160  // is pretty simple:
161  ATH_MSG_INFO( "Bunch pattern \"fits into\" " << BunchCrossingCondData::m_MAX_BCID );
162  for( int i = 0; i < BunchCrossingCondData::m_MAX_BCID; ++i ) {
163  const int pos = i % bunches.size();
164  if( bunches[ pos ] > minBunchIntensity) {
165  bccd->m_beam1.set(i);
166  bccd->m_beam2.set(i);
167  bccd->m_luminous.set(i);
168  }
169  }
170  }
171  //Filled bcid-bitsets, now extract trains:
172  bccd->m_trains=findTrains(bccd->m_luminous, m_maxBunchSpacing,m_minBunchesPerTrain);
173  }
174  else {//got no bunches from metadata
175  ATH_MSG_INFO("Bunch structure information not found in metadata");
176  ATH_MSG_INFO("Will consider all BCIDs as single filled bunches (no trains)");
177  bccd->m_beam1.set();
178  bccd->m_beam2.set();
179  bccd->m_luminous.set();
180  }
181  }
182  else { // mode == 0, Data-case
183  if ((*attrList)["BCIDmasks"].isNull()) {
184  ATH_MSG_ERROR( "BunchCode is NULL in " << m_fillParamsFolderKey.key() << "!" );
185  return StatusCode::FAILURE;
186  }
187 
188 
189  // Do everything here for now, but should copy this to a vanilla object based on attrList
190  cool::UInt32 nb1 = (*attrList)["Beam1Bunches"].data<cool::UInt32>();
191  cool::UInt32 nb2 = (*attrList)["Beam2Bunches"].data<cool::UInt32>();
192  cool::UInt32 ncol = (*attrList)["LuminousBunches"].data<cool::UInt32>();
193 
194  ATH_MSG_DEBUG( "Beam1Bunches: " << nb1 );
195  ATH_MSG_DEBUG( "Beam2Bunches: " << nb2 );
196  ATH_MSG_DEBUG( "LuminousBunches: " << ncol );
197 
198  const coral::Blob& blob = (*attrList)["BCIDmasks"].data<coral::Blob>();
199 
200  if (m_isRun1) { //Assume run1 layout as explained at https://twiki.cern.ch/twiki/bin/view/AtlasComputing/CoolOnlineData
201  ATH_MSG_DEBUG("Assuming run 1 database");
202  // Verify length
203  if ( static_cast<cool::UInt32>( blob.size() ) != 2 * (nb1 + nb2 + ncol)) {
204  ATH_MSG_WARNING( "BCIDmasks length " << blob.size() << " != 2 * " << (nb1+nb2+ncol) );
205  return StatusCode::SUCCESS;
206  }
207  const uint16_t* blobAddr=static_cast<const uint16_t*>(blob.startingAddress());
208  //Decode beam1 filling:
209  for (size_t idx=0;idx<nb1;++idx) {
210  const uint32_t bcid=blobAddr[idx];
211  bccd->m_beam1.set(bcid);
212  }
213 
214  //Decode beam2 filling:
215  for (size_t idx=nb1;idx<nb2;++idx) {
216  const uint32_t bcid=blobAddr[idx];
217  bccd->m_beam2.set(bcid);
218  }
219 
220  //Decode colliding:
221  for (size_t idx=nb2;idx<ncol;++idx) {
222  const uint32_t bcid=blobAddr[idx];
223  bccd->m_luminous.set(bcid);
224  }
225  }
226  else {
227  ATH_MSG_DEBUG("Assuming run 2/3 database");
228  //Assume run2 layout as explained at https://twiki.cern.ch/twiki/bin/view/AtlasComputing/CoolOnlineData
229  //Verify length
231  ATH_MSG_ERROR("Found blob with unexpected length " << blob.size() << "(expect " << BunchCrossingCondData::m_MAX_BCID <<") in folder " << m_fillParamsFolderKey.key());
232  return StatusCode::FAILURE;
233  }
234  const uint8_t* blobAddr=static_cast<const uint8_t*>(blob.startingAddress());
236  if (blobAddr[bcid] & 0x1) {
237  bccd->m_beam1.set(bcid);
238  }
239  if (blobAddr[bcid] & 0x2) {
240  bccd->m_beam2.set(bcid);
241  }
242  if ((blobAddr[bcid] & 0x3) == 0x3) {
243  bccd->m_luminous.set(bcid);
244  }
245  }
246 
247  //Consistency checks:
248  if (bccd->m_beam1.count()!= nb1) {
249  ATH_MSG_WARNING("Found " << bccd->m_beam1.count() << " bunches in beam1, expected " << nb1);
250  }
251 
252  if (bccd->m_beam2.count()!= nb2) {
253  ATH_MSG_WARNING("Found " << bccd->m_beam2.count() << " bunches in beam2, expected " << nb2);
254  }
255 
256  if (bccd->m_luminous.count()!= ncol) {
257  ATH_MSG_WARNING("Found " << bccd->m_luminous.count() << " colliding bunches, expected " << ncol);
258  }
259  }//end else run2
260  //Filled bcid-bitsets, now extract trains
261  bccd->m_trains=findTrains(bccd->m_luminous, m_maxBunchSpacing,m_minBunchesPerTrain);
262  }//end else is data
263  }
264 
265  ATH_CHECK( writeHdl.record (std::move (bccd)) );
266  return StatusCode::SUCCESS;
267 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::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 & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ findTrains()

std::vector< BunchCrossingCondData::bunchTrain_t > BunchCrossingCondAlg::findTrains ( const std::bitset< BunchCrossingCondData::m_MAX_BCID > &  pairsToConsume,
const int  maxSpacingInTrain,
const unsigned  minBunchesPerTrain 
) const
private

internal methods:

Definition at line 270 of file BunchCrossingCondAlg.cxx.

270  {
271 
272  const int MAX_BCID=collidingBCIDs.size();
273  std::vector<bunchTrain_t> result;
274 
275  std::vector<std::pair<int,int> > holes;
276  int start=0;
277  int stop=0;
278 
279  while (stop<MAX_BCID) { //Outer loop, over holes
280  for (start=stop;stop<MAX_BCID && !collidingBCIDs.test(stop); ++stop) {};//Count consecutive holes
281  //stop points now to the next filled bcid (or MAX)
282  if ((stop-start)>maxSpacingInTrain) {
283  holes.emplace_back(start,stop);
284  }//end if >maxSpacingInTrain
285  ++stop;
286  }//end outer loop
287 
288 
289  ATH_MSG_DEBUG("Found " << holes.size() << " gaps larger than " << maxSpacingInTrain << " in the bunch structure");
290  if (msgLvl(MSG::VERBOSE)) {
291  for (auto& h : holes) {
292  msg(MSG::VERBOSE) << "Hole: " << h.first << " - " << h.second << endmsg;
293  }
294  }
295 
296 
297  if (holes.empty()) {
298  ATH_MSG_ERROR("Looks like we have bunch train spanning the entire ring w/o any gap. Really?");
299  return result;
300  }
301 
302 
303  if (holes.size()>1) {
304  //generic case of having at least 2 gaps int the bunch structure
305  for (unsigned i=0;i<holes.size()-1;++i) {
306  //Count colliding bunches in this train:
307  unsigned ncoll=0;
308  for (int idx=holes[i].second;idx<holes[i+1].first-1;++idx) {
309  if (collidingBCIDs.test(idx)) {
310  ++ncoll;
311  }
312  }
313  result.emplace_back(holes[i].second,holes[i+1].first-1,ncoll);
314  }
315  }
316 
317  if (holes.size()==1 || (holes.front().first!=0 && holes.back().second!=MAX_BCID-1)) {
318  //Special case of only one hole and/or first/last BCIDs populated (train across the wrap-around)
319 
320  //To simplify the distanceToFront and distanceToTail methods we duplicate this train
321  //Once as first train wiht a starting point in the negative range, and
322  //once as last train with a ending point beyond MAX_BCID
323 
324  //Count the number of collisions in this train:
325  unsigned ncoll=0;
326  for (int idx=0;idx<holes.front().first;++idx) {
327  if (collidingBCIDs.test(idx)) {
328  ++ncoll;
329  }
330  }
331  for (int idx=holes.back().second;idx<MAX_BCID;++idx) {
332  if (collidingBCIDs.test(idx)) {
333  ++ncoll;
334  }
335  }
336 
337  BunchCrossingCondData::bunchTrain_t firsttrain(holes.back().second-MAX_BCID, holes.front().first-1,ncoll);
338  BunchCrossingCondData::bunchTrain_t lasttrain(holes.back().second,MAX_BCID+holes.front().first-1,ncoll);
339  result.insert(result.begin(),firsttrain);
340  result.push_back(lasttrain);
341  }//end if wrap-around populated
342 
343 
344  ATH_MSG_DEBUG("Found " << result.size() << " Bunch trains separated by gaps of at least " << maxSpacingInTrain << " bcids ");
345 
346  //copy the vector, cleaning out trains with too few colliding bunches
347  std::vector<bunchTrain_t> result1;
348  result1.reserve(result.size());
349  for (const bunchTrain_t& train: result) {
350  if (train.m_nColl >= minBunchesPerTrain) {
351  result1.emplace_back(train);
352  }
353  }
354 
355  ATH_MSG_INFO("Found " << result1.size() << " Bunch trains having at least " << minBunchesPerTrain << " colliding bunches and separated by at least " << maxSpacingInTrain << " bcids");
356 
357 
358  if (msgLvl(MSG::VERBOSE)) {
359  for (auto& r : result1) {
360  msg(MSG::VERBOSE) << "Train " << r.m_first << " - " << r.m_last << ", " << r.m_nColl << " colliding bcids" << endmsg;
361  }
362  }
363 
364  return result1;
365 }

◆ initialize()

StatusCode BunchCrossingCondAlg::initialize ( )
overridevirtual

Gaudi initialize method.

Definition at line 16 of file BunchCrossingCondAlg.cxx.

16  {
17  if (m_mode == 2) {
18  ATH_CHECK( m_trigConfigSvc.retrieve() );
19  }
24  return StatusCode::SUCCESS;
25 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::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.

◆ isClonable()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ isReEntrant()

virtual bool BunchCrossingCondAlg::isReEntrant ( ) const
inlinefinaloverridevirtual

Definition at line 43 of file BunchCrossingCondAlg.h.

43 { return false; }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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  }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::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< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::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.

◆ tokenize()

std::vector< float > BunchCrossingCondAlg::tokenize ( const std::string &  pattern) const
private

This helper function is used to convert a string of type "[0.0, 0.0, 1.0, 1.0, 1.0]" into a vector of floats.

As it happens, the digitization stores the bunch pattern in such a fancy style...

Parameters
patternThe pattern extracted from the MC file metadata
Returns
The "decoded" bunch pattern

Definition at line 376 of file BunchCrossingCondAlg.cxx.

376  {
377  ATH_MSG_VERBOSE("Input to tokenize: " << pattern);
378 
379  std::vector< float > result;
380  const char* c= pattern.data();
381  const char* cEnd= c + pattern.size();
382  while(c<cEnd) {
383  //This loop swallows actually any string containing numbers
384  //separated by non-numbers
385  char* end;
386  float f=std::strtof(c,&end);
387  if (c==end) {//Can't convert, try next
388  c++;
389  }
390  else { //got a value
391  result.push_back(f);
392  c=end;
393  }
394  }//end while loop
395  return result;
396 }

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::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_bunchGroupCondDataKey

SG::ReadCondHandleKey<TrigConf::L1BunchGroupSet> BunchCrossingCondAlg::m_bunchGroupCondDataKey {this, "L1BunchGroupCondData", "L1BunchGroup", "Bunch group cond data key"}
private

Definition at line 51 of file BunchCrossingCondAlg.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_fillParamsFolderKey

SG::ReadCondHandleKey<AthenaAttributeList> BunchCrossingCondAlg::m_fillParamsFolderKey { this, "FillParamsFolderKey", "/TDAQ/OLC/LHC/FILLPARAMS", "" }
private

Input conditions object.

Definition at line 49 of file BunchCrossingCondAlg.h.

◆ m_isRun1

Gaudi::Property<bool> BunchCrossingCondAlg::m_isRun1 {this,"Run1",false,"Assume run-1 database"}
private

Definition at line 65 of file BunchCrossingCondAlg.h.

◆ m_lumiCondDataKey

SG::ReadCondHandleKey<LuminosityCondData> BunchCrossingCondAlg::m_lumiCondDataKey {this, "LumiCondData", "LuminosityCondData", "Lumi cond data key"}
private

Definition at line 50 of file BunchCrossingCondAlg.h.

◆ m_maxBunchSpacing

Gaudi::Property<unsigned> BunchCrossingCondAlg::m_maxBunchSpacing {this, "MaxBunchSpacing",5, "Maximal bunch-spacing to be considered a 'bunch train'"}
private

Definition at line 63 of file BunchCrossingCondAlg.h.

◆ m_minBunchesPerTrain

Gaudi::Property<unsigned> BunchCrossingCondAlg::m_minBunchesPerTrain {this, "MinBunchesPerTrain",32, "Minimal number of bunches to be considerd a 'bunch train'"}
private

Definition at line 64 of file BunchCrossingCondAlg.h.

◆ m_mode

Gaudi::Property<int> BunchCrossingCondAlg::m_mode {this, "Mode", 1, "Alg mode (COOL FILLPARAMS = 0, MC = 1, TrigConf = 2, Luminosity = 3)"}
private

Definition at line 66 of file BunchCrossingCondAlg.h.

◆ m_outputKey

SG::WriteCondHandleKey<BunchCrossingCondData> BunchCrossingCondAlg::m_outputKey {this, "OutputKey", "BunchCrossingData", "Key of output CDO" }
private

Output conditions object.

Definition at line 53 of file BunchCrossingCondAlg.h.

◆ m_trigConfigSvc

const ServiceHandle<TrigConf::ILVL1ConfigSvc> BunchCrossingCondAlg::m_trigConfigSvc {this, "TrigConfigSvc", "TrigConf::xAODConfigSvc/xAODConfigSvc", "Trig Config Svc"}
private

Definition at line 56 of file BunchCrossingCondAlg.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
mergePhysValFiles.pattern
pattern
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:26
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
beamspotman.r
def r
Definition: beamspotman.py:676
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
BunchCrossingCondAlg::tokenize
std::vector< float > tokenize(const std::string &pattern) const
This helper function is used to convert a string of type "[0.0, 0.0, 1.0, 1.0, 1.0]" into a vector of...
Definition: BunchCrossingCondAlg.cxx:376
get_generator_info.result
result
Definition: get_generator_info.py:21
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
BunchCrossingCondAlg::m_trigConfigSvc
const ServiceHandle< TrigConf::ILVL1ConfigSvc > m_trigConfigSvc
Definition: BunchCrossingCondAlg.h:56
BunchCrossingCondAlg::m_minBunchesPerTrain
Gaudi::Property< unsigned > m_minBunchesPerTrain
Definition: BunchCrossingCondAlg.h:64
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
InDetDD::holes
@ holes
Definition: InDetDD_Defs.h:17
mergePhysValFiles.start
start
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:14
plotBeamSpotCompare.x2
x2
Definition: plotBeamSpotCompare.py:218
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
IOVInfiniteRange::infiniteMixed
static EventIDRange infiniteMixed()
Produces an mixed EventIDRange that is infinite in Time and RunLumi.
Definition: IOVInfiniteRange.h:55
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
AthCommonMsg< Gaudi::Algorithm >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
python.subdetectors.tile.Blob
Blob
Definition: tile.py:17
PixelModuleFeMask_create_db.stop
int stop
Definition: PixelModuleFeMask_create_db.py:76
LuminosityCondData::TOTAL_LHC_BCIDS
static constexpr unsigned int TOTAL_LHC_BCIDS
Definition: LuminosityCondData.h:27
BunchCrossingCondAlg::m_bunchGroupCondDataKey
SG::ReadCondHandleKey< TrigConf::L1BunchGroupSet > m_bunchGroupCondDataKey
Definition: BunchCrossingCondAlg.h:51
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
BunchCrossingCondAlg::m_isRun1
Gaudi::Property< bool > m_isRun1
Definition: BunchCrossingCondAlg.h:65
BunchCrossingCondData::m_MAX_BCID
static constexpr int m_MAX_BCID
Definition: BunchCrossingCondData.h:28
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
BunchCrossingCondAlg::findTrains
std::vector< bunchTrain_t > findTrains(const std::bitset< BunchCrossingCondData::m_MAX_BCID > &pairsToConsume, const int maxSpacingInTrain, const unsigned minBunchesPerTrain) const
internal methods:
Definition: BunchCrossingCondAlg.cxx:270
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
lumiFormat.i
int i
Definition: lumiFormat.py:85
BunchCrossingCondAlg::m_outputKey
SG::WriteCondHandleKey< BunchCrossingCondData > m_outputKey
Output conditions object.
Definition: BunchCrossingCondAlg.h:53
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
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
BunchCrossingCondAlg::bunchTrain_t
BunchCrossingCondData::bunchTrain_t bunchTrain_t
Definition: BunchCrossingCondAlg.h:34
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Definition: PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:45
hist_file_dump.f
f
Definition: hist_file_dump.py:135
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TrigConf::L1BunchGroupSet
L1 board configuration.
Definition: L1BunchGroupSet.h:71
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
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
BunchCrossingCondAlg::m_fillParamsFolderKey
SG::ReadCondHandleKey< AthenaAttributeList > m_fillParamsFolderKey
Input conditions object.
Definition: BunchCrossingCondAlg.h:49
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
BunchCrossingCondAlg::m_lumiCondDataKey
SG::ReadCondHandleKey< LuminosityCondData > m_lumiCondDataKey
Definition: BunchCrossingCondAlg.h:50
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AsgConfigHelper::strtof
bool strtof(const std::string &input, T &f)
Definition: AsgEGammaConfigHelper.cxx:47
DeMoScan.first
bool first
Definition: DeMoScan.py:536
AthCommonMsg< Gaudi::Algorithm >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
xAOD::collidingBCIDs
collidingBCIDs
Definition: BunchConf_v1.cxx:28
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
BunchCrossingCondAlg::m_maxBunchSpacing
Gaudi::Property< unsigned > m_maxBunchSpacing
Definition: BunchCrossingCondAlg.h:63
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
python.Constants.VERBOSE
int VERBOSE
Definition: Control/AthenaCommon/python/Constants.py:14
BunchCrossingCondAlg::m_mode
Gaudi::Property< int > m_mode
Definition: BunchCrossingCondAlg.h:66
python.compressB64.c
def c
Definition: compressB64.py:93
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
CaloCondBlobAlgs_fillNoiseFromASCII.blob
blob
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:96
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
BunchCrossingCondData::bunchTrain_t
Definition: BunchCrossingCondData.h:315