Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8032 from thomaslenzi/phase2clusters-clusterizer
Integration of the new SiPhase2Clusterizer in CMSSW
- Loading branch information
Showing
24 changed files
with
928 additions
and
1,654 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
83 changes: 0 additions & 83 deletions
83
SimTracker/SiPhase2Digitizer/interface/ClusterizerAlgorithm.h
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
SimTracker/SiPhase2Digitizer/interface/Phase2TrackerClusterizerAlgorithm.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,34 @@ | ||
#ifndef SimTracker_SiPhase2Digitizer_Phase2TrackerClusterizerAlgorithm_h | ||
#define SimTracker_SiPhase2Digitizer_Phase2TrackerClusterizerAlgorithm_h | ||
|
||
#include "DataFormats/Common/interface/DetSetVector.h" | ||
#include "DataFormats/Common/interface/DetSetVectorNew.h" | ||
#include "DataFormats/SiPixelDigi/interface/PixelDigi.h" | ||
#include "DataFormats/Phase2TrackerCluster/interface/Phase2TrackerCluster1D.h" | ||
|
||
#include "Geometry/TrackerGeometryBuilder/interface/PixelGeomDetUnit.h" | ||
|
||
#include "SimTracker/SiPhase2Digitizer/interface/Phase2TrackerClusterizerArray.h" | ||
|
||
class Phase2TrackerClusterizerAlgorithm { | ||
|
||
public: | ||
|
||
Phase2TrackerClusterizerAlgorithm(unsigned int, unsigned int); | ||
void setup(const PixelGeomDetUnit*); | ||
void clusterizeDetUnit(const edm::DetSet< PixelDigi >&, edmNew::DetSetVector< Phase2TrackerCluster1D >::FastFiller&); | ||
|
||
private: | ||
|
||
void fillMatrix(edm::DetSet< PixelDigi >::const_iterator, edm::DetSet< PixelDigi >::const_iterator); | ||
void clearMatrix(edm::DetSet< PixelDigi >::const_iterator, edm::DetSet< PixelDigi >::const_iterator); | ||
|
||
Phase2TrackerClusterizerArray matrix_; | ||
unsigned int maxClusterSize_; | ||
unsigned int maxNumberClusters_; | ||
unsigned int nrows_; | ||
unsigned int ncols_; | ||
|
||
}; | ||
|
||
#endif |
28 changes: 28 additions & 0 deletions
28
SimTracker/SiPhase2Digitizer/interface/Phase2TrackerClusterizerArray.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,28 @@ | ||
#ifndef SimTracker_SiPhase2Digitizer_Phase2TrackerClusterizerArray_h | ||
#define SimTracker_SiPhase2Digitizer_Phase2TrackerClusterizerArray_h | ||
|
||
#include <vector> | ||
|
||
class Phase2TrackerClusterizerArray { | ||
|
||
public: | ||
|
||
Phase2TrackerClusterizerArray(); | ||
Phase2TrackerClusterizerArray(unsigned int, unsigned int); | ||
void setSize(unsigned int, unsigned int); | ||
bool operator()(unsigned int, unsigned int) const; | ||
unsigned int rows() const; | ||
unsigned int columns() const; | ||
bool inside(unsigned int, unsigned int) const; | ||
void set(unsigned int, unsigned int, bool); | ||
unsigned int size() const; | ||
unsigned int index(unsigned int, unsigned int) const; | ||
|
||
private: | ||
|
||
unsigned int nrows_, ncols_; | ||
std::vector< bool > matrix_; | ||
|
||
}; | ||
|
||
#endif |
34 changes: 0 additions & 34 deletions
34
SimTracker/SiPhase2Digitizer/interface/PixelClusterHitArray.h
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
SimTracker/SiPhase2Digitizer/interface/PixelClusterSimLink.h
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.