#include <CSCAnodeLCTAnalyzer.h>
Public Member Functions | |
CSCAnodeLCTAnalyzer () | |
std::vector< CSCAnodeLayerInfo > | getSimInfo (const CSCALCTDigi &alct, const CSCDetId &alctId, const CSCWireDigiCollection *wiredc, const edm::PSimHitContainer *allSimHits) |
double | getWGEta (const CSCDetId &layerId, const int wiregroup) |
int | nearestWG (const std::vector< CSCAnodeLayerInfo > &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 (CSCAnodeLayerInfo &info, const edm::PSimHitContainer *allSimHits) |
std::vector< CSCAnodeLayerInfo > | lctDigis (const CSCALCTDigi &alct, const CSCDetId &alctId, const CSCWireDigiCollection *wiredc) |
void | preselectDigis (const int alct_bx, const CSCDetId &layerId, const CSCWireDigiCollection *wiredc, std::map< int, CSCWireDigi > &digiMap) |
Private Attributes | |
const CSCGeometry * | geom_ |
Static Private Attributes | |
static bool | debug = true |
static bool | doME1A = true |
Class for Monte Carlo studies of anode LCTs. Returns a vector of up to six (one per layer) CSCAnodeLayerInfo objects for a given ALCT. They contain the list of wire digis used to build a given ALCT, and the list of associated (closest) SimHits.
Definition at line 25 of file CSCAnodeLCTAnalyzer.h.
|
inline |
|
private |
Definition at line 172 of file CSCAnodeLCTAnalyzer.cc.
References CSCDetId::chamber(), debug, spr::deltaEta, CSCDetId::endcap(), PV3DBase< T, PVType, FrameType >::eta(), info(), CSCDetId::layer(), LogDebug, PSimHit::particleType(), create_new_empty_test_file_cfg::prd, CSCDetId::ring(), FastTrackerRecHitCombiner_cfi::simHits, CSCDetId::station(), and GeomDet::toGlobal().
vector< CSCAnodeLayerInfo > CSCAnodeLCTAnalyzer::getSimInfo | ( | const CSCALCTDigi & | alct, |
const CSCDetId & | alctId, | ||
const CSCWireDigiCollection * | wiredc, | ||
const edm::PSimHitContainer * | allSimHits | ||
) |
Constructs vector of CSCAnodeLayerInfo objects for ALCT.
Definition at line 16 of file CSCAnodeLCTAnalyzer.cc.
References Exception, and CSCConstants::NUM_LAYERS.
Referenced by CSCTriggerPrimitivesReader::calcResolution().
double CSCAnodeLCTAnalyzer::getWGEta | ( | const CSCDetId & | layerId, |
const int | wiregroup | ||
) |
Returns eta position of a given wiregroup.
Definition at line 332 of file CSCAnodeLCTAnalyzer.cc.
References PVValHelper::eta, PV3DBase< T, PVType, FrameType >::eta(), CSCLayer::geometry(), CSCLayerGeometry::localCenterOfWireGroup(), CSCConstants::MAX_NUM_WIRES, and GeomDet::toGlobal().
Referenced by CSCTriggerPrimitivesReader::calcResolution().
|
private |
Definition at line 49 of file CSCAnodeLCTAnalyzer.cc.
References CSCLayerInfo< TYPE >::addComponent(), CSCPatternBank::alct_keywire_offset, CSCPatternBank::alct_pattern_envelope, CSCPatternBank::alct_pattern_mask_open, CSCDetId::chamber(), CSCLayerInfo< TYPE >::clear(), debug, CSCDetId::endcap(), CSCALCTDigi::getAccelerator(), CSCALCTDigi::getBX(), CSCALCTDigi::getCollisionB(), CSCLayerInfo< TYPE >::getId(), CSCALCTDigi::getKeyWG(), CSCDetId::layer(), LogDebug, CSCConstants::MAX_NUM_WIRES, CSCConstants::MAX_WIRES_IN_PATTERN, CSCConstants::NUM_LAYERS, CSCDetId::ring(), CSCLayerInfo< TYPE >::setId(), and CSCDetId::station().
int CSCAnodeLCTAnalyzer::nearestWG | ( | const std::vector< CSCAnodeLayerInfo > & | allLayerInfo, |
double & | closestPhi, | ||
double & | closestEta | ||
) |
Finds wiregroup, phi and eta of the nearest SimHit for comparison to the reconstructed values.
Definition at line 243 of file CSCAnodeLCTAnalyzer.cc.
References debug, std::empty(), PV3DBase< T, PVType, FrameType >::eta(), CSCLayer::geometry(), mps_fire::i, CSCConstants::KEY_ALCT_LAYER, CSCDetId::layer(), PSimHit::localPosition(), LogDebug, M_PI, CSCConstants::MAX_NUM_WIRES, CSCLayerGeometry::nearestWire(), PV3DBase< T, PVType, FrameType >::phi(), GeomDet::toGlobal(), and CSCLayerGeometry::wireGroup().
Referenced by CSCTriggerPrimitivesReader::calcResolution().
|
private |
Definition at line 125 of file CSCAnodeLCTAnalyzer.cc.
References debug, CSCDetId::layer(), and LogDebug.
|
inlinestatic |
Turns on the debug flag for this class.
Definition at line 47 of file CSCAnodeLCTAnalyzer.h.
References debug.
void CSCAnodeLCTAnalyzer::setGeometry | ( | const CSCGeometry * | geom | ) |
Cache pointer to geometry for current event.
Definition at line 330 of file CSCAnodeLCTAnalyzer.cc.
References relativeConstraints::geom.
Referenced by CSCTriggerPrimitivesReader::calcResolution().
|
inlinestatic |
Turns off the debug flag for this class (default).
Definition at line 50 of file CSCAnodeLCTAnalyzer.h.
References debug.
|
staticprivate |
Definition at line 53 of file CSCAnodeLCTAnalyzer.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 CSCAnodeLCTAnalyzer.h.
|
private |
Definition at line 59 of file CSCAnodeLCTAnalyzer.h.