ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FastOpenGlDisplayer/interface/Chunk.h
Revision: 1.1
Committed: Sat Mar 15 17:03:05 2008 UTC (17 years, 2 months ago) by querten
Content type: text/plain
Branch: MAIN
Log Message:
Upgrade in the .Vis Format

File Contents

# Content
1 // Chunk.h: Contains everything related to chunk.
2 // Structure declaration
3 // List of Chunk ID
4 // ...
5 //
6 //////////////////////////////////////////////////////////////////////
7
8 #ifndef _CHUNK_H__
9 #define _CHUNK_H__
10
11 #define _CRT_SECURE_NO_DEPRECATE
12
13 #include <stdio.h>
14 #include <vector>
15
16 struct stChunk{ unsigned short type;
17 unsigned int size;
18 unsigned int read; };
19
20 struct stChunkToSave{ unsigned short type;
21 unsigned int size;
22 void* data;
23 void* buffer;
24 std::vector<stChunkToSave*> daughters; };
25
26
27 #define C_PRIMARY 55555 // Primary ChunkId
28 // Other Chunks are daughters of
29 // this PrimaryChunk
30
31 #define C_EVENT 10000 // Contains Chunks related to the Event
32 // [10000,19999] is reserved for Event data
33
34 #define C_SIM 11000 // Contains Chunks related to Simulation
35 // [11000,11999] is reserved for Simulation data
36 #define C_SIM_TRACKHIT 11010 // Contains PSimHits
37 #define C_SIM_CALOHIT 11020 // Contains PCaloHits
38 #define C_SIM_VERTEX 11030 // Contains SimVertex
39 #define C_SIM_TRACK 11040 // Contains SimTracks
40
41 #define C_RECO 12000 // Contains Chunks related to Reconstruction
42 // [12000,12999] is reserved for Reconstruction data
43 #define C_RECO_TRACK 12110 // Contains RecoTracks
44 #define C_RECO_TRACKHITS 12111 // Contains RecHits
45
46 #define C_GEOMETRY 20000 // Contains Chunks related to the Geometry
47 // [20000,29999] is reserved for geometry
48
49
50
51 void ReadChunk (FILE* pFile, stChunk* pChunk);
52 void WriteChunk(FILE* pFile, stChunkToSave* pChunk);
53
54
55 #endif