00001
00002
00003
00004
00005 #ifndef FTFDEDX
00006 #define FTFDEDX
00007 #include "FtfGeneral.h"
00008 #include "FtfTrack.h"
00009 #include "l3CoordinateTransformer.h"
00010
00011
00012 #define padLengthInnerSector 1.15 // cm
00013 #define padLengthOuterSector 1.95 // cm
00014
00015 struct christofs_2d_vector {
00016 double x;
00017 double y;
00018 };
00019
00020
00021 class FtfDedx {
00022
00023 public:
00024 FtfDedx(l3CoordinateTransformer *trafo, float cutLow = 0, float cutHigh = 0.7,
00025 float driftLoss = 0);
00026 ~FtfDedx () {};
00027
00028 int TruncatedMean(FtfTrack *track);
00029
00030 private:
00031
00032
00033 l3CoordinateTransformer *fCoordTransformer;
00034 double fDedxArray[45];
00035
00036 float fCutLow ;
00037 float fCutHigh ;
00038 short fNTruncate ;
00039 float fDriftLoss ;
00040 struct christofs_2d_vector fUnitVec[24];
00041 };
00042 #endif