#include <SiPixelChargeReweightingAlgorithm.h>
Public Types | |
typedef signal_map_type::const_iterator | signal_map_const_iterator |
typedef signal_map_type::iterator | signal_map_iterator |
typedef std::map< int, SiPixelDigitizerAlgorithm::Amplitude, std::less< int > > | signal_map_type |
Public Member Functions | |
bool | hitSignalReweight (const PSimHit &hit, std::map< int, float, std::less< int > > &hit_signal, const size_t hitIndex, const unsigned int tofBin, const PixelTopology *topol, uint32_t detID, signal_map_type &theSignal, unsigned short int processType, const bool &boolmakeDigiSimLinks) |
void | init (const edm::EventSetup &es) |
SiPixelChargeReweightingAlgorithm (const edm::ParameterSet &conf, edm::ConsumesCollector iC) | |
~SiPixelChargeReweightingAlgorithm () | |
Private Types | |
typedef boost::multi_array < float, 2 > | array_2d |
typedef GloballyPositioned < double > | Frame |
typedef std::vector < edm::ParameterSet > | Parameters |
typedef std::map< uint32_t, signal_map_type > | signalMaps |
Private Member Functions | |
int | PixelTempRewgt2D (int id_gen, int id_rewgt, array_2d &cluster) |
void | printCluster (array_2d &cluster) |
void | printCluster (float arr[13+2][21+2]) |
void | printCluster (float arr[13][21]) |
Private Attributes | |
const SiPixel2DTemplateDBObject * | dbobject_den |
const SiPixel2DTemplateDBObject * | dbobject_num |
int | IDden |
int | IDnum |
const bool | PrintClusters |
const bool | PrintTemplates |
edm::ESGetToken < SiPixel2DTemplateDBObject, SiPixel2DTemplateDBObjectRcd > | SiPixel2DTemp_den_token_ |
edm::ESGetToken < SiPixel2DTemplateDBObject, SiPixel2DTemplateDBObjectRcd > | SiPixel2DTemp_num_token_ |
SiPixelTemplate2D | templ2D |
std::vector < SiPixelTemplateStore2D > | templateStores_ |
std::vector< float > | track |
const bool | UseReweighting |
std::vector< bool > | xdouble |
std::vector< bool > | ydouble |
Definition at line 17 of file SiPixelChargeReweightingAlgorithm.h.
|
private |
Definition at line 44 of file SiPixelChargeReweightingAlgorithm.h.
|
private |
Definition at line 42 of file SiPixelChargeReweightingAlgorithm.h.
|
private |
Definition at line 43 of file SiPixelChargeReweightingAlgorithm.h.
typedef signal_map_type::const_iterator SiPixelChargeReweightingAlgorithm::signal_map_const_iterator |
Definition at line 27 of file SiPixelChargeReweightingAlgorithm.h.
typedef signal_map_type::iterator SiPixelChargeReweightingAlgorithm::signal_map_iterator |
Definition at line 26 of file SiPixelChargeReweightingAlgorithm.h.
typedef std::map<int, SiPixelDigitizerAlgorithm::Amplitude, std::less<int> > SiPixelChargeReweightingAlgorithm::signal_map_type |
Definition at line 25 of file SiPixelChargeReweightingAlgorithm.h.
|
private |
Definition at line 41 of file SiPixelChargeReweightingAlgorithm.h.
SiPixelChargeReweightingAlgorithm::SiPixelChargeReweightingAlgorithm | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector | iC | ||
) |
Definition at line 56 of file SiPixelChargeReweightingAlgorithm.cc.
References edm::ConsumesCollector::esConsumes(), SiPixel2DTemp_den_token_, SiPixel2DTemp_num_token_, and UseReweighting.
SiPixelChargeReweightingAlgorithm::~SiPixelChargeReweightingAlgorithm | ( | ) |
bool SiPixelChargeReweightingAlgorithm::hitSignalReweight | ( | const PSimHit & | hit, |
std::map< int, float, std::less< int > > & | hit_signal, | ||
const size_t | hitIndex, | ||
const unsigned int | tofBin, | ||
const PixelTopology * | topol, | ||
uint32_t | detID, | ||
signal_map_type & | theSignal, | ||
unsigned short int | processType, | ||
const bool & | boolmakeDigiSimLinks | ||
) |
Definition at line 84 of file SiPixelChargeReweightingAlgorithm.cc.
References officialStyle::chan, PixelDigi::channelToPixel(), RecoTauCleanerPlugins::charge, cuy::col, gather_cfg::cout, dbobject_den, dbobject_num, PSimHit::entryPoint(), PSimHit::exitPoint(), SiPixel2DTemplateDBObject::getTemplateID(), IDden, PixelTopology::isItBigPixelInX(), PixelTopology::isItBigPixelInY(), PSimHit::localPosition(), Topology::localPosition(), LogDebug, SiStripPI::max, Topology::measurementPosition(), SiStripPI::min, PixelTopology::ncolumns(), PixelTopology::nrows(), PSimHit::particleType(), PixelTempRewgt2D(), PixelDigi::pixelToChannel(), printCluster(), PrintClusters, PSimHit::processType(), THX, THY, track, TXSIZE, TYSIZE, UseReweighting, PV2DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::x(), xdouble, PV2DBase< T, PVType, FrameType >::y(), PV3DBase< T, PVType, FrameType >::y(), ydouble, and PV3DBase< T, PVType, FrameType >::z().
void SiPixelChargeReweightingAlgorithm::init | ( | const edm::EventSetup & | es | ) |
Definition at line 39 of file SiPixelChargeReweightingAlgorithm.cc.
References edm::EventSetup::getData(), SiPixelTemplate2D::pushfile(), and HLT_FULL_cff::track.
|
private |
Reweight CMSSW clusters to look like clusters corresponding to Pixelav Templates.
id_in | - (input) identifier of the template corresponding to the input events |
id_rewgt | - (input) identifier of the template corresponding to the output events |
cluster | - (input/output) boost multi_array container of 7x21 array of pixel signals, origin of local coords (0,0) at center of pixel cluster[3][10]. returns 0 if everything is OK, 1 if angles are outside template coverage (cluster is probably still usable, > 1 if something is wrong (no reweight done). |
Definition at line 310 of file SiPixelChargeReweightingAlgorithm.cc.
References funct::abs(), BXM2, BYM2, gather_cfg::cout, validate-o2o-wbm::f, SiPixelTemplate2D::getid(), mps_fire::i, dqmiolumiharvest::j, isotrackApplyRegressor::k, cmsLHEtoEOSManager::l, LogDebug, printCluster(), PrintTemplates, SiPixelTemplate2D::s50(), summarizeEdmComparisonLogfiles::success, templ2D, track, TXSIZE, TYSIZE, xdouble, xsize, SiPixelTemplate2D::xsize(), SiPixelTemplate2D::xytemp(), ydouble, ysize, and SiPixelTemplate2D::ysize().
Referenced by hitSignalReweight().
|
private |
Definition at line 533 of file SiPixelChargeReweightingAlgorithm.cc.
References cuy::col, gather_cfg::cout, TXSIZE, and TYSIZE.
Referenced by hitSignalReweight(), and PixelTempRewgt2D().
|
private |
Definition at line 544 of file SiPixelChargeReweightingAlgorithm.cc.
References BXM2, BYM2, cuy::col, and gather_cfg::cout.
|
private |
Definition at line 555 of file SiPixelChargeReweightingAlgorithm.cc.
References cuy::col, gather_cfg::cout, TXSIZE, and TYSIZE.
|
private |
Definition at line 61 of file SiPixelChargeReweightingAlgorithm.h.
Referenced by hitSignalReweight().
|
private |
Definition at line 62 of file SiPixelChargeReweightingAlgorithm.h.
Referenced by hitSignalReweight().
|
private |
Definition at line 51 of file SiPixelChargeReweightingAlgorithm.h.
Referenced by hitSignalReweight().
|
private |
Definition at line 51 of file SiPixelChargeReweightingAlgorithm.h.
|
private |
Definition at line 54 of file SiPixelChargeReweightingAlgorithm.h.
Referenced by hitSignalReweight().
|
private |
Definition at line 55 of file SiPixelChargeReweightingAlgorithm.h.
Referenced by PixelTempRewgt2D().
|
private |
Definition at line 59 of file SiPixelChargeReweightingAlgorithm.h.
Referenced by SiPixelChargeReweightingAlgorithm().
|
private |
Definition at line 60 of file SiPixelChargeReweightingAlgorithm.h.
Referenced by SiPixelChargeReweightingAlgorithm().
|
private |
Definition at line 47 of file SiPixelChargeReweightingAlgorithm.h.
Referenced by PixelTempRewgt2D().
|
private |
Definition at line 57 of file SiPixelChargeReweightingAlgorithm.h.
|
private |
Definition at line 50 of file SiPixelChargeReweightingAlgorithm.h.
Referenced by hitSignalReweight(), and PixelTempRewgt2D().
|
private |
Definition at line 53 of file SiPixelChargeReweightingAlgorithm.h.
Referenced by hitSignalReweight(), and SiPixelChargeReweightingAlgorithm().
|
private |
Definition at line 48 of file SiPixelChargeReweightingAlgorithm.h.
Referenced by hitSignalReweight(), and PixelTempRewgt2D().
|
private |
Definition at line 49 of file SiPixelChargeReweightingAlgorithm.h.
Referenced by hitSignalReweight(), and PixelTempRewgt2D().