CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTTSTheta.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
11 //
12 //--------------------------------------------------
13 #ifndef DT_TS_THETA_H
14 #define DT_TS_THETA_H
15 
16 //------------------------------------
17 // Collaborating Class Declarations --
18 //------------------------------------
19 class DTBtiCard;
20 class DTBtiTrigData;
21 class DTTrigGeom;
22 
23 //----------------------
24 // Base Class Headers --
25 //----------------------
33 
34 //---------------
35 // C++ Headers --
36 //---------------
37 #include <vector>
38 
39 // ---------------------
40 // -- Class Interface --
41 // ---------------------
42 
43 typedef std::vector<DTChambThSegm> DTChambThVector;
45 
46 class DTTSTheta : public DTTSThetaManager, public DTGeomSupplier {
47 
48  public:
49 
51  //DTTSTheta(DTTrigGeom*, DTBtiCard*, edm::ParameterSet&);
53 
55  ~DTTSTheta();
56 
58  inline DTConfigTSTheta* config() const { return _config; }
59 
61  void setConfig(const DTConfigManager *conf);
62 
64  int nSegm(int step);
65 
67  const DTChambThSegm* segment(int step, unsigned n);
68 
70  int nTrig(int step);
71 
73  int nHTrig(int step);
74 
76  LocalPoint localPosition(const DTTrigData*) const;
77 
80 
82  void print(const DTTrigData* trig) const;
83 
86 
87  private:
88 
90  void loadDTTSTheta();
91 
93  void runDTTSTheta();
94 
96  void add_btiT(int step, const DTBtiTrigData* btitrig);
97 
99  void localClear();
100 
103 
106 
107  private:
108 
110 
112 
113  // Input data
118 
119 };
120 
121 #endif
int nHTrig(int step)
Return number of DTBtiChip fired with a HTRIG (used by DTTracoChip)
Definition: DTTSTheta.cc:243
BitArray< DTConfigTSTheta::NCELLTH > _trig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:114
void add_btiT(int step, const DTBtiTrigData *btitrig)
Add a DTBtiChip L1Trigger to the DTTSTheta.
Definition: DTTSTheta.cc:107
~DTTSTheta()
Destructor.
Definition: DTTSTheta.cc:53
std::vector< DTChambThSegm > DTChambThVector
Definition: DTTSTheta.h:21
LocalPoint localPosition(const DTTrigData *) const
Local position in chamber of a L1Trigger-data object.
Definition: DTTSTheta.cc:274
int _ntrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:116
void runDTTSTheta()
run DTTSTheta algorithm (build the mask)
Definition: DTTSTheta.cc:148
static const int NSTEPF
Definition: DTConfig.h:36
const DTChambThSegm * segment(int step, unsigned n)
Return the requested DTTSTheta segment (only the first)
Definition: DTTSTheta.cc:222
BitArray< DTConfigTSTheta::NCELLTH > * btiMask(int step) const
Return the BitArray of DTBtiChip fired.
Definition: DTTSTheta.cc:254
LocalVector localDirection(const DTTrigData *) const
Local direction in chamber of a L1Trigger-data object.
Definition: DTTSTheta.cc:281
int _nHtrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:117
void print(const DTTrigData *trig) const
Print a L1Trigger-data object with also local and global position/direction.
Definition: DTTSTheta.cc:288
BitArray< DTConfigTSTheta::NCELLTH > * btiQual(int step) const
Return the BitArray of DTBtiChip fired with a HTRIG.
Definition: DTTSTheta.cc:264
void localClear()
Clear.
Definition: DTTSTheta.cc:63
int nSegm(int step)
Return number of TStheta segments (just 1)
Definition: DTTSTheta.cc:212
static const int NSTEPL
Constants: first and last step to start trigger finding.
Definition: DTConfig.h:36
DTConfigTSTheta * _config
Definition: DTTSTheta.h:111
tuple conf
Definition: dbtoconf.py:185
DTBtiCard * _bticard
Definition: DTTSTheta.h:109
DTCache< DTChambThSegm, DTChambThVector > DTTSThetaManager
Definition: DTTSTheta.h:44
void reconstruct()
Load BTIs triggers and run TSTheta algoritm.
Definition: DTTSTheta.h:85
BitArray< DTConfigTSTheta::NCELLTH > _Htrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:115
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTSTheta.cc:74
DTConfigTSTheta * config() const
Return configuration.
Definition: DTTSTheta.h:58
void loadDTTSTheta()
store DTBtiChip L1Triggers in the TST
Definition: DTTSTheta.cc:82
int nTrig(int step)
Return number of DTBtiChip fired (used by DTTracoChip)
Definition: DTTSTheta.cc:232
DTTSTheta(DTTrigGeom *, DTBtiCard *)
Constructor.
Definition: DTTSTheta.cc:37