Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:01

0001 /****************************************************************************
0002  *
0003  * This is a part of CTPPS offline software.
0004  * Authors:
0005  *   Laurent Forthomme (laurent.forthomme@cern.ch)
0006  *   Nicola Minafra (nicola.minafra@cern.ch)
0007  *   Mateusz Szpyrka (mateusz.szpyrka@cern.ch)
0008  *
0009  ****************************************************************************/
0010 
0011 #ifndef DataFormats_CTPPSReco_CTPPSDiamondLocalTrack
0012 #define DataFormats_CTPPSReco_CTPPSDiamondLocalTrack
0013 
0014 #include "DataFormats/Math/interface/Point3D.h"
0015 #include "DataFormats/CTPPSReco/interface/CTPPSTimingLocalTrack.h"
0016 #include "DataFormats/CTPPSReco/interface/CTPPSDiamondRecHit.h"
0017 
0018 //----------------------------------------------------------------------------------------------------
0019 
0020 class CTPPSDiamondLocalTrack : public CTPPSTimingLocalTrack {
0021 public:
0022   CTPPSDiamondLocalTrack();
0023   CTPPSDiamondLocalTrack(
0024       const math::XYZPoint& pos0, const math::XYZPoint& pos0_sigma, float t, float t_sigma, int oot_idx, int mult_hits);
0025 
0026   bool containsHit(const CTPPSDiamondRecHit& recHit, float tolerance = 0.1) const;
0027 
0028   //--- temporal set'ters
0029 
0030   inline void setOOTIndex(int i) { ts_index_ = i; }
0031   inline int ootIndex() const { return ts_index_; }
0032 
0033   inline void setMultipleHits(int i) { mh_ = i; }
0034   inline int multipleHits() const { return mh_; }
0035 
0036 private:
0037   /// Time slice index
0038   int ts_index_;
0039   /// Multiple hits counter
0040   int mh_;
0041 };
0042 
0043 #endif