7 #include "StMuArrays.h"
13 const char* StMuArrays::arrayNames [__NALLARRAYS__ ] = {
"MuEvent",
"PrimaryVertices",
14 "PrimaryTracks",
"GlobalTracks",
"OtherTracks",
"L3Tracks",
15 "RichSpectra",
"DetectorStates",
"L3AlgoAccept",
"L3AlgoReject",
16 "CovGlobTrack",
"CovPrimTrack",
"pp2pp",
"mtd",
17 #ifndef __NO_STRANGE_MUDST__
19 "V0",
"McV0",
"V0Assoc",
20 "Xi",
"McXi",
"XiAssoc",
21 "Kink",
"McKink",
"KinkAssoc",
24 "StMuMcVertex",
"StMuMcTrack",
28 "EEmcPrs",
"EEmcSmdu",
"EEmcSmdv",
29 "PmdHit",
"CpvHit",
"PmdCluster",
"CpvCluster",
30 "FmsHit",
"FmsCluster",
"FmsPoint",
"FmsInfo",
31 "RHICfRawHit",
"RHICfHit",
"RHICfPoint",
32 "FcsHit",
"FcsCluster",
"FcsPoint",
"FcsInfo",
33 "FttRawHit",
"FttCluster",
"FttPoint",
34 "FstRawHit",
"FstHit",
36 "TofHit",
"TofData",
"TofRawData",
37 "BTofHit",
"BTofRawHit",
"BTofHeader",
38 "ETofDigi",
"ETofHit",
"ETofHeader",
40 "MTDHit",
"MTDRawHit",
"MTDHeader",
41 "FgtStrip",
"FgtCluster",
"FgtStripAssociation",
"FgtAdc",
42 "EztHead",
"EztTrig",
"EztETow",
"EztESmd",
"EztFpd"};
44 #ifndef __NO_STRANGE_MUDST__
45 const char** StMuArrays::strangeArrayNames = StMuArrays::arrayNames +__NARRAYS__;
46 const char** StMuArrays::mcArrayNames = StMuArrays::strangeArrayNames +__NSTRANGEARRAYS__;
48 const char** StMuArrays::mcArrayNames = StMuArrays::arrayNames +__NARRAYS__;
50 const char** StMuArrays::emcArrayNames = StMuArrays::mcArrayNames +__NMCARRAYS__;
51 const char** StMuArrays::pmdArrayNames = StMuArrays::emcArrayNames +__NEMCARRAYS__;
52 const char** StMuArrays::fmsArrayNames = StMuArrays::pmdArrayNames +__NPMDARRAYS__;
53 const char** StMuArrays::rhicfArrayNames = StMuArrays::fmsArrayNames +__NFMSARRAYS__;
54 const char** StMuArrays::fcsArrayNames = StMuArrays::rhicfArrayNames +__NRHICFARRAYS__;
55 const char** StMuArrays::fttArrayNames = StMuArrays::fcsArrayNames +__NFCSARRAYS__;
56 const char** StMuArrays::fstArrayNames = StMuArrays::fttArrayNames +__NFTTARRAYS__;
57 const char** StMuArrays::fwdTrackArrayNames = StMuArrays::fstArrayNames +__NFSTARRAYS__;
58 const char** StMuArrays::tofArrayNames = StMuArrays::fwdTrackArrayNames +__NFWDTRACKARRAYS__;
59 const char** StMuArrays::btofArrayNames = StMuArrays::tofArrayNames +__NTOFARRAYS__;
60 const char** StMuArrays::etofArrayNames = StMuArrays::btofArrayNames +__NBTOFARRAYS__;
61 const char** StMuArrays::epdArrayNames = StMuArrays::etofArrayNames +__NETOFARRAYS__;
62 const char** StMuArrays::mtdArrayNames = StMuArrays::epdArrayNames +__NEPDARRAYS__;
63 const char** StMuArrays::fgtArrayNames = StMuArrays::mtdArrayNames +__NMTDARRAYS__;
64 const char** StMuArrays::eztArrayNames = StMuArrays::fgtArrayNames +__NFGTARRAYS__;
70 "StMuTrack",
"StMuTrack",
"StMuTrack",
"StMuTrack",
71 "StRichSpectra",
"StDetectorState",
"StL3AlgorithmInfo",
"StL3AlgorithmInfo",
72 "StDcaGeometry",
"StMuPrimaryTrackCovariance",
"StMuRpsCollection",
"StMuMtdCollection",
73 #ifndef __NO_STRANGE_MUDST__
74 "StStrangeEvMuDst",
"StStrangeEvMuDst",
75 "StV0MuDst",
"StV0Mc",
"StStrangeAssoc",
76 "StXiMuDst",
"StXiMc",
"StStrangeAssoc",
77 "StKinkMuDst",
"StKinkMc",
"StStrangeAssoc",
80 "StMuMcVertex",
"StMuMcTrack",
81 "StMuEmcTowerData",
"StMuEmcHit",
82 "StMuEmcHit",
"StMuEmcHit",
"StMuEmcHit",
"StMuEmcHit",
"StMuEmcHit",
83 "StMuPmdHit",
"StMuPmdHit",
"StMuPmdCluster",
"StMuPmdCluster",
84 "StMuFmsHit",
"StMuFmsCluster",
"StMuFmsPoint",
"StMuFmsInfo",
85 "StMuRHICfRawHit",
"StMuRHICfHit",
"StMuRHICfPoint",
86 "StMuFcsHit",
"StMuFcsCluster",
"StMuFcsPoint",
"StMuFcsInfo",
87 "StMuFttRawHit",
"StMuFttCluster",
"StMuFttPoint",
88 "StMuFstRawHit",
"StMuFstHit",
90 "StMuTofHit",
"StTofData",
"StTofRawData",
91 "StMuBTofHit",
"StBTofRawHit",
"StBTofHeader",
92 "StMuETofDigi",
"StMuETofHit",
"StMuETofHeader",
94 "StMuMtdHit",
"StMuMtdRawHit",
"StMuMtdHeader",
95 "StMuFgtStrip",
"StMuFgtCluster",
"StMuFgtStripAssociation",
"StMuFgtAdc",
96 "EztEventHeader",
"EztTrigBlob",
"EztEmcRawData",
"EztEmcRawData",
"EztFpdBlob"};
97 #ifndef __NO_STRANGE_MUDST__
99 const char** StMuArrays::mcArrayTypes = StMuArrays::strangeArrayTypes +__NSTRANGEARRAYS__;
103 const char** StMuArrays::emcArrayTypes = StMuArrays::mcArrayTypes +__NMCARRAYS__;
104 const char** StMuArrays::pmdArrayTypes = StMuArrays::emcArrayTypes +__NEMCARRAYS__;
105 const char** StMuArrays::fmsArrayTypes = StMuArrays::pmdArrayTypes +__NPMDARRAYS__;
106 const char** StMuArrays::rhicfArrayTypes = StMuArrays::fmsArrayTypes +__NFMSARRAYS__;
107 const char** StMuArrays::fcsArrayTypes = StMuArrays::rhicfArrayTypes +__NRHICFARRAYS__;
108 const char** StMuArrays::fttArrayTypes = StMuArrays::fcsArrayTypes +__NFCSARRAYS__;
109 const char** StMuArrays::fstArrayTypes = StMuArrays::fttArrayTypes +__NFTTARRAYS__;
110 const char** StMuArrays::fwdTrackArrayTypes = StMuArrays::fstArrayTypes +__NFSTARRAYS__;
111 const char** StMuArrays::tofArrayTypes = StMuArrays::fwdTrackArrayTypes +__NFWDTRACKARRAYS__;
112 const char** StMuArrays::btofArrayTypes = StMuArrays::tofArrayTypes +__NTOFARRAYS__;
113 const char** StMuArrays::etofArrayTypes = StMuArrays::btofArrayTypes +__NBTOFARRAYS__;
114 const char** StMuArrays::epdArrayTypes = StMuArrays::etofArrayTypes +__NETOFARRAYS__;
115 const char** StMuArrays::mtdArrayTypes = StMuArrays::epdArrayTypes +__NEPDARRAYS__;
116 const char** StMuArrays::fgtArrayTypes = StMuArrays::mtdArrayTypes +__NMTDARRAYS__;
117 const char** StMuArrays::eztArrayTypes = StMuArrays::fgtArrayTypes +__NFGTARRAYS__;
124 int StMuArrays::arraySizes [__NALLARRAYS__ ] = {1,10,1000,1000,1000,1000,100,100,100,100, 1000,1000,1,1,
125 #ifndef __NO_STRANGE_MUDST__
126 1,1,1000,100,100,1000,100,100,1000,100,100,200,
129 1,1000,1000,1000,1000,1000,1000,
144 #ifndef __NO_STRANGE_MUDST__
146 int* StMuArrays::mcArraySizes = StMuArrays::strangeArraySizes +__NSTRANGEARRAYS__;
150 int* StMuArrays::emcArraySizes = StMuArrays::mcArraySizes +__NMCARRAYS__;
151 int* StMuArrays::pmdArraySizes = StMuArrays::emcArraySizes +__NEMCARRAYS__;
152 int* StMuArrays::fmsArraySizes = StMuArrays::pmdArraySizes +__NPMDARRAYS__;
153 int* StMuArrays::rhicfArraySizes = StMuArrays::fmsArraySizes +__NFMSARRAYS__;
154 int* StMuArrays::fcsArraySizes = StMuArrays::rhicfArraySizes +__NRHICFARRAYS__;
155 int* StMuArrays::fttArraySizes = StMuArrays::fcsArraySizes +__NFCSARRAYS__;
156 int* StMuArrays::fstArraySizes = StMuArrays::fttArraySizes +__NFTTARRAYS__;
157 int* StMuArrays::fwdTrackArraySizes = StMuArrays::fstArraySizes +__NFSTARRAYS__;
158 int* StMuArrays::tofArraySizes = StMuArrays::fwdTrackArraySizes +__NFWDTRACKARRAYS__;
159 int* StMuArrays::btofArraySizes = StMuArrays::tofArraySizes +__NTOFARRAYS__;
160 int* StMuArrays::etofArraySizes = StMuArrays::btofArraySizes +__NBTOFARRAYS__;
161 int* StMuArrays::epdArraySizes = StMuArrays::etofArraySizes +__NETOFARRAYS__;
162 int* StMuArrays::mtdArraySizes = StMuArrays::epdArraySizes +__NEPDARRAYS__;
163 int* StMuArrays::fgtArraySizes = StMuArrays::mtdArraySizes +__NMTDARRAYS__;
164 int* StMuArrays::eztArraySizes = StMuArrays::fgtArraySizes +__NFGTARRAYS__;
168 int StMuArrays::arrayCounters [__NALLARRAYS__ ] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,
169 #ifndef __NO_STRANGE_MUDST__
170 0,0,0,0,0,0,0,0,0,0,0,0,
190 #ifndef __NO_STRANGE_MUDST__
192 int* StMuArrays::mcArrayCounters = StMuArrays::strangeArrayCounters + __NSTRANGEARRAYS__;
196 int* StMuArrays::emcArrayCounters = StMuArrays::mcArrayCounters +__NMCARRAYS__;
197 int* StMuArrays::pmdArrayCounters = StMuArrays::emcArrayCounters +__NEMCARRAYS__;
198 int* StMuArrays::fmsArrayCounters = StMuArrays::pmdArrayCounters +__NPMDARRAYS__;
199 int* StMuArrays::rhicfArrayCounters = StMuArrays::fmsArrayCounters +__NFMSARRAYS__;
200 int* StMuArrays::fcsArrayCounters = StMuArrays::rhicfArrayCounters +__NRHICFARRAYS__;
201 int* StMuArrays::fttArrayCounters = StMuArrays::fcsArrayCounters +__NFCSARRAYS__;
202 int* StMuArrays::fstArrayCounters = StMuArrays::fttArrayCounters +__NFTTARRAYS__;
203 int* StMuArrays::fwdTrackArrayCounters = StMuArrays::fstArrayCounters +__NFSTARRAYS__;
204 int* StMuArrays::tofArrayCounters = StMuArrays::fwdTrackArrayCounters +__NFWDTRACKARRAYS__;
205 int* StMuArrays::btofArrayCounters = StMuArrays::tofArrayCounters +__NTOFARRAYS__;
206 int* StMuArrays::etofArrayCounters = StMuArrays::btofArrayCounters +__NBTOFARRAYS__;
207 int* StMuArrays::epdArrayCounters = StMuArrays::etofArrayCounters +__NETOFARRAYS__;
208 int* StMuArrays::mtdArrayCounters = StMuArrays::epdArrayCounters +__NEPDARRAYS__;
209 int* StMuArrays::fgtArrayCounters = StMuArrays::mtdArrayCounters +__NMTDARRAYS__;
210 int* StMuArrays::eztArrayCounters = StMuArrays::fgtArrayCounters +__NFGTARRAYS__;
215 #ifndef __NO_STRANGE_MUDST__
216 int i = strangeArrayNames-arrayNames-__NARRAYS__;
217 printf(
"strangeArrayNames-arrayNames-__NARRAYS__ = %d\n",i);
219 int i = mcArrayNames-arrayNames-__NARRAYS__;
220 printf(
"mcArrayNames-arrayNames-__NARRAYS__ = %d\n",i);
StMuArrays()
names of the TBranches in the TTree/File
static const char * arrayTypes[__NALLARRAYS__]
< names of the classes, the TClonesArrays are arrays of this type
static int arrayCounters[__NALLARRAYS__]
< number of entries in current event, currently not used
static int arraySizes[__NALLARRAYS__]
< maximum sizes of the TClonesArrays