CMS 3D CMS Logo

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 public:
47  //DTTSTheta(DTTrigGeom*, DTBtiCard*, edm::ParameterSet&);
49 
51  ~DTTSTheta() override;
52 
54  inline const DTConfigTSTheta* config() const { return _config; }
55 
57  void setConfig(const DTConfigManager* conf);
58 
60  int nSegm(int step);
61 
63  const DTChambThSegm* segment(int step, unsigned n);
64 
66  int nTrig(int step);
67 
69  int nHTrig(int step);
70 
72  LocalPoint localPosition(const DTTrigData*) const override;
73 
75  LocalVector localDirection(const DTTrigData*) const override;
76 
78  void print(const DTTrigData* trig) const override;
79 
81  void reconstruct() override {
82  loadDTTSTheta();
83  runDTTSTheta();
84  }
85 
86 private:
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:
107 
109 
110  // Input data
115 };
116 
117 #endif
Vector3DBase< float, LocalTag >
DTBtiCard
Definition: DTBtiCard.h:62
DTTSTheta::localClear
void localClear()
Clear.
Definition: DTTSTheta.cc:57
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
DTTSTheta::_config
const DTConfigTSTheta * _config
Definition: DTTSTheta.h:108
DTTSTheta::localDirection
LocalVector localDirection(const DTTrigData *) const override
Local direction in chamber of a L1Trigger-data object.
Definition: DTTSTheta.cc:264
step
step
Definition: StallMonitor.cc:94
DTGeomSupplier
Definition: DTGeomSupplier.h:42
DTChambThSegm.h
DTTSTheta::setConfig
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTSTheta.cc:67
DTTSTheta::config
const DTConfigTSTheta * config() const
Return configuration.
Definition: DTTSTheta.h:54
DTConfig::NSTEPL
static const int NSTEPL
Constants: first and last step to start trigger finding.
Definition: DTConfig.h:35
DTConfig::NSTEPF
static const int NSTEPF
Definition: DTConfig.h:35
DTTSTheta::print
void print(const DTTrigData *trig) const override
Print a L1Trigger-data object with also local and global position/direction.
Definition: DTTSTheta.cc:270
DTConfigManager.h
DTTSTheta::_ntrig
int _ntrig[DTConfigTSTheta::NSTEPL - DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:113
DTTSTheta::add_btiT
void add_btiT(int step, const DTBtiTrigData *btitrig)
Add a DTBtiChip L1Trigger to the DTTSTheta.
Definition: DTTSTheta.cc:96
DTChambThVector
std::vector< DTChambThSegm > DTChambThVector
Definition: DTTSTheta.h:19
DTTSTheta::_bticard
DTBtiCard * _bticard
Definition: DTTSTheta.h:106
DTTSTheta::nHTrig
int nHTrig(int step)
Return number of DTBtiChip fired with a HTRIG (used by DTTracoChip)
Definition: DTTSTheta.cc:229
DTChambThSegm
Definition: DTChambThSegm.h:39
DTBtiTrigData
Definition: DTBtiTrigData.h:39
DTTSTheta::DTTSTheta
DTTSTheta(DTTrigGeom *, DTBtiCard *)
Constructor.
Definition: DTTSTheta.cc:37
DTTSTheta::btiQual
BitArray< DTConfigTSTheta::NCELLTH > * btiQual(int step) const
Return the BitArray of DTBtiChip fired with a HTRIG.
Definition: DTTSTheta.cc:249
Point3DBase< float, LocalTag >
DTTSTheta::localPosition
LocalPoint localPosition(const DTTrigData *) const override
Local position in chamber of a L1Trigger-data object.
Definition: DTTSTheta.cc:258
DTTSTheta::runDTTSTheta
void runDTTSTheta()
run DTTSTheta algorithm (build the mask)
Definition: DTTSTheta.cc:136
DTTSTheta::nTrig
int nTrig(int step)
Return number of DTBtiChip fired (used by DTTracoChip)
Definition: DTTSTheta.cc:218
DTTrigData
Definition: DTTrigData.h:35
DTTSThetaManager
DTCache< DTChambThSegm, DTChambThVector > DTTSThetaManager
Definition: DTTSTheta.h:42
DTTSTheta::loadDTTSTheta
void loadDTTSTheta()
store DTBtiChip L1Triggers in the TST
Definition: DTTSTheta.cc:72
DTTSTheta::nSegm
int nSegm(int step)
Return number of TStheta segments (just 1)
Definition: DTTSTheta.cc:199
DTTSTheta::segment
const DTChambThSegm * segment(int step, unsigned n)
Return the requested DTTSTheta segment (only the first)
Definition: DTTSTheta.cc:209
DTConfigManager
Definition: DTConfigManager.h:49
ClusterTask_cfi.trig
trig
Definition: ClusterTask_cfi.py:336
DTGeomSupplier.h
DTTSTheta::_nHtrig
int _nHtrig[DTConfigTSTheta::NSTEPL - DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:114
DTTSTheta::_trig
BitArray< DTConfigTSTheta::NCELLTH > _trig[DTConfigTSTheta::NSTEPL - DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:111
DTConfigTSTheta
Definition: DTConfigTSTheta.h:35
DTCache
Definition: DTCache.h:23
DTTrigGeom
Definition: DTTrigGeom.h:41
DTTSTheta::btiMask
BitArray< DTConfigTSTheta::NCELLTH > * btiMask(int step) const
Return the BitArray of DTBtiChip fired.
Definition: DTTSTheta.cc:240
DTTSTheta::reconstruct
void reconstruct() override
Load BTIs triggers and run TSTheta algoritm.
Definition: DTTSTheta.h:81
ParameterSet.h
DTTSTheta::_Htrig
BitArray< DTConfigTSTheta::NCELLTH > _Htrig[DTConfigTSTheta::NSTEPL - DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:112
DTConfigTSTheta.h
BitArray.h
BitArray< DTConfigTSTheta::NCELLTH >
DTTSTheta
Definition: DTTSTheta.h:44
DTTSTheta::~DTTSTheta
~DTTSTheta() override
Destructor.
Definition: DTTSTheta.cc:49
DTCache.h