ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FastOpenGlDisplayer/interface/SimEvent.h
Revision: 1.8
Committed: Thu May 1 06:52:20 2008 UTC (17 years ago) by querten
Content type: text/plain
Branch: MAIN
CVS Tags: Version_0_26, Version_0_25
Changes since 1.7: +4 -2 lines
Log Message:
Add Some Track Info

File Contents

# Content
1 // SimEvent.h: interface for the SimEvent class.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #ifndef _MYSIMEVENT_H__
6 #define _MYSIMEVENT_H__
7
8 #define _CRT_SECURE_NO_DEPRECATE 1
9
10 #include <iostream>
11 #include <vector>
12 #include "Chunk.h"
13
14 struct MyPSimHit {float x; float y; float z; float dEdX; int ProcessType;};
15 struct MyPCaloHit {float x; float y; float z; float E; int ProcessType;};
16 struct MySimVertex{float x; float y; float z; int parentTrack_id;};
17 struct MySimTrack {int track_id;float Px;float Py; float Pz; float E;int Type;int parent_vertex;float charge;};
18
19 struct MyRecoHit {float x; float y; float z; int DetId; int Charge;};
20 struct MyRecoTrackInfo {char Coll; float P; float Pt;};
21 struct MyRecoTrack {std::vector<MyRecoHit*> Hits; MyRecoTrackInfo* Info;
22 MyRecoTrack() : Info(NULL){} };
23
24 struct MyCaloHit {float E; float t; int DetId;};
25
26 struct MyMuonSegment {int DetId; float PosX; float PosY; float PosZ; float DirX; float DirY; float DirZ;};
27 struct MyMuonHit {int DetId; float x; float y; float z;};
28
29
30 class MySimEvent
31 {
32 public:
33 MySimEvent();
34 virtual ~MySimEvent();
35
36 // int LoadEvent(FILE* f);
37 void LoadEvent(FILE* pFile, stChunk* ParentChunk);
38 void SaveEvent(stChunkToSave* ParentChunk);
39
40 std::vector<MyPSimHit*> MyPSimHitCollection;
41 std::vector<MyPCaloHit*> MyPCaloHitCollection;
42 std::vector<MySimVertex*> MySimVertexCollection;
43 std::vector<MySimTrack*> MySimTrackCollection;
44
45 std::vector<MyRecoTrack*> MyRecoTrackCollection;
46
47 std::vector<MyCaloHit*> MyEcalCaloHitCollection;
48 std::vector<MyCaloHit*> MyHcalCaloHitCollection;
49
50 std::vector<MyMuonSegment*> MyMuonSegmentCollection;
51 std::vector<MyMuonHit*> MyMuonHitCollection;
52 };
53
54 class MySimEvents
55 {
56 public:
57 MySimEvents();
58 virtual ~MySimEvents();
59
60 void Load(const char* path);
61 void Save(const char* path);
62 void NextEvent();
63 void PreviousEvent();
64 void GoToEvent(unsigned int i);
65 MySimEvent* GetEvent();
66
67 std::vector<MySimEvent*> Events;
68 int Current_Event;
69 };
70
71 #endif