forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tracklet Processor Displaced (cms-sw#159)
* Tracklet Processor Displaced * code-format * code-format again * remove unnecessary comments and add explanation for header file * implement more comments * remove more magic numbers
- Loading branch information
1 parent
a0bc07d
commit d49136e
Showing
12 changed files
with
12,841 additions
and
6 deletions.
There are no files selected for viewing
5,441 changes: 5,441 additions & 0 deletions
5,441
L1Trigger/TrackFindingTracklet/data/memorymodules_hourglassExtended.dat
Large diffs are not rendered by default.
Oops, something went wrong.
1,155 changes: 1,155 additions & 0 deletions
1,155
L1Trigger/TrackFindingTracklet/data/processingmodules_hourglassExtended.dat
Large diffs are not rendered by default.
Oops, something went wrong.
5,441 changes: 5,441 additions & 0 deletions
5,441
L1Trigger/TrackFindingTracklet/data/wires_hourglassExtended.dat
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
L1Trigger/TrackFindingTracklet/interface/TrackletProcessorDisplaced.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
// TrackletProcessorDisplaced: This class performs the tasks of the TrackletEngineDisplaced+TripletEngine+TrackletCalculatorDisplaced. | ||
#ifndef L1Trigger_TrackFindingTracklet_interface_TrackletProcessorDisplaced_h | ||
#define L1Trigger_TrackFindingTracklet_interface_TrackletProcessorDisplaced_h | ||
|
||
#include "L1Trigger/TrackFindingTracklet/interface/TrackletCalculatorBase.h" | ||
#include "L1Trigger/TrackFindingTracklet/interface/TrackletCalculatorDisplaced.h" | ||
#include "L1Trigger/TrackFindingTracklet/interface/TrackletLUT.h" | ||
#include "L1Trigger/TrackFindingTracklet/interface/CircularBuffer.h" | ||
#include "L1Trigger/TrackFindingTracklet/interface/TrackletEngineUnit.h" | ||
#include "L1Trigger/TrackFindingTracklet/interface/TrackletParametersMemory.h" | ||
#include "L1Trigger/TrackFindingTracklet/interface/TrackletProjectionsMemory.h" | ||
|
||
#include <vector> | ||
#include <tuple> | ||
#include <map> | ||
|
||
namespace trklet { | ||
|
||
class Settings; | ||
class Globals; | ||
class MemoryBase; | ||
class AllStubsMemory; | ||
class AllInnerStubsMemory; | ||
class VMStubsTEMemory; | ||
class StubPairsMemory; | ||
|
||
class TrackletProcessorDisplaced : public TrackletCalculatorDisplaced { | ||
public: | ||
TrackletProcessorDisplaced(std::string name, Settings const& settings, Globals* globals); | ||
|
||
~TrackletProcessorDisplaced() override = default; | ||
|
||
void addOutputProjection(TrackletProjectionsMemory*& outputProj, MemoryBase* memory); | ||
|
||
void addOutput(MemoryBase* memory, std::string output) override; | ||
|
||
void addInput(MemoryBase* memory, std::string input) override; | ||
|
||
void execute(unsigned int iSector, double phimin, double phimax); | ||
|
||
private: | ||
int iTC_; | ||
int iAllStub_; | ||
unsigned int maxStep_; | ||
int count_; | ||
unsigned int layerdisk_; | ||
|
||
int layer1_; | ||
int layer2_; | ||
int layer3_; | ||
int disk1_; | ||
int disk2_; | ||
int disk3_; | ||
|
||
int firstphibits_; | ||
int secondphibits_; | ||
int thirdphibits_; | ||
|
||
int nbitszfinebintable_; | ||
int nbitsrfinebintable_; | ||
|
||
TrackletLUT innerTable_; //projection to next layer/disk | ||
TrackletLUT innerOverlapTable_; //projection to disk from layer | ||
TrackletLUT innerThirdTable_; //projection to disk1 for extended - iseed=10 | ||
|
||
std::vector<StubPairsMemory*> stubpairs_; | ||
/* std::vector<StubTripletsMemory*> stubtriplets_; */ | ||
std::vector<VMStubsTEMemory*> innervmstubs_; | ||
std::vector<VMStubsTEMemory*> outervmstubs_; | ||
|
||
StubTripletsMemory* stubtriplets_; | ||
|
||
std::map<std::string, std::vector<std::vector<std::string> > > tmpSPTable_; | ||
std::map<std::string, std::vector<std::map<std::string, unsigned> > > spTable_; | ||
std::vector<bool> table_; | ||
}; | ||
|
||
}; // namespace trklet | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.