CMS 3D CMS Logo

DTSCCand.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // \class: DTSC.h
11 //
12 //--------------------------------------------------
13 #ifndef DT_SC_H
14 #define DT_SC_H
15 
16 //------------------------------------
17 // Collaborating Class Declarations --
18 //------------------------------------
19 class DTTracoTrigData;
20 class DTTSCand;
21 class DTConfigSectColl;
22 // added DBSM
23 class DTTrigGeom;
24 
25 //----------------------
26 // Base Class Headers --
27 //----------------------
28 // added DBSM
30 
31 //---------------
32 // C++ Headers --
33 //---------------
34 #include <vector>
35 
36 // ---------------------
37 // -- Class Interface --
38 // ---------------------
39 
40 
41 class DTSC{
42 
43  public:
44 
47 
49  ~DTSC();
50 
51  // non-const methods
52 
54  void addCand(DTTSCand* cand);
55 
58 
60  void run();
61 
64 
67 
69  void clear();
70 
71  // const methods
72 
74  inline DTConfigSectColl* config() const { return _config; }
75 
77  unsigned nCand(int ifs) const;
78 
80  inline int nFirstT() const { return _incand[0].size(); }
81 
83  inline int nSecondT() const { return _incand[1].size(); }
84 
86  DTTSCand* getDTTSCand(int ifs, unsigned n) const;
87 
89  const DTTracoTrigData* getTracoT(int ifs, unsigned n) const;
90 
92  inline int nTracks() const { return _outcand.size(); }
93 
95  DTTSCand* getTrack(int n) const ;
96 
97 
98  private:
99 
100  // Configuration
102 
103  // input data
104  std::vector<DTTSCand*> _incand[2];
105 
106  // output data
107  std::vector<DTTSCand*> _outcand;
108 
109  // internal use variables
110  int _ignoreSecondTrack;
111 
112 
113 };
114 #endif
115 
116 
117 
118 
119 
120 
121 
122 
123 
DTSC::_ignoreSecondTrack
int _ignoreSecondTrack
Definition: DTSC.h:128
DTSC::~DTSC
~DTSC()
Destructor.
Definition: DTSC.cc:51
DTTSCand
Definition: DTTSCand.h:35
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
DTConfigSectColl
Definition: DTConfigSectColl.h:37
DTSC::ignoreSecondTrack
void ignoreSecondTrack()
Set a flag to skip sort2.
Definition: DTSCCand.h:57
DTSC::config
DTConfigSectColl * config() const
Configuration set.
Definition: DTSCCand.h:74
DTSC::run
void run()
Run the Sector Collector algorithm.
Definition: DTSC.cc:69
DTSC::DTSectCollsort1
DTSectCollPhCand * DTSectCollsort1()
Phi Sort 1.
Definition: DTSC.cc:122
DTSC::nTracks
int nTracks() const
Return the number of sorted tracks.
Definition: DTSCCand.h:92
DTSC::_config
const DTConfigSectColl * _config
Definition: DTSC.h:116
DTSC::clear
void clear()
Clear.
Definition: DTSC.cc:57
DTSC::getTracoT
const DTTracoTrigData * getTracoT(int ifs, unsigned n) const
Return requested TRACO trigger.
DTSC::_outcand
std::vector< DTTSCand * > _outcand
Definition: DTSCCand.h:107
DTSC::DTSectCollsort2
DTSectCollPhCand * DTSectCollsort2()
Phi Sort 2.
Definition: DTSC.cc:163
DTSC::_config
DTConfigSectColl * _config
Definition: DTSCCand.h:101
DTSC::addCand
void addCand(DTTSCand *cand)
Add a TSM candidate to the Sect Coll, ifs is first/second track flag.
DTSC::nCand
unsigned nCand(int ifs) const
Return the number of input tracks (first/second)
cand
Definition: decayParser.h:32
DTSC
Definition: DTSC.h:41
DTSC::getTrack
DTTSCand * getTrack(int n) const
Return the requested track.
DTGeomSupplier.h
DTSC::nSecondT
int nSecondT() const
Return the number of input second tracks.
Definition: DTSCCand.h:83
DTSC::DTSC
DTSC(int istat)
Constructor.
Definition: DTSC.cc:41
DTTrigGeom
Definition: DTTrigGeom.h:41
DTTracoTrigData
Definition: DTTracoTrigData.h:37
DTSC::getDTTSCand
DTTSCand * getDTTSCand(int ifs, unsigned n) const
Return requested TSS candidate.
DTSC::nFirstT
int nFirstT() const
Return the number of input first tracks.
Definition: DTSCCand.h:80
DTSC::_incand
std::vector< DTTSCand * > _incand[2]
Definition: DTSCCand.h:104