#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 24 of file CSCAnodeLCTAnalyzer.h.
|
inline |
Default constructor.
Definition at line 28 of file CSCAnodeLCTAnalyzer.h.
References relativeConstraints::geom, getSimInfo(), getWGEta(), nearestWG(), and setGeometry().
|
private |
Definition at line 193 of file CSCAnodeLCTAnalyzer.cc.
References CSCLayerInfo< TYPE >::addComponent(), CSCDetId::chamber(), debug, spr::deltaEta, CSCDetId::endcap(), PV3DBase< T, PVType, FrameType >::eta(), CSCLayerInfo< TYPE >::getId(), CSCLayerInfo< TYPE >::getRecDigis(), CSCDetId::layer(), LogDebug, PSimHit::particleType(), CSCDetId::ring(), trackerHits::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 29 of file CSCAnodeLCTAnalyzer.cc.
References Exception, and CSCConstants::NUM_LAYERS.
Referenced by CSCTriggerPrimitivesReader::calcResolution(), and CSCAnodeLCTAnalyzer().
double CSCAnodeLCTAnalyzer::getWGEta | ( | const CSCDetId & | layerId, |
const int | wiregroup | ||
) |
Returns eta position of a given wiregroup.
Definition at line 366 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(), and CSCAnodeLCTAnalyzer().
|
private |
Definition at line 63 of file CSCAnodeLCTAnalyzer.cc.
References CSCLayerInfo< TYPE >::addComponent(), CSCDetId::chamber(), CSCLayerInfo< TYPE >::clear(), debug, CSCDetId::endcap(), CSCALCTDigi::getAccelerator(), CSCALCTDigi::getBX(), CSCALCTDigi::getCollisionB(), CSCLayerInfo< TYPE >::getId(), CSCALCTDigi::getKeyWG(), CSCDetId::layer(), LogDebug, RecoTauDiscriminantConfiguration::mask, CSCConstants::MAX_NUM_WIRES, CSCConstants::MAX_WIRES_IN_PATTERN, CSCConstants::NUM_LAYERS, CSCAnodeLCTProcessor::pattern_envelope, CSCAnodeLCTProcessor::pattern_mask_open, 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 271 of file CSCAnodeLCTAnalyzer.cc.
References debug, 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(), findQualityFiles::size, GeomDet::toGlobal(), and CSCLayerGeometry::wireGroup().
Referenced by CSCTriggerPrimitivesReader::calcResolution(), and CSCAnodeLCTAnalyzer().
|
private |
Definition at line 143 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 362 of file CSCAnodeLCTAnalyzer.cc.
References relativeConstraints::geom.
Referenced by CSCTriggerPrimitivesReader::calcResolution(), and CSCAnodeLCTAnalyzer().
|
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.