ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FastOpenGlDisplayer/interface/SimEvent.h
Revision: 1.2
Committed: Sat Mar 15 17:02:20 2008 UTC (17 years, 2 months ago) by querten
Content type: text/plain
Branch: MAIN
Changes since 1.1: +10 -22 lines
Log Message:
Upgrade in the .Vis Format

File Contents

# User Rev Content
1 querten 1.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
9    
10     #include <vector>
11 querten 1.2 #include "Chunk.h"
12 querten 1.1
13     struct MyPSimHit {float x; float y; float z; float dEdX; int ProcessType;};
14     struct MyPCaloHit {float x; float y; float z; float E; int ProcessType;};
15     struct MySimVertex{float x; float y; float z; int parentTrack_id;};
16     struct MySimTrack {int track_id;float Px;float Py; float Pz; float E;int Type;int parent_vertex;float charge;};
17    
18     struct MyRecoHit {float x; float y; float z; int DetId; int Charge;};
19 querten 1.2 struct MyRecoTrack {std::vector<MyRecoHit> Hits;};
20 querten 1.1
21    
22     class MySimEvent
23     {
24     public:
25     MySimEvent();
26     virtual ~MySimEvent();
27    
28 querten 1.2 // int LoadEvent(FILE* f);
29     void LoadEvent(FILE* pFile, stChunk* ParentChunk);
30     void SaveEvent(stChunkToSave* ParentChunk);
31 querten 1.1
32 querten 1.2 // int LoadChunk (FILE* f, stChunk* chunk);
33     // int Chunk_size();
34 querten 1.1
35 querten 1.2 // void ReadChunk (FILE* pFile, stChunk* pChunk);
36     // void WriteChunk(FILE* pFile, stChunkToSave* pChunk);
37 querten 1.1
38     std::vector<MyPSimHit> MyPSimHitCollection;
39     std::vector<MyPCaloHit> MyPCaloHitCollection;
40     std::vector<MySimVertex> MySimVertexCollection;
41     std::vector<MySimTrack> MySimTrackCollection;
42    
43 querten 1.2 std::vector<MyRecoTrack> MyRecoTrackCollection;
44 querten 1.1 };
45    
46     class MySimEvents
47     {
48     public:
49     MySimEvents();
50     virtual ~MySimEvents();
51    
52     void Load(char* path);
53     void Save(char* path);
54     void NextEvent();
55     void PreviousEvent();
56     MySimEvent* GetEvent();
57    
58     std::vector<MySimEvent*> Events;
59     int Current_Event;
60     };
61    
62     #endif