ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/csander/HEPTutorial/Event.h
Revision: 1.2
Committed: Fri May 25 09:18:51 2012 UTC (12 years, 11 months ago) by csander
Content type: text/plain
Branch: MAIN
Changes since 1.1: +7 -0 lines
Log Message:
Added event comparison and more plots

File Contents

# User Rev Content
1 csander 1.1 /*
2     * Event.h
3     *
4     * Created on: 23.05.2012
5     * Author: csander
6     */
7    
8     #ifndef EVENT_H_
9     #define EVENT_H_
10    
11     class Event {
12     public:
13     Event();
14     Event(int e, int l, int r) {
15     event = e;
16     lumi = l;
17     run = r;
18     }
19     ;
20     virtual ~Event();
21     int event, lumi, run;
22 csander 1.2
23     bool operator==(const Event& e) const {
24     return (e.event == event) && (e.lumi == lumi) && (e.run == run);
25     }
26     bool operator!=(const Event& e) const {
27     return (e.event != event) || (e.lumi != lumi) || (e.run != run);
28     }
29 csander 1.1 };
30    
31     #endif /* EVENT_H_ */