#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 25 of file CSCCathodeLCTAnalyzer.h.
|
inline |
|
private |
Definition at line 225 of file CSCCathodeLCTAnalyzer.cc.
References CSCDetId::chamber(), debug, SiPixelRawToDigiRegional_cfi::deltaPhi, CSCDetId::endcap(), info(), CSCDetId::layer(), LogDebug, LogTrace, M_PI, PSimHit::particleType(), PV3DBase< T, PVType, FrameType >::phi(), create_new_empty_test_file_cfg::prd, CSCDetId::ring(), FastTrackerRecHitCombiner_cfi::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 16 of file CSCCathodeLCTAnalyzer.cc.
References Exception, and CSCConstants::NUM_LAYERS.
Referenced by CSCTriggerPrimitivesReader::calcResolution().
double CSCCathodeLCTAnalyzer::getStripPhi | ( | const CSCDetId & | layerId, |
const float | strip | ||
) |
Returns phi position of a given strip.
Definition at line 401 of file CSCCathodeLCTAnalyzer.cc.
References CSCLayer::geometry(), OffsetRadialStripTopology::localPosition(), CSCConstants::MAX_NUM_STRIPS, PV3DBase< T, PVType, FrameType >::phi(), digitizers_cfi::strip, GeomDet::toGlobal(), and CSCLayerGeometry::topology().
Referenced by CSCTriggerPrimitivesReader::calcResolution().
|
private |
Definition at line 49 of file CSCCathodeLCTAnalyzer.cc.
References CSCLayerInfo< TYPE >::addComponent(), CSCDetId::chamber(), CSCPatternBank::clct_pattern_offset_, CSCConstants::CLCT_PATTERN_WIDTH, 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_NUM_STRIPS, CSCConstants::NUM_HALF_STRIPS, CSCConstants::NUM_LAYERS, CSCDetId::ring(), CSCLayerInfo< TYPE >::setId(), CSCDetId::station(), digitizers_cfi::strip, and ntuplemaker::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 304 of file CSCCathodeLCTAnalyzer.cc.
References AlCaHLTBitMon_QueryRunRegistry::comp, debug, std::empty(), 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(), digitizers_cfi::strip, OffsetRadialStripTopology::strip(), GeomDet::toGlobal(), and CSCLayerGeometry::topology().
Referenced by CSCTriggerPrimitivesReader::calcResolution().
|
private |
Definition at line 152 of file CSCCathodeLCTAnalyzer.cc.
References AlCaHLTBitMon_QueryRunRegistry::comp, debug, CSCLayer::geometry(), CSCDetId::layer(), LogDebug, CSCDetId::ring(), CSCLayerGeometry::stagger(), CSCDetId::station(), and ntuplemaker::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 399 of file CSCCathodeLCTAnalyzer.cc.
References relativeConstraints::geom.
Referenced by CSCTriggerPrimitivesReader::calcResolution().
|
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.