29#define CBMSTSSENSOR_H 1
#define ClassDef(name, id)
Double_t fBackLorentzShift
Double_t GetStereoF() const
Double_t GetSigmaXY() const
Float_t GetChannelPlus(Double_t x, Double_t y, Int_t iSide)
Int_t fNChannelsFront
Number of channels in front and back plane.
Int_t GetSystemId() const
Double_t GetSigmaY() const
Double_t GetRotation() const
Int_t GetNChannelsFront() const
Float_t fSigmaX
Errors of hit coordinates.
Int_t IntersectClusters(Double_t fChan, Double_t bChan, Double_t &xCross, Double_t &yCross, Double_t &zCross)
std::set< Int_t > fBackActive
Double_t GetFrontStripShift() const
CbmStsSensor(Int_t detId, Int_t iType, Double_t x0, Double_t y0, Double_t rotation, Double_t lx, Double_t ly, Double_t dx, Double_t dy, Double_t stereoF, Double_t stereoB)
Standard constructor.
Int_t FrontStripNumber(Double_t x, Double_t y) const
----------— Private methods ---------------------—
Int_t GetDetectorId() const
CbmStsSensor()
Default constructor.
Int_t Intersect(Int_t iFStrip, Int_t iBStrip, Double_t &xCross, Double_t &yCross, Double_t &zCross)
TString GetDetectorName() const
Accessors.
Double_t GetBackStripShift() const
Double_t fFrontStripShift
Int_t GetNChannelsBack() const
Int_t Intersect(Int_t iFStrip, Int_t iBStrip, std::vector< Double_t > &xCross, std::vector< Double_t > &yCross)
Calculates the coordinates of the intersections of front strip i with back strip j in the global coor...
Bool_t Inside(Double_t x, Double_t y)
Test whether a coordinate pair (x,y) in global coordinates is inside the sensor.
Int_t GetFrontChannel(Double_t x, Double_t y, Double_t z, Double_t &dPitch)
Int_t GetNChannels() const
Int_t GetBackChannel(Double_t x, Double_t y, Double_t z, Double_t &dPitch)
Bool_t ActivateChannels(Int_t ipt, Double_t x, Double_t y)
Activate the channels corresponding to a MCPoint.
Bool_t IntCoord(Double_t x, Double_t y, Double_t z, Double_t &xint, Double_t &yint, Double_t &zint) const
Int_t PointIndex(Int_t iFStrip, Int_t iBStrip)
The index of the MCPoint that has caused a combination of front and back strip to be fired.
std::set< Int_t > fFrontActive
STL sets containing the active channels.
Bool_t IsInside(Double_t xint, Double_t yint) const
Check whether a point is inside the sensor.
Int_t GetSectorNr() const
void Print()
Screen output.
void Reset()
Clear the maps of fired strips.
CbmStsSensor(TString tempName, Int_t detId, Int_t iType, Double_t x0, Double_t y0, Double_t z0, Double_t rotation, Double_t lx, Double_t ly, Double_t d, Double_t dx, Double_t dy, Double_t stereoF, Double_t stereoB)
Double_t GetSigmaX() const
Int_t BackStripNumber(Double_t x, Double_t y) const
Strip number of a point in the back plane.
Int_t fDetectorId
----------— Data members -----------------------—
Int_t GetStationNr() const
Double_t fFrontLorentzShift
Int_t GetChannel(Double_t x, Double_t y, Int_t iSide)
Calculate channel number for a coordinate pair.
Bool_t IntCoord(Double_t x, Double_t y, Double_t &xint, Double_t &yint) const
Calculate coordinates in internal coordinate system.
Double_t GetStereoB() const
std::map< std::pair< Int_t, Int_t >, Int_t > fTrueHits
STL map from the indizes of the fired strips to the index of the MCPoint.
Int_t GetSensorNr() const
virtual ~CbmStsSensor()
Destructor.