ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/dhidas/OSUAnalysis/Tools/src/DHRunTracker.cc
Revision: 1.1.1.1 (vendor branch)
Committed: Thu Dec 1 16:28:48 2011 UTC (13 years, 5 months ago) by dhidas
Content type: text/plain
Branch: dhidas, MAIN
CVS Tags: START, HEAD
Changes since 1.1: +0 -0 lines
Log Message:
osu copy modified

File Contents

# User Rev Content
1 dhidas 1.1 #include "../interface/DHRunTracker.h"
2    
3     DHRunTracker::DHRunTracker ()
4     {
5     }
6    
7    
8     DHRunTracker::~DHRunTracker ()
9     {
10     }
11    
12    
13     bool DHRunTracker::IsDuplicate(unsigned int run, unsigned long event)
14     {
15     static std::pair<unsigned int, unsigned long> pair;
16     pair = std::make_pair<unsigned int, unsigned long>(run, event);
17     if (fSet.count(pair)) {
18     return true;
19     }
20    
21     fSet.insert(pair);
22     return false;
23     }
24    
25    
26    
27