#include <CSCCathodeLCTAnalyzer.h>
Public Member Functions | |
CSCCathodeLCTAnalyzer () | |
std::vector< CSCCathodeLayerInfo > | getSimInfo (const CSCCLCTDigi &clct, const CSCDetId &clctId, const CSCComparatorDigiCollection *compdc, const edm::PSimHitContainer *allSimHits) |
double | getStripPhi (const CSCDetId &layerId, const float strip) |
int | nearestHS (const std::vector< CSCCathodeLayerInfo > &allLayerInfo, double &closestPhi, double &closestEta) |
void | setGeometry (const CSCGeometry *geom) |
Static Public Member Functions | |
static void | setDebug () |
static void | setNoDebug () |
Private Member Functions | |
void | digiSimHitAssociator (CSCCathodeLayerInfo &info, const edm::PSimHitContainer *allSimHits) |
std::vector< CSCCathodeLayerInfo > | lctDigis (const CSCCLCTDigi &clct, const CSCDetId &clctId, const CSCComparatorDigiCollection *compdc) |
int | preselectDigis (const int clct_bx, const CSCDetId &layerId, const CSCComparatorDigiCollection *compdc, std::vector< CSCComparatorDigi > &digiMap, int hfstripDigis[CSCConstants::NUM_HALF_STRIPS], int time[CSCConstants::MAX_NUM_STRIPS], int comp[CSCConstants::MAX_NUM_STRIPS], int digiNum[CSCConstants::MAX_NUM_STRIPS]) |
Private Attributes | |
const CSCGeometry * | geom_ |
Static Private Attributes | |
static bool | debug = true |
static bool | doME1A = false |
Class for Monte Carlo studies of cathode LCTs. Returns a vector of up to six (one per layer) CSCCathodeLayerInfo objects for a given CLCT. They contain the list of comparator digis used to build a given CLCT, and the list of associated (closest) SimHits.
Definition at line 24 of file CSCCathodeLCTAnalyzer.h.
|
inline |
Default constructor.
Definition at line 28 of file CSCCathodeLCTAnalyzer.h.
References relativeConstraints::geom, getSimInfo(), getStripPhi(), nearestHS(), setGeometry(), and digitizers_cfi::strip.
|
private |
Definition at line 251 of file CSCCathodeLCTAnalyzer.cc.
References CSCLayerInfo< TYPE >::addComponent(), CSCDetId::chamber(), debug, hiPixelPairStep_cff::deltaPhi, CSCDetId::endcap(), CSCLayerInfo< TYPE >::getId(), CSCLayerInfo< TYPE >::getRecDigis(), CSCDetId::layer(), LogDebug, LogTrace, M_PI, PSimHit::particleType(), PV3DBase< T, PVType, FrameType >::phi(), CSCDetId::ring(), trackerHits::simHits, CSCDetId::station(), digitizers_cfi::strip, and GeomDet::toGlobal().
vector< CSCCathodeLayerInfo > CSCCathodeLCTAnalyzer::getSimInfo | ( | const CSCCLCTDigi & | clct, |
const CSCDetId & | clctId, | ||
const CSCComparatorDigiCollection * | compdc, | ||
const edm::PSimHitContainer * | allSimHits | ||
) |
Constructs vector of CSCCathodeLayerInfo objects for CLCT.
Definition at line 29 of file CSCCathodeLCTAnalyzer.cc.
References Exception, and CSCConstants::NUM_LAYERS.
Referenced by CSCTriggerPrimitivesReader::calcResolution(), and CSCCathodeLCTAnalyzer().
double CSCCathodeLCTAnalyzer::getStripPhi | ( | const CSCDetId & | layerId, |
const float | strip | ||
) |
Returns phi position of a given strip.
Definition at line 441 of file CSCCathodeLCTAnalyzer.cc.
References CSCLayer::geometry(), OffsetRadialStripTopology::localPosition(), CSCConstants::MAX_NUM_STRIPS, PV3DBase< T, PVType, FrameType >::phi(), GeomDet::toGlobal(), and CSCLayerGeometry::topology().
Referenced by CSCTriggerPrimitivesReader::calcResolution(), and CSCCathodeLCTAnalyzer().
|
private |
Definition at line 63 of file CSCCathodeLCTAnalyzer.cc.
References CSCLayerInfo< TYPE >::addComponent(), CSCDetId::chamber(), CSCLayerInfo< TYPE >::clear(), AlCaHLTBitMon_QueryRunRegistry::comp, debug, CSCDetId::endcap(), CSCCLCTDigi::getBX(), CSCLayerInfo< TYPE >::getId(), CSCCLCTDigi::getKeyStrip(), CSCCLCTDigi::getPattern(), CSCCLCTDigi::getStripType(), CSCDetId::layer(), LogDebug, LogTrace, CSCConstants::MAX_HALFSTRIPS_IN_PATTERN, CSCConstants::MAX_NUM_STRIPS, CSCConstants::NUM_HALF_STRIPS, CSCConstants::NUM_LAYERS, CSCCathodeLCTProcessor::pattern2007, CSCCathodeLCTProcessor::pattern2007_offset, CSCDetId::ring(), CSCLayerInfo< TYPE >::setId(), CSCDetId::station(), digitizers_cfi::strip, and protons_cff::time.
int CSCCathodeLCTAnalyzer::nearestHS | ( | const std::vector< CSCCathodeLayerInfo > & | allLayerInfo, |
double & | closestPhi, | ||
double & | closestEta | ||
) |
Finds half-strip, phi and eta of the nearest SimHit for comparison to the reconstructed values.
Definition at line 338 of file CSCCathodeLCTAnalyzer.cc.
References AlCaHLTBitMon_QueryRunRegistry::comp, debug, PV3DBase< T, PVType, FrameType >::eta(), CSCLayer::geometry(), mps_fire::i, CSCConstants::KEY_CLCT_LAYER, CSCDetId::layer(), PSimHit::localPosition(), LogDebug, M_PI, CSCConstants::MAX_NUM_STRIPS, PV3DBase< T, PVType, FrameType >::phi(), findQualityFiles::size, digitizers_cfi::strip, OffsetRadialStripTopology::strip(), GeomDet::toGlobal(), and CSCLayerGeometry::topology().
Referenced by CSCTriggerPrimitivesReader::calcResolution(), and CSCCathodeLCTAnalyzer().
|
private |
Definition at line 175 of file CSCCathodeLCTAnalyzer.cc.
References AlCaHLTBitMon_QueryRunRegistry::comp, debug, CSCLayer::geometry(), CSCDetId::layer(), LogDebug, CSCDetId::ring(), CSCLayerGeometry::stagger(), CSCDetId::station(), and protons_cff::time.
|
inlinestatic |
Turns on the debug flag for this class.
Definition at line 47 of file CSCCathodeLCTAnalyzer.h.
References debug.
void CSCCathodeLCTAnalyzer::setGeometry | ( | const CSCGeometry * | geom | ) |
Cache pointer to geometry for current event.
Definition at line 437 of file CSCCathodeLCTAnalyzer.cc.
References relativeConstraints::geom.
Referenced by CSCTriggerPrimitivesReader::calcResolution(), and CSCCathodeLCTAnalyzer().
|
inlinestatic |
Turns off the debug flag for this class (default).
Definition at line 50 of file CSCCathodeLCTAnalyzer.h.
References debug.
|
staticprivate |
Definition at line 53 of file CSCCathodeLCTAnalyzer.h.
Referenced by runTauIdMVA.TauIDEmbedder::loadMVA_WPs_run2_2017(), runTauIdMVA.TauIDEmbedder::runTauID(), setDebug(), and setNoDebug().
|
staticprivate |
Flag to decide whether to analyze stubs in ME1/A or not.
Definition at line 56 of file CSCCathodeLCTAnalyzer.h.
|
private |
Definition at line 59 of file CSCCathodeLCTAnalyzer.h.