forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removal of dependencies of ChannelAssignement (#144)
* This code includes a new implementation of the Track and Stub Streams generation. The old code is still running in parallel. * Remove code for old calculation of stream data - keeping the debug print out in this commit * Remove debud printout * added numSeedTypes function * rebased Anders branch * rebased Anders branch * tidied up Anders branch * tidied up Anders branch * ran scram b code-format * Thomas PR review comments * max num of proj layers added to channel assignment. * merge with Thomas commit Co-authored-by: Ian Tomalin <ian.tomalin@stfc.ac.uk> Co-authored-by: Thomas Schuh <thomas.schuh@stfc.ac.uk>
- Loading branch information
1 parent
6c0513e
commit e06337a
Showing
16 changed files
with
215 additions
and
151 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef L1Trigger_TrackFindingTracklet_interface_StubStreamData_h | ||
#define L1Trigger_TrackFindingTracklet_interface_StubStreamData_h | ||
|
||
#include "L1Trigger/TrackFindingTracklet/interface/L1TStub.h" | ||
|
||
#include <string> | ||
|
||
// Represents an element of the bit-accurate stub stream from TrackBuilder output | ||
// (This class only needed to support stand-alone running of this code). | ||
|
||
namespace trklet { | ||
|
||
class L1TStub; | ||
|
||
class StubStreamData { | ||
public: | ||
StubStreamData() {} | ||
|
||
StubStreamData(int iSeed, const L1TStub& stub, const std::string& dataBits) | ||
: iSeed_(iSeed), stub_(stub), dataBits_(dataBits) {} | ||
|
||
~StubStreamData() = default; | ||
|
||
int iSeed() const { return iSeed_; } // Seed type | ||
bool valid() const { return (iSeed_ >= 0); } // Valid stub | ||
const L1TStub& stub() const { return stub_; } | ||
// String with bits of valid bit + r coordinate + phi residual + r or z residual. | ||
const std::string& dataBits() const { return dataBits_; } | ||
|
||
private: | ||
int iSeed_{-1}; | ||
L1TStub stub_; | ||
std::string dataBits_{""}; | ||
}; | ||
}; // 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
Oops, something went wrong.