CEDRIC  Revision_backup-2009-02
EventInfo.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright (C) 2008 Boris Iven, Max Hermann
4  *
5  * This file is part of the "CEDRIC Event Display" application.
6  *
7  *****************************************************************************/
8 
9 #ifndef EVENTINFO_H_
10 #define EVENTINFO_H_
11 
12 #include <vector>
13 #include <string>
14 
15 class PaEvent;
16 
22 struct EventInfo
23 {
24  EventInfo( int idx_ );
25  EventInfo( int idx_, const PaEvent& e );
26  EventInfo( int idx_, int run_, int spill_, int event_ );
27 
28  void makeStrings();
29 
30  int idx;
31  int run;
32  int spill;
33  int event;
34 
39  int NParticle;
40  int NTrack;
41  int NVertex;
42  int NCaloClus;
43 
44  int TrigMask;
48 
50 
51  std::string s_idx;
52  std::string s_run;
53  std::string s_spill;
54  std::string s_event;
56 
57  bool valid;
58 };
59 
60 typedef std::vector<EventInfo> EventList;
61 typedef std::vector<EventInfo>::const_iterator EventListIterator;
62 
63 #endif /*EVENTINFO_H_*/
std::string s_event
Definition: EventInfo.h:54
bool OnlFltMonitor
Definition: EventInfo.h:46
int idx
index of PaEvent in event tree
Definition: EventInfo.h:30
int NVertex
Definition: EventInfo.h:41
void makeStrings()
Definition: EventInfo.cpp:57
std::vector< EventInfo > EventList
Definition: EventInfo.h:60
bool OnlFltAccepted
Definition: EventInfo.h:45
int NParticle
Definition: EventInfo.h:39
bool valid
true when members are initialized explicitly, false if only idx is set
Definition: EventInfo.h:57
int event
event number in spill
Definition: EventInfo.h:33
int NCaloClus
Definition: EventInfo.h:42
General Infos about an Event.
Definition: EventInfo.h:22
int run
run number
Definition: EventInfo.h:31
std::string s_idx
Definition: EventInfo.h:51
std::string s_spill
Definition: EventInfo.h:53
int spill
burst number
Definition: EventInfo.h:32
int TrigMask
Definition: EventInfo.h:44
std::string s_run
Definition: EventInfo.h:52
int NTrack
Definition: EventInfo.h:40
std::vector< EventInfo >::const_iterator EventListIterator
Definition: EventInfo.h:61
EventInfo(int idx_)
Definition: EventInfo.cpp:21