test
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 //
9 //
10 //--------------------------------------------------
11 #ifndef DT_TS_THETA_H
12 #define DT_TS_THETA_H
13 
14 //------------------------------------
15 // Collaborating Class Declarations --
16 //------------------------------------
17 class DTBtiCard;
18 class DTBtiTrigData;
19 class DTTrigGeom;
20 
21 //----------------------
22 // Base Class Headers --
23 //----------------------
31 
32 //---------------
33 // C++ Headers --
34 //---------------
35 #include <vector>
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
41 typedef std::vector<DTChambThSegm> DTChambThVector;
43 
44 class DTTSTheta : public DTTSThetaManager, public DTGeomSupplier {
45 
46  public:
47 
49  //DTTSTheta(DTTrigGeom*, DTBtiCard*, edm::ParameterSet&);
51 
53  ~DTTSTheta();
54 
56  inline const DTConfigTSTheta* config() const { return _config; }
57 
59  void setConfig(const DTConfigManager *conf);
60 
62  int nSegm(int step);
63 
65  const DTChambThSegm* segment(int step, unsigned n);
66 
68  int nTrig(int step);
69 
71  int nHTrig(int step);
72 
74  LocalPoint localPosition(const DTTrigData*) const;
75 
78 
80  void print(const DTTrigData* trig) const;
81 
84 
85  private:
86 
88  void loadDTTSTheta();
89 
91  void runDTTSTheta();
92 
94  void add_btiT(int step, const DTBtiTrigData* btitrig);
95 
97  void localClear();
98 
101 
104 
105  private:
106 
108 
110 
111  // Input data
116 
117 };
118 
119 #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:112
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:19
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:114
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
const DTConfigTSTheta * config() const
Return configuration.
Definition: DTTSTheta.h:56
int _nHtrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:115
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
DTBtiCard * _bticard
Definition: DTTSTheta.h:107
DTCache< DTChambThSegm, DTChambThVector > DTTSThetaManager
Definition: DTTSTheta.h:42
void reconstruct()
Load BTIs triggers and run TSTheta algoritm.
Definition: DTTSTheta.h:83
BitArray< DTConfigTSTheta::NCELLTH > _Htrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:113
step
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTSTheta.cc:74
void loadDTTSTheta()
store DTBtiChip L1Triggers in the TST
Definition: DTTSTheta.cc:82
const DTConfigTSTheta * _config
Definition: DTTSTheta.h:109
int nTrig(int step)
Return number of DTBtiChip fired (used by DTTracoChip)
Definition: DTTSTheta.cc:232
DTTSTheta(DTTrigGeom *, DTBtiCard *)
Constructor.
Definition: DTTSTheta.cc:37