ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataCont/interface/RunLumiRangeMap.h
(Generate patch)

Comparing UserCode/MitAna/DataCont/interface/RunLumiRangeMap.h (file contents):
Revision 1.1 by bendavid, Sat May 29 18:10:14 2010 UTC vs.
Revision 1.2 by bendavid, Tue Jun 29 15:51:53 2010 UTC

# Line 5 | Line 5
5   //
6   // Stores a list of map of run numbers to lists of lumi section ranges
7   //
8 < // Authors: C.Loizides
8 > // Authors: J.Bendavid
9   //--------------------------------------------------------------------------------------------------
10  
11   #ifndef MITANA_DATACONT_RUNLUMIRANGEMAP_H
# Line 15 | Line 15
15   #include <vector>
16   #include <map>
17   #include <TObject.h>
18 + #include "MitAna/DataCont/interface/RunLumiSet.h"
19  
20   namespace mithep
21   {
# Line 25 | Line 26 | namespace mithep
26        typedef std::map<UInt_t,std::vector<RunLumiPairType> > MapType;
27        
28        RunLumiRangeMap() {}
29 +      RunLumiRangeMap(const RunLumiSet &rlset) { FillRunLumiSet(rlset); }
30  
31        void                         AddJSONFile(const std::string &filepath);
32        void                         DumpJSONFile(const std::string &filepath);
33        Bool_t                       HasRunLumi(const RunLumiPairType &runLumi) const;
34  
35      protected:
36 +      void                         FillRunLumiSet(const RunLumiSet &rlSet);
37 +
38        MapType                      fMap; //mapped run-lumi ranges to accept
39  
40      ClassDef(RunLumiRangeMap, 1) // Base class of all our collections

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines