ATLAS Offline Software
Classes | List of all members
MixingEventSelector Class Reference

a stream of events read from different selectors. More...

#include <MixingEventSelector.h>

Inheritance diagram for MixingEventSelector:
Collaboration diagram for MixingEventSelector:

Classes

class  Context
 dummy for now More...
 
class  Trigger
 a selector with an associated frequency More...
 
class  TriggerList
 the list of available selectors with their frequency range More...
 

Public Member Functions

IEvtSelector implementation
virtual StatusCode next (IEvtSelector::Context &refCtxt) const override
 
virtual StatusCode createAddress (const IEvtSelector::Context &refCtxt, IOpaqueAddress *&) const override
 
virtual StatusCode createContext (IEvtSelector::Context *&refpCtxt) const override
 
virtual StatusCode last (IEvtSelector::Context &) const override
 
virtual StatusCode next (IEvtSelector::Context &, int) const override
 
virtual StatusCode previous (IEvtSelector::Context &) const override
 
virtual StatusCode previous (IEvtSelector::Context &, int) const override
 
virtual StatusCode rewind (IEvtSelector::Context &refCtxt) const override
 
virtual StatusCode releaseContext (IEvtSelector::Context *&refCtxt) const override
 
virtual StatusCode resetCriteria (const std::string &cr, IEvtSelector::Context &c) const override
 
IAddressProvider interface (forwarded to current Trigger)
virtual StatusCode preLoadAddresses (StoreID::type storeID, IAddressProvider::tadList &tads) override
 
virtual StatusCode loadAddresses (StoreID::type storeID, IAddressProvider::tadList &tads) override
 
virtual StatusCode updateAddress (StoreID::type storeID, SG::TransientAddress *tad, const EventContext &ctx) override
 
IConverter implementation.
virtual const CLIDobjType () const override
 
virtual long repSvcType () const override
 
virtual StatusCode createObj (IOpaqueAddress *pAddress, DataObject *&refpObject) override
 Create the transient representation of an object. More...
 
virtual StatusCode setDataProvider (IDataProviderSvc *pService) override
 
virtual SmartIF< IDataProviderSvc > & dataProvider () const override
 
virtual StatusCode setConversionSvc (IConversionSvc *pService) override
 
virtual SmartIF< IConversionSvc > & conversionSvc () const override
 
virtual StatusCode setAddressCreator (IAddressCreator *creator) override
 
virtual SmartIF< IAddressCreator > & addressCreator () const override
 
virtual StatusCode fillObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) override
 
virtual StatusCode updateObj (IOpaqueAddress *pAddress, DataObject *refpObject) override
 
virtual StatusCode updateObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) override
 
virtual StatusCode createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) override
 
virtual StatusCode fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) override
 
virtual StatusCode updateRep (IOpaqueAddress *pAddress, DataObject *pObject) override
 
virtual StatusCode updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) override
 
Service implementation
virtual StatusCode initialize () override
 
virtual StatusCode finalize () override
 
void setUpTriggerList (Gaudi::Details::PropertyBase &trigList)
 TriggerList property call-back. More...
 
void decodeTrigger (std::string triggDescr)
 functor that creates a Trigger object and adds it to m_trigList More...
 

Private Attributes

Properties
StringProperty m_statusFileName
 optional stream output snapshot More...
 
StringArrayProperty m_triggerListProp
 the recipe More...
 
IntegerProperty m_outputRunNumber
 
UnsignedLongArrayProperty m_eventNumbers
 use these as event numbers More...
 
StringProperty m_mergedEventInfoKey
 SG key of MergedEventInfo. More...
 
ToolHandleArray< IAthenaSelectorToolm_helperTools
 
TriggerList m_trigList
 the ingredients More...
 

structors

 MixingEventSelector (const std::string &name, ISvcLocator *svc)
 
virtual ~MixingEventSelector ()
 
bool validTrigger () const
 

trigger list management

TriggerList::iterator m_pCurrentTrigger
 the current trigger More...
 
TriggerList::iterator setCurrentTrigger () const
 choose current trigger at random. Actually modifies state (use mutables) More...
 
TriggerList::iterator currentTrigger () const
 "intelligent" accessor to the above More...
 

event number management

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 
unsigned long m_eventPos
 the internal event number More...
 
StoreGateSvc_t m_pEventStore
 
ServiceHandle< IAtRndmGenSvcm_atRndmSvc
 
StringProperty m_randomStreamName
 
CLHEP::RandFlat * m_chooseRangeRand
 
unsigned long getEventNo () const
 setup and lookup m_evtsNotUsedSoFar. Returns next event no More...
 

Detailed Description

a stream of events read from different selectors.

Each source contains a particular event type ("trigger"). We want to mix the triggers according to a recipe specified via the "TriggerList" property

Mixer.TriggerList += {"50% BSelector", "20 % MinBiasSelec"};

The algorithms downstream of the"mixer" will see events coming at random according to this admixture.
The "OutputRunNumber" property allows to assign a new run number to the events.

Mixer.OutputRun=1234;

The event number can be randomized to mimic the behaviour of the processing farms. So

Mixer.EventRandomRange=100;

will shuffle the first 100 events, then move to the second hundred, etc

Definition at line 68 of file MixingEventSelector.h.

Member Typedef Documentation

◆ StoreGateSvc_t

Definition at line 256 of file MixingEventSelector.h.

Constructor & Destructor Documentation

◆ MixingEventSelector()

MixingEventSelector::MixingEventSelector ( const std::string &  name,
ISvcLocator *  svc 
)

Definition at line 47 of file MixingEventSelector.cxx.

47  :
48  base_class(name,svc),
49  m_helperTools(this),
51  m_eventPos(0),
52  m_pEventStore( "StoreGateSvc", name ),
53  m_atRndmSvc("AtRndmGenSvc", name),
54  m_randomStreamName("MixingEventSelectorStream"),
55  m_chooseRangeRand(nullptr)
56 {
57  declareProperty("TriggerList", m_triggerListProp,
58  "list of triggers (streams) to be used. Format is SelectorType/SelectorName:firstEventToUse:lastEventToUse. One assumes events are consecutively numbered.");
59  m_triggerListProp.declareUpdateHandler(&MixingEventSelector::setUpTriggerList, this);
60  declareProperty("OutputRunNumber", m_outputRunNumber=123456789);
61  declareProperty("EventNumbers", m_eventNumbers,
62  "list of event numbers to be used for output stream. If list empty or not long enough, event numbers are assigned consucutively after last one in list");
63  declareProperty("StreamStatusFileName", m_statusFileName=string(),
64  "Name of the file recording the last event used and how many were available for each stream. Default is to produce no file." ); //no out
65  declareProperty("MergedEventInfoKey",
66  m_mergedEventInfoKey=string("MergedEventInfo"),
67  "StoreGate key for output (merged) event info object. Default is MergedEventInfo ");
68  declareProperty("RndmGenSvc", m_atRndmSvc, "IAtRndmGenSvc controlling the order with which events are takes from streams");
69  declareProperty("RndmStreamName", m_randomStreamName, "IAtRndmGenSvc stream used as engine for our random distributions");
70  declareProperty("HelperTools", m_helperTools, "a collection of selector tools");
71 
72 }

◆ ~MixingEventSelector()

MixingEventSelector::~MixingEventSelector ( )
virtual

Definition at line 74 of file MixingEventSelector.cxx.

74  {
75 }

Member Function Documentation

◆ addressCreator()

SmartIF< IAddressCreator > & MixingEventSelector::addressCreator ( ) const
overridevirtual

Definition at line 575 of file MixingEventSelector.cxx.

576 {
577  std::abort();
578 }

◆ conversionSvc()

SmartIF< IConversionSvc > & MixingEventSelector::conversionSvc ( ) const
overridevirtual

Definition at line 567 of file MixingEventSelector.cxx.

568 {
569  std::abort();
570 }

◆ createAddress()

StatusCode MixingEventSelector::createAddress ( const IEvtSelector::Context &  refCtxt,
IOpaqueAddress *&  pAddr 
) const
overridevirtual

Definition at line 244 of file MixingEventSelector.cxx.

245  {
246  pAddr=nullptr;
247  if (!validTrigger()) return StatusCode::FAILURE;
248 
250  return (currentTrigger()->createAddress(pAddr).isSuccess() &&
251  pAddr != nullptr) ? StatusCode::SUCCESS : StatusCode::FAILURE;
252 }

