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 //
12 //
13 //--------------------------------------------------
14 #ifndef DT_TS_PHI_H
15 #define DT_TS_PHI_H
16 
17 //-------------------
18 // Constants file --
19 //-------------------
20 
21 //------------------------------------
22 // Collaborating Class Declarations --
23 //------------------------------------
24 class DTTracoCard;
25 class DTTracoTrigData;
26 class DTTSS;
27 class DTTSM;
28 class DTSectColl;
29 class DTTSCand;
30 class DTTrigGeom;
31 
32 //----------------------
33 // Base Class Headers --
34 //----------------------
40 
42 
43 //---------------
44 // C++ Headers --
45 //---------------
46 #include <vector>
47 
48 // ---------------------
49 // -- Class Interface --
50 // ---------------------
51 
52 typedef std::vector<DTChambPhSegm> DTChambPhVector;
54 
55 class DTTSPhi : public DTTSPhiManager, public DTGeomSupplier {
56 
57  public:
58 
61 
63  ~DTTSPhi();
64 
66  inline DTConfigTSPhi* config() const {return _config; }
67 
69  void setConfig(const DTConfigManager *conf);
70 
72  int nSegm(int step);
73 
75  const DTChambPhSegm* segment(int step, unsigned n);
76 
78  LocalPoint localPosition(const DTTrigData*) const;
79 
82 
84  virtual void reconstruct() { loadTSPhi(); runTSPhi(); }
85 
86  private:
87 
89  void loadTSPhi();
90 
92  void runTSPhi();
93 
95  void addTracoT(int step, const DTTracoTrigData* tracotrig, int ifs);
96 
98  void ignoreSecondTrack(int step, int tracon);
99 
101  void localClear();
102 
103  // Return a DTTSS
104  DTTSS* getDTTSS(int step, unsigned n) const;
105 
106  // SM double TSM
107  // Return a DTTSM
108  DTTSM* getDTTSM(int step, unsigned n) const;
109 
110 
111 
112  private:
113 
115 
117 
118  // Components
120  // DBSM-doubleTSM
122 
123  // Input data
125 
126 };
127 
128 #endif
DTCache< DTChambPhSegm, DTChambPhVector > DTTSPhiManager
Definition: DTTSPhi.h:53
int nSegm(int step)
Return number of DTTSPhi segments.
Definition: DTTSPhi.cc:500
list step
Definition: launcher.py:15
std::vector< DTTSM * > _tsm[DTConfigTSPhi::NSTEPL-DTConfigTSPhi::NSTEPF+1]
Definition: DTTSPhi.h:121
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
DTConfigTSPhi * _config
Definition: DTTSPhi.h:116
Definition: DTTSM.h:40
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
DTConfigTSPhi * config() const
Return the configuration class.
Definition: DTTSPhi.h:66
std::vector< DTTSCand * > _tctrig[DTConfigTSPhi::NSTEPL-DTConfigTSPhi::NSTEPF+1]
Definition: DTTSPhi.h:124
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
tuple conf
Definition: dbtoconf.py:185
DTTracoCard * _tracocard
Definition: DTTSPhi.h:114
DTTSPhi(DTTrigGeom *, DTTracoCard *)
Constructor.
Definition: DTTSPhi.cc:44
std::vector< DTChambPhSegm > DTChambPhVector
Definition: DTTSPhi.h:30
Definition: DTTSS.h:38
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:119
virtual void reconstruct()
Load TRACO triggers and run TSPhi algorithm.
Definition: DTTSPhi.h:84
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