--- DarthVader/TrackerLevel2/inc/TrkLevel2.h 2007/05/14 11:03:04 1.25 +++ DarthVader/TrackerLevel2/inc/TrkLevel2.h 2008/01/22 08:55:06 1.34 @@ -17,17 +17,24 @@ // z-coordinate of track state-vector reference-plane #define ZINI 23.5 // (mechanical) z-coordinate of the tracker planes -#define ZTRK6 -22.23 -#define ZTRK5 -13.32 -#define ZTRK4 -4.42 -#define ZTRK3 4.48 -#define ZTRK2 13.38 -#define ZTRK1 22.28 +#define ZTRK6 -22.22 +#define ZTRK5 -13.31 +#define ZTRK4 -4.41 +#define ZTRK3 4.49 +#define ZTRK2 13.39 +#define ZTRK1 22.29 +// magnet cavity dimensions +#define ZMAGNHIGH 21.83 +#define ZMAGNLOW -21.83 +#define XMAGNHIGH 8.07 +#define XMAGNLOW -8.07 +#define YMAGNHIGH 6.57 +#define YMAGNLOW -6.57 // (mechanical) x/y-coordinates of magnet cavity -#define XTRKL -8.1 -#define XTRKR 8.1 -#define YTRKL -6.6 -#define YTRKR 6.6 +/* #define XTRKL -8.1 */ +/* #define XTRKR 8.1 */ +/* #define YTRKL -6.6 */ +/* #define YTRKR 6.6 */ /** * \brief Class to describe, by points, a particle trajectory in the apparatus. @@ -83,15 +90,15 @@ private: +public: + int seqno; /// maximum number (level1 processing) + * |||| |||| |||| |||| ||________ 6 + * |||| |||| |||| |||| |_________ 7 + * |||| |||| |||| ||||___________ 8 n.clusters > maximum value (level2 processing) + * |||| |||| |||| |||____________ 9 n.couples per plane > maximum values (vector dimention) + * |||| |||| |||| ||_____________ 10 n.doublets > maximum values + * |||| |||| |||| |______________ 11 n.triplets > maximum values + * |||| |||| ||||________________ 12 n.yz-clouds > maximum values + * |||| |||| |||_________________ 13 n.xz-clouds > maximum values + * |||| |||| ||__________________ 14 n.candidate-tracks > maximum values + * |||| |||| |___________________ 15 n.couples per plane > maximum values (for Hough transform) + * |||| ||||_____________________ 16 + * + * + * For all data processed before June 2007 the event status was coded according to + * a different rule: + * + * Status of level1 processing + * 0 -- OK + * 1 -- missing packet + * 2 -- 1 CRC error + * 3 -- 2 on-line software alarm (latch-up flags asserted or n.transmitted-words = 0) + * 4 -- 3 jump in the trigger counter + * 10 -- 4 decode error + * 11 -- 5 n.clusters > maximum number (for level1 processing) + * Status of level2 processing + * 21 -- 0 n.clusters > maximum value (for level2 processing) + * 22 -- 1 n.couples per plane > maximum values (vector dimention) + * 23 -- 2 n.doublets > maximum values + * 24 -- 3 n.triplets > maximum values + * 25 -- 4 n.yz-clouds > maximum values + * 26 -- 5 n.xz-clouds > maximum values + * 27 -- 6 n.candidate-tracks > maximum values + * 28 -- 7 n.couples per plane > maximum values (for Hough transform) + * + * */ class TrkLevel2 : public TObject { @@ -264,10 +368,10 @@ float GetBY(float* v){return TrkParams::GetBY(v);};///< By (kGauss) float GetBZ(float* v){return TrkParams::GetBZ(v);};///< Bz (kGauss) Float_t GetZTrk(Int_t); - Float_t GetXTrkLeft(){return XTRKL;}; - Float_t GetXTrkRight(){return XTRKR;}; - Float_t GetYTrkLeft(){return YTRKL;}; - Float_t GetYTrkRight(){return YTRKR;}; + Float_t GetXTrkLeft(){return XMAGNLOW;}; + Float_t GetXTrkRight(){return XMAGNHIGH;}; + Float_t GetYTrkLeft(){return YMAGNLOW;}; + Float_t GetYTrkRight(){return YMAGNHIGH;}; Bool_t IsMaskedVK(int,int); Bool_t GetVKMask(int,int); @@ -289,6 +393,9 @@ TrkLevel2* GetTrkLevel2(){return this;} TClonesArray* GetTrackArray(){return Track;};///< returns pointer to the track array + void StatusDump(int view); + Bool_t StatusCheck(int view, int flagmask); + ClassDef(TrkLevel2,3); };