◆ createContext()

StatusCode MixingEventSelector::createContext ( IEvtSelector::Context *&  refpCtxt) const
overridevirtual

Definition at line 196 of file MixingEventSelector.cxx.

196  {
197  pctxt=nullptr;
198  if (!validTrigger()) return StatusCode::FAILURE;
200  StatusCode sc(StatusCode::FAILURE);
201  while (iTr != m_trigList.end() && (sc=(iTr++)->createContext(pctxt)).isSuccess()) ;
202  return sc;
203 }

◆ createObj()

StatusCode MixingEventSelector::createObj ( IOpaqueAddress *  pAddress,
DataObject *&  refpObject 
)
overridevirtual

Create the transient representation of an object.

The transient representation is created by loading the persistent object using the source information contained in the address.

Returns
Status code indicating success or failure
Parameters
pAddressOpaque address information to retrieve the requested object from the store in order to produce the transient object.
refpObjectReference to location of pointer of the created object.

Definition at line 528 of file MixingEventSelector.cxx.

530 {
531  const EventInfo* pEInfo(nullptr);
532  if (!(m_pEventStore->retrieve(pEInfo)).isSuccess()) {
534  ("addMergedEventInfo: event store does not contain "\
535  "an EventInfo object!");
536  return StatusCode::RECOVERABLE;
537  }
538 
539  // copy the original event to a new MergedEventInfo
540  auto mei = std::make_unique<MergedEventInfo> (*pEInfo,
542  getEventNo());
543  refpObject = SG::asStorable (std::move (mei));
544 
545 
546  //finally slam a new EventID in place of the old! HACK!!! FIXME!!
547  (const_cast<EventInfo*>(pEInfo))->setEventID(
549 
550  return StatusCode::SUCCESS;
551 }

◆ createRep()

StatusCode MixingEventSelector::createRep ( DataObject *  pObject,
IOpaqueAddress *&  refpAddress 
)
overridevirtual

Definition at line 591 of file MixingEventSelector.cxx.

592 {
593  std::abort();
594 }

◆ currentTrigger()

MixingEventSelector::TriggerList::iterator MixingEventSelector::currentTrigger ( ) const
private

"intelligent" accessor to the above

Definition at line 322 of file MixingEventSelector.cxx.

322  {
324 }

◆ dataProvider()

SmartIF< IDataProviderSvc > & MixingEventSelector::dataProvider ( ) const
overridevirtual

Definition at line 559 of file MixingEventSelector.cxx.

560 {
561  std::abort();
562 }

◆ decodeTrigger()

void MixingEventSelector::decodeTrigger ( std::string  triggDescr)

functor that creates a Trigger object and adds it to m_trigList

Definition at line 138 of file MixingEventSelector.cxx.

138  {
139  //all this would be much more readable without error reporting...
140  typedef tokenizer<char_separator<char> > Tokenizer;
141  Tokenizer tokens(triggDescr, char_separator<char>(" :"));
142  //we need exactly three tokens: selector name, first and last event 2 B read
143  if ( (distance(tokens.begin(), tokens.end()) == 3) ||
144  (distance(tokens.begin(), tokens.end()) == 3) ){
145  Tokenizer::iterator iToken(tokens.begin());
146  try {
147  Gaudi::Utils::TypeNameString selTN(*iToken++);
148  //get selector
149  SmartIF<IEvtSelector> pSelector(serviceLocator()->service(selTN));
150  if (pSelector) {
151  //FIXME if (!pSelector.done()) {
152  //try to add to trig list
153  unsigned int firstEvt(boost::lexical_cast<unsigned int>(*iToken++));
154  unsigned int lastEvt(boost::lexical_cast<unsigned int>(*iToken));
155  if (m_trigList.add(Trigger(pSelector, firstEvt, lastEvt))) {
156  if (msgLvl(MSG::DEBUG)) {
157  SmartIF<INamedInterface> pNamed(pSelector);
158  if (pNamed) {
159  msg() << "decodeTrigger: added selector " << pNamed->name()
160  << " first event to be read " << firstEvt
161  << " last event to be read " << lastEvt << endmsg;
162  }
163  }
164  } else {
166  ("decodeTrigger: Selector ["
167  << selTN.type() << '/' << selTN.name()
168  << "] not added");
169  } //can add to range
170  } else {
172  ("decodeTrigger: Selector ["
173  << selTN.type() << '/' << selTN.name()
174  << "] can not be found or created");
175  } //selector available
176  } catch (const boost::bad_lexical_cast& e) {
178  ("decodeTrigger: Can't cast ["<< *iToken
179  << "] to double(frequency). SKIPPING");
180  } //can cast to frequency
181  } else {
183  ("decodeTrigger: Badly formatted descriptor ["
184  << triggDescr << "]. SKIPPING");
185  } //can parse property string
186 }

◆ fillObjRefs()

StatusCode MixingEventSelector::fillObjRefs ( IOpaqueAddress *  pAddress,
DataObject *  pObject 
)
overridevirtual

Definition at line 579 of file MixingEventSelector.cxx.

580 {
581  std::abort();
582 }

◆ fillRepRefs()

StatusCode MixingEventSelector::fillRepRefs ( IOpaqueAddress *  pAddress,
DataObject *  pObject 
)
overridevirtual

Definition at line 595 of file MixingEventSelector.cxx.

596 {
597  std::abort();
598 }

◆ finalize()

StatusCode MixingEventSelector::finalize ( )
overridevirtual

Definition at line 103 of file MixingEventSelector.cxx.

103  {
104  ATH_MSG_DEBUG ("Finalizing " << name());
105 
106  StatusCode sc(StatusCode::SUCCESS);
107  std::vector<ToolHandle<IAthenaSelectorTool> >::iterator
108  i(m_helperTools.begin()), iE(m_helperTools.end());
109  while (i != iE) ((*i++)->preFinalize()).ignore();
110 
111  const std::string& fname(m_statusFileName.value());
112  ofstream outfile(fname.c_str());
113  if ( outfile ) {
116  while (i != iEnd) outfile << (*i++).toString();
117  } else if (!fname.empty()) {
118  ATH_MSG_WARNING("unable to open trigger list status file " << fname);
119  }
120 
121  m_helperTools.release().ignore();
122 
123  return sc;
124 
125 }

◆ getEventNo()

unsigned long MixingEventSelector::getEventNo ( ) const
private

setup and lookup m_evtsNotUsedSoFar. Returns next event no

Definition at line 291 of file MixingEventSelector.cxx.

291  {
292  return ( (m_eventNumbers.value().size() > m_eventPos) ?
293  m_eventNumbers.value()[m_eventPos] :
294  m_eventPos );
295 }

◆ initialize()

StatusCode MixingEventSelector::initialize ( )
overridevirtual

Definition at line 78 of file MixingEventSelector.cxx.

78  {
79  ATH_MSG_INFO ("Initializing " << name());
80 
81 // defer this (it triggers a init loop via PPS
82 // if (!m_pEventStore.retrieve().isSuccess())
83 // return StatusCode::FAILURE;
84 
85  //setup random stream
86  CLHEP::HepRandomEngine* collEng(m_atRndmSvc->GetEngine(m_randomStreamName.value()));
87  if(nullptr == collEng ) {
88  ATH_MSG_ERROR ("can not get random stream " << m_randomStreamName.value());
89  return StatusCode::FAILURE;
90  }
91  //flat distribution in [0,1] range
92  m_chooseRangeRand = new CLHEP::RandFlat(*(collEng), 0.0, 1.0);
93 
94  StatusCode sc= m_helperTools.retrieve();
95  std::vector<ToolHandle<IAthenaSelectorTool> >::iterator
96  i(m_helperTools.begin()), iE(m_helperTools.end());
97  while (sc.isSuccess() && (i != iE)) sc = (*i++)->postInitialize();
98 
99  return sc;
100 }

◆ last()

StatusCode MixingEventSelector::last ( IEvtSelector::Context &  ) const
overridevirtual

Definition at line 482 of file MixingEventSelector.cxx.

482  {
483  return StatusCode::FAILURE;
484 }

◆ loadAddresses()

StatusCode MixingEventSelector::loadAddresses ( StoreID::type  storeID,
IAddressProvider::tadList tads 
)
overridevirtual

Definition at line 261 of file MixingEventSelector.cxx.

263 {
264  if (storeID != StoreID::EVENT_STORE && storeID != StoreID::PILEUP_STORE)
265  return StatusCode::SUCCESS;
266 
268  if (!m_pEventStore->contains (mclid, m_mergedEventInfoKey)) {
269  // We create the DataProxy here rather than relying on ProxyProvideSvc
270  // to do it because we want to set a non-default dataloader on the proxy.
271  SG::TransientAddress tad (mclid,
273  new GenericAddress (0, mclid),
274  false);
275  auto dp = std::make_unique<SG::DataProxy> (std::move(tad),
276  this,
277  true);
278  ATH_CHECK( m_pEventStore->addToStore (mclid, dp.release()) );
279  }
280  return StatusCode::SUCCESS;
281 }

◆ next() [1/2]

StatusCode MixingEventSelector::next ( IEvtSelector::Context &  ,
int   
) const
overridevirtual

Definition at line 485 of file MixingEventSelector.cxx.

485  {
486  return StatusCode::FAILURE;
487 }

◆ next() [2/2]

StatusCode MixingEventSelector::next ( IEvtSelector::Context &  refCtxt) const
overridevirtual

Definition at line 206 of file MixingEventSelector.cxx.

206  {
207  StatusCode sc(StatusCode::FAILURE);
208  do {
209 #ifdef DEBUG_OUTPUT_STATUS
212  while (i != iEnd) outfile2 << (*i++).toString(); //output status
213 #endif
215  sc = currentTrigger()->next();
216  if (sc.isFailure()){
218  continue; // we have to add "continue;" after "m_trigList.remove(m_pCurrentTrigger);
219  }
220  } while ((sc.isFailure() || currentTrigger()->done()) && !m_trigList.empty() );
221  // use !m_trigList.empty() to replace validTrigger(), which is not working well
222 
223  std::vector<ToolHandle<IAthenaSelectorTool> >::const_iterator
224  i(m_helperTools.begin()), iE(m_helperTools.end());
225  while (i != iE) ((*i++)->preNext()).ignore();
226 
227  ++m_eventPos;
228  FORWARD___DEBUG( next );
229 
230  i=m_helperTools.begin(); iE=m_helperTools.end();
231  while (sc.isSuccess() && (i != iE)) {
232  sc =(*i)->postNext();
233  if (sc.isRecoverable())
234  ATH_MSG_INFO("Request skipping event from: " << (*i)->name());
235  else if (sc.isFailure())
236  ATH_MSG_WARNING((*i)->name() << ":postNext failed");
237  ++i;
238  }
239  return sc;
240 }

◆ objType()

const CLID & MixingEventSelector::objType ( ) const
overridevirtual

Definition at line 507 of file MixingEventSelector.cxx.

508 {
510 }

◆ preLoadAddresses()

StatusCode MixingEventSelector::preLoadAddresses ( StoreID::type  storeID,
IAddressProvider::tadList tads 
)
overridevirtual

Definition at line 255 of file MixingEventSelector.cxx.

256  {
257  return StatusCode::SUCCESS;
258 }

◆ previous() [1/2]

StatusCode MixingEventSelector::previous ( IEvtSelector::Context &  ) const
overridevirtual

Definition at line 488 of file MixingEventSelector.cxx.

488  {
489  return StatusCode::FAILURE;
490 }

◆ previous() [2/2]

StatusCode MixingEventSelector::previous ( IEvtSelector::Context &  ,
int   
) const
overridevirtual

Definition at line 491 of file MixingEventSelector.cxx.

491  {
492  return StatusCode::FAILURE;
493 }

◆ releaseContext()

StatusCode MixingEventSelector::releaseContext ( IEvtSelector::Context *&  refCtxt) const
overridevirtual

Definition at line 497 of file MixingEventSelector.cxx.

497  {
498  return StatusCode::FAILURE;
499 }

◆ repSvcType()

long MixingEventSelector::repSvcType ( ) const
overridevirtual

Definition at line 511 of file MixingEventSelector.cxx.

512 {
513  return 0;
514 }

◆ resetCriteria()

StatusCode MixingEventSelector::resetCriteria ( const std::string &  cr,
IEvtSelector::Context &  c 
) const
overridevirtual

Definition at line 500 of file MixingEventSelector.cxx.

501  {
502  return StatusCode::FAILURE;
503 }

◆ rewind()

StatusCode MixingEventSelector::rewind ( IEvtSelector::Context &  refCtxt) const
overridevirtual

Definition at line 494 of file MixingEventSelector.cxx.

494  {
495  return StatusCode::FAILURE;
496 }

◆ setAddressCreator()

StatusCode MixingEventSelector::setAddressCreator ( IAddressCreator *  creator)
overridevirtual

Definition at line 571 of file MixingEventSelector.cxx.

572 {
573  std::abort();
574 }

◆ setConversionSvc()

StatusCode MixingEventSelector::setConversionSvc ( IConversionSvc *  pService)
overridevirtual

Definition at line 563 of file MixingEventSelector.cxx.

564 {
565  std::abort();
566 }

◆ setCurrentTrigger()

MixingEventSelector::TriggerList::iterator MixingEventSelector::setCurrentTrigger ( ) const
private

choose current trigger at random. Actually modifies state (use mutables)

Definition at line 299 of file MixingEventSelector.cxx.

299  {
300  //we look for the first trigger which is not done
301  do {
302  //if called before initialize, choose the last trigger in list
303  unsigned int iTrig = (nullptr != m_chooseRangeRand) ?
304  (unsigned int)(m_chooseRangeRand->fire() * double(m_trigList.todo())) :
305  m_trigList.todo();
307  } while (validTrigger() && m_pCurrentTrigger->done() &&
308  m_trigList.remove(m_pCurrentTrigger)); //remove a done trigger
309 
310  //printouts
311  if (!validTrigger()) {
312  ATH_MSG_INFO ("setCurrentTrigger: end of input");
313  } else {
314  ATH_MSG_DEBUG ("setCurrentTrigger: now using selector "
315  << currentTrigger()->name());
316  }
317 
318  return m_pCurrentTrigger;
319 }

◆ setDataProvider()

StatusCode MixingEventSelector::setDataProvider ( IDataProviderSvc *  pService)
overridevirtual

Definition at line 555 of file MixingEventSelector.cxx.

556 {
557  std::abort();
558 }

◆ setUpTriggerList()

void MixingEventSelector::setUpTriggerList ( Gaudi::Details::PropertyBase &  trigList)

TriggerList property call-back.

Decode TriggerList, obtain selector ptrs and store them alongside fractions in m_trigList

Definition at line 129 of file MixingEventSelector.cxx.

129  {
130  using std::placeholders::_1;
131  m_trigList = TriggerList();
132  for_each(m_triggerListProp.value().begin(), m_triggerListProp.value().end(),
133  bind(&MixingEventSelector::decodeTrigger, this, _1));
135 }

◆ updateAddress()

StatusCode MixingEventSelector::updateAddress ( StoreID::type  storeID,
SG::TransientAddress tad,
const EventContext &  ctx 
)
overridevirtual

Definition at line 284 of file MixingEventSelector.cxx.

285  {
286  return StatusCode::FAILURE;
287 }

◆ updateObj()

StatusCode MixingEventSelector::updateObj ( IOpaqueAddress *  pAddress,
DataObject *  refpObject 
)
overridevirtual

Definition at line 583 of file MixingEventSelector.cxx.

584 {
585  std::abort();
586 }

◆ updateObjRefs()

StatusCode MixingEventSelector::updateObjRefs ( IOpaqueAddress *  pAddress,
DataObject *  pObject 
)
overridevirtual

Definition at line 587 of file MixingEventSelector.cxx.

588 {
589  std::abort();
590 }

◆ updateRep()

StatusCode MixingEventSelector::updateRep ( IOpaqueAddress *  pAddress,
DataObject *  pObject 
)
overridevirtual

Definition at line 599 of file MixingEventSelector.cxx.

600 {
601  std::abort();
602 }

◆ updateRepRefs()

StatusCode MixingEventSelector::updateRepRefs ( IOpaqueAddress *  pAddress,
DataObject *  pObject 
)
overridevirtual

Definition at line 603 of file MixingEventSelector.cxx.

604 {
605  std::abort();
606 }

◆ validTrigger()

bool MixingEventSelector::validTrigger ( ) const
inlineprivate

Definition at line 151 of file MixingEventSelector.h.

151 { return (m_trigList.end()!=m_pCurrentTrigger);}

Member Data Documentation

◆ m_atRndmSvc

ServiceHandle<IAtRndmGenSvc> MixingEventSelector::m_atRndmSvc
private

Definition at line 258 of file MixingEventSelector.h.

◆ m_chooseRangeRand

CLHEP::RandFlat* MixingEventSelector::m_chooseRangeRand
private

Definition at line 260 of file MixingEventSelector.h.

◆ m_eventNumbers

UnsignedLongArrayProperty MixingEventSelector::m_eventNumbers
private

use these as event numbers

Definition at line 157 of file MixingEventSelector.h.

◆ m_eventPos

unsigned long MixingEventSelector::m_eventPos
mutableprivate

the internal event number

Definition at line 254 of file MixingEventSelector.h.

◆ m_helperTools

ToolHandleArray<IAthenaSelectorTool> MixingEventSelector::m_helperTools
private

Definition at line 159 of file MixingEventSelector.h.

◆ m_mergedEventInfoKey

StringProperty MixingEventSelector::m_mergedEventInfoKey
private

SG key of MergedEventInfo.

Definition at line 158 of file MixingEventSelector.h.

◆ m_outputRunNumber

IntegerProperty MixingEventSelector::m_outputRunNumber
private

Definition at line 156 of file MixingEventSelector.h.

◆ m_pCurrentTrigger

TriggerList::iterator MixingEventSelector::m_pCurrentTrigger
mutableprivate

the current trigger

Definition at line 246 of file MixingEventSelector.h.

◆ m_pEventStore

StoreGateSvc_t MixingEventSelector::m_pEventStore
mutableprivate

Definition at line 257 of file MixingEventSelector.h.

◆ m_randomStreamName

StringProperty MixingEventSelector::m_randomStreamName
private

Definition at line 259 of file MixingEventSelector.h.

◆ m_statusFileName

StringProperty MixingEventSelector::m_statusFileName
private

optional stream output snapshot

Definition at line 154 of file MixingEventSelector.h.

◆ m_triggerListProp

StringArrayProperty MixingEventSelector::m_triggerListProp
private

the recipe

Definition at line 155 of file MixingEventSelector.h.

◆ m_trigList

TriggerList MixingEventSelector::m_trigList
mutableprivate

the ingredients

Definition at line 240 of file MixingEventSelector.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
MixingEventSelector::m_pCurrentTrigger
TriggerList::iterator m_pCurrentTrigger
the current trigger
Definition: MixingEventSelector.h:246
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
TileDCSDataPlotter.dp
dp
Definition: TileDCSDataPlotter.py:840
MixingEventSelector::m_trigList
TriggerList m_trigList
the ingredients
Definition: MixingEventSelector.h:240
MixingEventSelector::m_atRndmSvc
ServiceHandle< IAtRndmGenSvc > m_atRndmSvc
Definition: MixingEventSelector.h:258
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
MixingEventSelector::TriggerList::remove
bool remove(iterator)
Definition: MixingEventSelector.cxx:345
SG::TransientAddress
Definition: TransientAddress.h:32
MixingEventSelector::TriggerList::end
iterator end()
Definition: MixingEventSelector.h:231
MixingEventSelector::TriggerList::empty
bool empty() const
Definition: MixingEventSelector.h:234
MixingEventSelector::TriggerList::todo
unsigned int todo() const
Definition: MixingEventSelector.h:236
MixingEventSelector::m_triggerListProp
StringArrayProperty m_triggerListProp
the recipe
Definition: MixingEventSelector.h:155
beamspotman.tokens
tokens
Definition: beamspotman.py:1284
MixingEventSelector::next
virtual StatusCode next(IEvtSelector::Context &refCtxt) const override
Definition: MixingEventSelector.cxx:206
MixingEventSelector::currentTrigger
TriggerList::iterator currentTrigger() const
"intelligent" accessor to the above
Definition: MixingEventSelector.cxx:322
MixingEventSelector::getEventNo
unsigned long getEventNo() const
setup and lookup m_evtsNotUsedSoFar. Returns next event no
Definition: MixingEventSelector.cxx:291
MixingEventSelector::m_eventPos
unsigned long m_eventPos
the internal event number
Definition: MixingEventSelector.h:254
MixingEventSelector::m_outputRunNumber
IntegerProperty m_outputRunNumber
Definition: MixingEventSelector.h:156
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
MixingEventSelector::m_helperTools
ToolHandleArray< IAthenaSelectorTool > m_helperTools
Definition: MixingEventSelector.h:159
MixingEventSelector::TriggerList::elementInRange
iterator elementInRange(unsigned int)
Definition: MixingEventSelector.cxx:392
SG::asStorable
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
Definition: DataObjectSharedPtr.h:65
ClassID_traits::ID
static const CLID & ID()
the CLID of T
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:50
DiTauMassTools::ignore
void ignore(T &&)
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:58
MixingEventSelector::decodeTrigger
void decodeTrigger(std::string triggDescr)
functor that creates a Trigger object and adds it to m_trigList
Definition: MixingEventSelector.cxx:138
MixingEventSelector::TriggerList::iterator
std::vector< Trigger >::iterator iterator
Definition: MixingEventSelector.h:227
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
StoreID::PILEUP_STORE
@ PILEUP_STORE
Definition: StoreID.h:31
lumiFormat.i
int i
Definition: lumiFormat.py:85
CP::DetailSelectionExprParser::Tokenizer
boost::tokenizer< Separator > Tokenizer
Definition: SelectionExprParser.h:34
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
MixingEventSelector::m_eventNumbers
UnsignedLongArrayProperty m_eventNumbers
use these as event numbers
Definition: MixingEventSelector.h:157
FORWARD___DEBUG
#define FORWARD___DEBUG(METHOD)
Definition: MixingEventSelector.cxx:189
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MixingEventSelector::TriggerList::begin
iterator begin()
Definition: MixingEventSelector.h:230
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
MixingEventSelector::setCurrentTrigger
TriggerList::iterator setCurrentTrigger() const
choose current trigger at random. Actually modifies state (use mutables)
Definition: MixingEventSelector.cxx:299
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
python.TriggerAnalysisConfig.Trigger
def Trigger(seq)
Definition: TriggerAnalysisConfig.py:153
MixingEventSelector::m_chooseRangeRand
CLHEP::RandFlat * m_chooseRangeRand
Definition: MixingEventSelector.h:260
MixingEventSelector::m_mergedEventInfoKey
StringProperty m_mergedEventInfoKey
SG key of MergedEventInfo.
Definition: MixingEventSelector.h:158
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
MixingEventSelector::setUpTriggerList
void setUpTriggerList(Gaudi::Details::PropertyBase &trigList)
TriggerList property call-back.
Definition: MixingEventSelector.cxx:129
MixingEventSelector::m_randomStreamName
StringProperty m_randomStreamName
Definition: MixingEventSelector.h:259
EventInfo
This class provides general information about an event. Event information is provided by the accessor...
Definition: EventInfo/EventInfo/EventInfo.h:43
python.AthDsoLogger.fname
string fname
Definition: AthDsoLogger.py:67
MixingEventSelector::TriggerList::add
bool add(const Trigger &)
Definition: MixingEventSelector.cxx:327
MixingEventSelector::TriggerList::const_iterator
std::vector< Trigger >::const_iterator const_iterator
Definition: MixingEventSelector.h:226
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
DEBUG
#define DEBUG
Definition: page_access.h:11
EventID
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
Definition: EventID.h:35
MixingEventSelector::createAddress
virtual StatusCode createAddress(const IEvtSelector::Context &refCtxt, IOpaqueAddress *&) const override
Definition: MixingEventSelector.cxx:244
StoreID::EVENT_STORE
@ EVENT_STORE
Definition: StoreID.h:26
MixingEventSelector::m_statusFileName
StringProperty m_statusFileName
optional stream output snapshot
Definition: MixingEventSelector.h:154
PrepareReferenceFile.outfile
outfile
Definition: PrepareReferenceFile.py:42
Amg::distance
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Definition: GeoPrimitivesHelpers.h:54
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
MixingEventSelector::validTrigger
bool validTrigger() const
Definition: MixingEventSelector.h:151
MixingEventSelector::m_pEventStore
StoreGateSvc_t m_pEventStore
Definition: MixingEventSelector.h:257