CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTTSPhi.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
10 //
11 //--------------------------------------------------
12 #ifndef DT_TS_PHI_H
13 #define DT_TS_PHI_H
14 
15 //-------------------
16 // Constants file --
17 //-------------------
18 
19 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
22 class DTTracoCard;
23 class DTTracoTrigData;
24 class DTTSS;
25 class DTTSM;
26 class DTSectColl;
27 class DTTSCand;
28 class DTTrigGeom;
29 
30 //----------------------
31 // Base Class Headers --
32 //----------------------
38 
40 
41 //---------------
42 // C++ Headers --
43 //---------------
44 #include <vector>
45 
46 // ---------------------
47 // -- Class Interface --
48 // ---------------------
49 
50 typedef std::vector<DTChambPhSegm> DTChambPhVector;
52 
53 class DTTSPhi : public DTTSPhiManager, public DTGeomSupplier {
54 
55  public:
56 
59 
61  ~DTTSPhi();
62 
64  inline const DTConfigTSPhi* config() const {return _config; }
65 
67  void setConfig(const DTConfigManager *conf);
68 
70  int nSegm(int step);
71 
73  const DTChambPhSegm* segment(int step, unsigned n);
74 
76  LocalPoint localPosition(const DTTrigData*) const;
77 
80 
82  virtual void reconstruct() { loadTSPhi(); runTSPhi(); }
83 
84  private:
85 
87  void loadTSPhi();
88 
90  void runTSPhi();
91 
93  void addTracoT(int step, const DTTracoTrigData* tracotrig, int ifs);
94 
96  void ignoreSecondTrack(int step, int tracon);
97 
99  void localClear();
100 
101  // Return a DTTSS
102  DTTSS* getDTTSS(int step, unsigned n) const;
103 
104  // SM double TSM
105  // Return a DTTSM
106  DTTSM* getDTTSM(int step, unsigned n) const;
107 
108 
109 
110  private:
111 
113 
115 
116  // Components
118  // DBSM-doubleTSM
120 
121  // Input data
123 
124 };
125 
126 #endif
DTCache< DTChambPhSegm, DTChambPhVector > DTTSPhiManager
Definition: DTTSPhi.h:51
int nSegm(int step)
Return number of DTTSPhi segments.
Definition: DTTSPhi.cc:500
std::vector< DTTSM * > _tsm[DTConfigTSPhi::NSTEPL-DTConfigTSPhi::NSTEPF+1]
Definition: DTTSPhi.h:119
void runTSPhi()
run DTTSPhi algorithm (DTTSS+DTTSM)
Definition: DTTSPhi.cc:235
void loadTSPhi()
store DTTracoChip triggers in the DTTSS&#39;s
Definition: DTTSPhi.cc:150
static const int NSTEPF
Definition: DTConfig.h:36
LocalPoint localPosition(const DTTrigData *) const
Local position in chamber of a trigger-data object.
Definition: DTTSPhi.cc:520
~DTTSPhi()
Destructor.
Definition: DTTSPhi.cc:75
const DTConfigTSPhi * config() const
Return the configuration class.
Definition: DTTSPhi.h:64
Definition: DTTSM.h:38
DTTSS * getDTTSS(int step, unsigned n) const
Definition: DTTSPhi.cc:460
void ignoreSecondTrack(int step, int tracon)
Set a flag to ignore second tracks (if first track at following BX)
Definition: DTTSPhi.cc:428
std::vector< DTTSCand * > _tctrig[DTConfigTSPhi::NSTEPL-DTConfigTSPhi::NSTEPF+1]
Definition: DTTSPhi.h:122
const DTChambPhSegm * segment(int step, unsigned n)
Return the requested DTTSPhi segment.
Definition: DTTSPhi.cc:510
static const int NSTEPL
Constants: first and last step to start trigger finding.
Definition: DTConfig.h:36
const DTConfigTSPhi * _config
Definition: DTTSPhi.h:114
tuple conf
Definition: dbtoconf.py:185
DTTracoCard * _tracocard
Definition: DTTSPhi.h:112
DTTSPhi(DTTrigGeom *, DTTracoCard *)
Constructor.
Definition: DTTSPhi.cc:44
std::vector< DTChambPhSegm > DTChambPhVector
Definition: DTTSPhi.h:28
Definition: DTTSS.h:36
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTSPhi.cc:127
void localClear()
Clear.
Definition: DTTSPhi.cc:105
void addTracoT(int step, const DTTracoTrigData *tracotrig, int ifs)
Add a DTTracoChip trigger to the DTTSPhi, ifs is track number (first or second)
Definition: DTTSPhi.cc:181
std::vector< DTTSS * > _tss[DTConfigTSPhi::NSTEPL-DTConfigTSPhi::NSTEPF+1]
Definition: DTTSPhi.h:117
virtual void reconstruct()
Load TRACO triggers and run TSPhi algorithm.
Definition: DTTSPhi.h:82
LocalVector localDirection(const DTTrigData *) const
Local direction in chamber of a trigger-data object.
Definition: DTTSPhi.cc:532
DTTSM * getDTTSM(int step, unsigned n) const
Definition: DTTSPhi.cc:481