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 #37823 from CMSTrackerDPG/additionalDigiInfo_from-…
…CMSSW_12_4_0_pre1 Modifications of the Pixel Charge Reweighting for RunDependent MC
- Loading branch information
Showing
20 changed files
with
846 additions
and
67 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
Configuration/ProcessModifiers/python/runDependentForPixel_cff.py
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,2 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
runDependentForPixel = cms.Modifier() |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<use name="DataFormats/Common"/> | ||
<use name="SimDataFormats/EncodedEventId"/> | ||
<use name="boost"/> | ||
<use name="DataFormats/GeometryVector"/> | ||
<export> | ||
<lib name="1"/> | ||
</export> |
43 changes: 43 additions & 0 deletions
43
SimDataFormats/TrackerDigiSimLink/interface/PixelSimHitExtraInfo.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,43 @@ | ||
#ifndef PixelSimHitExtraInfo_h | ||
#define PixelSimHitExtraInfo_h | ||
|
||
#include "DataFormats/GeometryVector/interface/LocalPoint.h" | ||
#include <vector> | ||
#include <cstdint> | ||
|
||
class PixelSimHitExtraInfo { | ||
public: | ||
PixelSimHitExtraInfo(size_t Hindex, const Local3DPoint& entryP, const Local3DPoint& exitP, unsigned int ch) { | ||
index_ = Hindex; | ||
theEntryPoint_ = entryP; | ||
theExitPoint_ = exitP; | ||
chan_.push_back(ch); | ||
}; | ||
PixelSimHitExtraInfo() = default; | ||
~PixelSimHitExtraInfo() = default; | ||
size_t hitIndex() const { return index_; }; | ||
const Local3DPoint& entryPoint() const { return theEntryPoint_; }; | ||
const Local3DPoint& exitPoint() const { return theExitPoint_; } | ||
const std::vector<unsigned int>& channel() const { return chan_; }; | ||
|
||
inline bool operator<(const PixelSimHitExtraInfo& other) const { return hitIndex() < other.hitIndex(); } | ||
|
||
void addDigiInfo(unsigned int theDigiChannel) { chan_.push_back(theDigiChannel); } | ||
bool isInTheList(unsigned int channelToCheck) { | ||
bool result_in_the_list = false; | ||
for (unsigned int icheck = 0; icheck < chan_.size(); icheck++) { | ||
if (channelToCheck == chan_[icheck]) { | ||
result_in_the_list = true; | ||
break; | ||
} | ||
} | ||
return result_in_the_list; | ||
} | ||
|
||
private: | ||
size_t index_; | ||
Local3DPoint theEntryPoint_; | ||
Local3DPoint theExitPoint_; | ||
std::vector<unsigned int> chan_; | ||
}; | ||
#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
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
49 changes: 49 additions & 0 deletions
49
SimTracker/SiPixelDigitizer/plugins/PixelDigiAddTempInfo.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,49 @@ | ||
#ifndef PixelDigiAddTempInfo_h | ||
#define PixelDigiAddTempInfo_h | ||
|
||
#include "DataFormats/GeometryVector/interface/LocalPoint.h" | ||
|
||
class PixelDigiAddTempInfo { | ||
public: | ||
PixelDigiAddTempInfo(unsigned int ch, | ||
size_t Hindex, | ||
const Local3DPoint& entryP, | ||
const Local3DPoint& exitP, | ||
int PType, | ||
int PartID, | ||
uint32_t detID, | ||
float InitCharge) { | ||
chan_ = ch; | ||
index_ = Hindex; | ||
theEntryPoint_ = entryP; | ||
theExitPoint_ = exitP; | ||
theProcessType_ = PType; | ||
thePartID_ = PartID; | ||
detectorID_ = detID; | ||
charge_ = InitCharge; | ||
}; | ||
PixelDigiAddTempInfo() = default; | ||
~PixelDigiAddTempInfo() = default; | ||
const unsigned int channel() const { return chan_; }; | ||
const size_t hitIndex() const { return index_; }; | ||
const Local3DPoint& entryPoint() const { return theEntryPoint_; }; | ||
const Local3DPoint& exitPoint() const { return theExitPoint_; } | ||
const int processType() const { return theProcessType_; }; | ||
const int trackID() const { return thePartID_; }; | ||
const uint32_t detID() const { return detectorID_; }; | ||
const float getCharge() const { return charge_; }; | ||
void addCharge(float charge_to_be_added) { charge_ += charge_to_be_added; }; | ||
|
||
inline bool operator<(const PixelDigiAddTempInfo& other) const { return channel() < other.channel(); } | ||
|
||
private: | ||
unsigned int chan_; | ||
size_t index_; | ||
Local3DPoint theEntryPoint_; | ||
Local3DPoint theExitPoint_; | ||
int theProcessType_; | ||
int thePartID_; | ||
uint32_t detectorID_; | ||
float charge_; | ||
}; | ||
#endif |
Oops, something went wrong.