|
CbmRoot
|
#include <LitHitDataMuon.h>
Public Member Functions | |
| LitHitDataMuon () | |
| Constructor. | |
| virtual | ~LitHitDataMuon () |
| Destructor. | |
| void | SetDetectorLayout (const LitDetectorLayoutMuon< T > &layout) |
| Set detector layout for which hits are arranged. | |
| void | AddHit (int stationGroup, int station, int substation, LitScalPixelHit *hit) |
| Add hit using station group, station and substation indices. | |
| void | AddHit (unsigned char planeId, LitScalPixelHit *hit) |
| Add hit using absolute detector plane (substation) index in the detector. | |
| const LitScalPixelHit * | GetHit (int stationGroup, int station, int substation, int hitId) const |
| Return hit using station group, station and substation indices. | |
| const std::vector< LitScalPixelHit * > & | GetHits (int stationGroup, int station, int substation) |
| Return hit vector using station group, station and substation indices. | |
| unsigned int | GetNofHits (int stationGroup, int station, int substation) const |
| Return number of hits for the specified substation. | |
| fscal | GetMaxErr (int stationGroup, int station, int substation) const |
| Return maximum hit error in [cm] for the specified substation. | |
| void | Clear () |
| Clear hit arrays. | |
| void | SortHits () |
| Sort hits in each substation by X coordinate. | |
| std::string | ToString () const |
| Return std::string representation for the class. | |
| void | StationByPlaneId (unsigned char planeId, unsigned char &stationGroup, unsigned char &station, unsigned char &substation) const |
| Calculate station group, station and substation indices using the detector plane number. | |
Public Attributes | |
| std::vector< std::vector< std::vector< PixelHitArray > > > | fHits |
| std::vector< std::vector< std::vector< fscal > > > | fMaxErr |
| LitDetectorLayoutMuon< T > | fLayout |
Friends | |
| std::ostream & | operator<< (std::ostream &strm, const LitHitDataMuon &hitData) |
| Operator << for convenient output to std::ostream. | |
Definition at line 34 of file LitHitDataMuon.h.
|
inline |
Constructor.
Definition at line 39 of file LitHitDataMuon.h.
References fHits, fLayout, and fMaxErr.
Referenced by operator<<.
|
inlinevirtual |
Destructor.
Definition at line 44 of file LitHitDataMuon.h.
|
inline |
Add hit using station group, station and substation indices.
| [in] | stationGroup | Index of the station group in the detector. |
| [in] | station | Index of the station in the station group. |
| [in] | substation | Index of the substation in the station. |
| [in] | hit | Pointer to the hit to be added. |
Definition at line 78 of file LitHitDataMuon.h.
References lit::parallel::LitScalPixelHit::Dx, fHits, and fMaxErr.
Referenced by AddHit().
|
inline |
Add hit using absolute detector plane (substation) index in the detector.
| [in] | planeId | Index of the detector plane (substation) in the detector. |
| [in] | hit | Pointer to the hit to be added. |
Definition at line 91 of file LitHitDataMuon.h.
References AddHit(), and StationByPlaneId().
|
inline |
|
inline |
Return hit using station group, station and substation indices.
| [in] | stationGroup | Index of the station group in the detector. |
| [in] | station | Index of the station in the station group. |
| [in] | substation | Index of the substation in the station. |
| [in] | hitId | Hit index in the array of hits for the specified substation. |
Definition at line 108 of file LitHitDataMuon.h.
References fHits.
|
inline |
Return hit vector using station group, station and substation indices.
| [in] | stationGroup | Index of the station group in the detector. |
| [in] | station | Index of the station in the station group. |
| [in] | substation | Index of the substation in the station. |
Definition at line 120 of file LitHitDataMuon.h.
References fHits.
|
inline |
Return maximum hit error in [cm] for the specified substation.
| [in] | stationGroup | Index of the station group in the detector. |
| [in] | station | Index of the station in the station group. |
| [in] | substation | Index of the substation in the station. |
Definition at line 144 of file LitHitDataMuon.h.
References fMaxErr.
Referenced by ToString().
|
inline |
Return number of hits for the specified substation.
| [in] | stationGroup | Index of the station group in the detector. |
| [in] | station | Index of the station in the station group. |
| [in] | substation | Index of the substation in the station. |
Definition at line 132 of file LitHitDataMuon.h.
References fHits.
Referenced by ToString().
|
inline |
Set detector layout for which hits are arranged.
| [in] | layout | Detector layout. |
Definition at line 50 of file LitHitDataMuon.h.
References fHits, fLayout, fMaxErr, lit::parallel::LitDetectorLayoutMuon< T >::GetNofStationGroups(), lit::parallel::LitDetectorLayoutMuon< T >::GetNofStations(), and lit::parallel::LitDetectorLayoutMuon< T >::GetNofSubstations().
|
inline |
Sort hits in each substation by X coordinate.
Definition at line 168 of file LitHitDataMuon.h.
|
inline |
Calculate station group, station and substation indices using the detector plane number.
| [in] | planeId | Detector plane index. |
| [out] | stationGroup | Index of the station group in the detector. |
| [out] | station | Index of the station in the station group. |
| [out] | subsattion | Index of the substation in the station. |
Definition at line 224 of file LitHitDataMuon.h.
References counter, and fLayout.
Referenced by AddHit().
|
inline |
Return std::string representation for the class.
Definition at line 189 of file LitHitDataMuon.h.
References fLayout, GetMaxErr(), GetNofHits(), and lit::parallel::ToString().
Referenced by operator<<.
|
friend |
Operator << for convenient output to std::ostream.
Definition at line 210 of file LitHitDataMuon.h.
References LitHitDataMuon(), and ToString().
| std::vector<std::vector<std::vector<PixelHitArray> > > lit::parallel::LitHitDataMuon< T >::fHits |
Definition at line 242 of file LitHitDataMuon.h.
Referenced by AddHit(), Clear(), GetHit(), GetHits(), GetNofHits(), LitHitDataMuon(), SetDetectorLayout(), and SortHits().
| LitDetectorLayoutMuon<T> lit::parallel::LitHitDataMuon< T >::fLayout |
Definition at line 246 of file LitHitDataMuon.h.
Referenced by LitHitDataMuon(), SetDetectorLayout(), SortHits(), StationByPlaneId(), and ToString().
| std::vector<std::vector<std::vector<fscal> > > lit::parallel::LitHitDataMuon< T >::fMaxErr |
Definition at line 244 of file LitHitDataMuon.h.
Referenced by AddHit(), Clear(), GetMaxErr(), LitHitDataMuon(), and SetDetectorLayout().