Crombie Tools
crombie::Lumi::LumiSelection Class Reference

Stores the lumi and run as a map to ranges. More...

#include <Lumi.h>

Public Member Functions

void add (unsigned long run, std::pair< unsigned, unsigned > lumi)
 Add a lumi range to this object. More...
 
void add (unsigned long run, unsigned lumi)
 Add a single run, lumi to this object. More...
 
void add (const LumiSelection &other)
 Merge other LumiSelection objects into this one. More...
 

Private Attributes

std::map< unsigned long, std::list< std::pair< unsigned, unsigned > > > store
 A store that is kept in order and merges lumis in. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const LumiSelection &selection)
 

Detailed Description

Stores the lumi and run as a map to ranges.

Definition at line 19 of file Lumi.h.

Member Function Documentation

§ add() [1/3]

void crombie::Lumi::LumiSelection::add ( unsigned long  run,
std::pair< unsigned, unsigned >  lumi 
)

Add a lumi range to this object.

Definition at line 78 of file Lumi.h.

References oldmaketree::after, Debug::Debug(), and store.

Referenced by add(), crombie::Lumi::Merge(), and crombie::Lumi::SingleRunner().

§ add() [2/3]

void crombie::Lumi::LumiSelection::add ( unsigned long  run,
unsigned  lumi 
)

Add a single run, lumi to this object.

Definition at line 110 of file Lumi.h.

References add().

§ add() [3/3]

void crombie::Lumi::LumiSelection::add ( const LumiSelection other)

Merge other LumiSelection objects into this one.

Definition at line 114 of file Lumi.h.

References add(), and store.

Friends And Related Function Documentation

§ operator<<

std::ostream& operator<< ( std::ostream &  os,
const LumiSelection selection 
)
friend

Definition at line 121 of file Lumi.h.

Member Data Documentation

§ store

std::map<unsigned long, std::list<std::pair<unsigned, unsigned> > > crombie::Lumi::LumiSelection::store
private

A store that is kept in order and merges lumis in.

Definition at line 29 of file Lumi.h.

Referenced by add(), and crombie::Lumi::operator<<().


The documentation for this class was generated from the following file: