|
|
#include <CSCEfficiency.h>
|
| CSCEfficiency (const edm::ParameterSet &pset) |
| Constructor. More...
|
|
| ~CSCEfficiency () override |
| Destructor. More...
|
|
| EDFilter () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDFilter () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
std::vector< bool > const & | recordProvenanceList () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
bool | applyTrigger (edm::Handle< edm::TriggerResults > &hltR, const edm::TriggerNames &triggerNames) |
|
void | beginJob () override |
|
void | chamberCandidates (int station, int ring, float phi, std::vector< int > &coupleOfChambers) |
|
bool | checkLocal (double yLocal, double yBoundary, int station, int ring) |
|
void | chooseDirection (CLHEP::Hep3Vector &innerPosition, CLHEP::Hep3Vector &outerPosition) |
|
bool | efficienciesPerChamber (CSCDetId &id, const CSCChamber *cscChamber, FreeTrajectoryState &ftsChamber) |
|
void | endJob () override |
|
double | extrapolate1D (double initPosition, double initDirection, double parameterOfTheLine) |
|
void | fillDigiInfo (edm::Handle< CSCALCTDigiCollection > &alcts, edm::Handle< CSCCLCTDigiCollection > &clcts, edm::Handle< CSCCorrelatedLCTDigiCollection > &correlatedlcts, edm::Handle< CSCWireDigiCollection > &wires, edm::Handle< CSCStripDigiCollection > &strips, edm::Handle< edm::PSimHitContainer > &simhits, edm::Handle< CSCRecHit2DCollection > &rechits, edm::Handle< CSCSegmentCollection > &segments, edm::ESHandle< CSCGeometry > &cscGeom) |
|
void | fillLCT_info (edm::Handle< CSCALCTDigiCollection > &alcts, edm::Handle< CSCCLCTDigiCollection > &clcts, edm::Handle< CSCCorrelatedLCTDigiCollection > &correlatedlcts) |
|
void | fillRechitsSegments_info (edm::Handle< CSCRecHit2DCollection > &rechits, edm::Handle< CSCSegmentCollection > &segments, edm::ESHandle< CSCGeometry > &cscGeom) |
|
void | fillSimhit_info (edm::Handle< edm::PSimHitContainer > &simHits) |
|
void | fillStrips_info (edm::Handle< CSCStripDigiCollection > &strips) |
|
void | fillWG_info (edm::Handle< CSCWireDigiCollection > &wires, edm::ESHandle< CSCGeometry > &cscGeom) |
|
bool | filter (edm::Event &event, const edm::EventSetup &eventSetup) override |
|
FreeTrajectoryState | getFromCLHEP (const CLHEP::Hep3Vector &p3, const CLHEP::Hep3Vector &r3, int charge, const AlgebraicSymMatrix66 &cov, const MagneticField *field) |
|
void | getFromFTS (const FreeTrajectoryState &fts, CLHEP::Hep3Vector &p3, CLHEP::Hep3Vector &r3, int &charge, AlgebraicSymMatrix66 &cov) |
|
bool | inSensitiveLocalRegion (double xLocal, double yLocal, int station, int ring) |
|
void | linearExtrapolation (GlobalPoint initialPosition, GlobalVector initialDirection, float zSurface, std::vector< float > &posZY) |
|
double | lineParameter (double initZPosition, double destZPosition, double initZDirection) |
|
TrajectoryStateOnSurface | propagate (FreeTrajectoryState &ftsStart, const BoundPlane &bp) |
|
const Propagator * | propagator (std::string propagatorName) const |
|
bool | recHitSegment_Efficiencies (CSCDetId &cscDetId, const CSCChamber *cscChamber, FreeTrajectoryState &ftsChamber) |
|
bool | recSimHitEfficiency (CSCDetId &id, FreeTrajectoryState &ftsChamber) |
|
void | returnTypes (CSCDetId &id, int &ec, int &st, int &rg, int &ch, int &secondRing) |
|
void | ringCandidates (int station, float absEta, std::map< std::string, bool > &chamberTypes) |
|
bool | stripWire_Efficiencies (CSCDetId &cscDetId, FreeTrajectoryState &ftsChamber) |
|
|
typedef EDFilter | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
| declare what type of product will make and with which optional label More...
|
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<BranchType B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<Transition B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
ProducesCollector | producesCollector () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Efficiency calculations Stoyan Stoynev, Northwestern University
Definition at line 114 of file CSCEfficiency.h.
◆ CSCEfficiency()
Constructor.
Definition at line 1646 of file CSCEfficiency.cc.
1650 const float Ymin = -165;
1651 const float Ymax = 165;
1652 const int nYbins =
int((Ymax - Ymin) / 2);
1653 const float Layer_min = -0.5;
1654 const float Layer_max = 9.5;
1655 const int nLayer_bins =
int(Layer_max - Layer_min);
1660 rootFileName =
pset.getUntrackedParameter<
string>(
"rootFileName",
"cscHists.root");
1662 isData =
pset.getUntrackedParameter<
bool>(
"runOnData",
true);
1663 isIPdata =
pset.getUntrackedParameter<
bool>(
"IPdata",
false);
1664 isBeamdata =
pset.getUntrackedParameter<
bool>(
"Beamdata",
false);
1666 useDigis =
pset.getUntrackedParameter<
bool>(
"useDigis",
true);
1668 minP =
pset.getUntrackedParameter<
double>(
"minP", 20.);
1669 maxP =
pset.getUntrackedParameter<
double>(
"maxP", 100.);
1671 minTrackHits =
pset.getUntrackedParameter<
unsigned int>(
"minTrackHits", 10);
1693 useTrigger =
pset.getUntrackedParameter<
bool>(
"useTrigger",
false);
1697 myTriggers =
pset.getParameter<std::vector<std::string> >(
"myTriggers");
1698 andOr =
pset.getUntrackedParameter<
bool>(
"andOr");
1714 sprintf(SpecName,
"DataFlow");
1715 DataFlow =
new TH1F(SpecName,
"Data flow;condition number;entries", 40, -0.5, 39.5);
1717 sprintf(SpecName,
"TriggersFired");
1718 TriggersFired =
new TH1F(SpecName,
"Triggers fired;trigger number;entries", 140, -0.5, 139.5);
1721 float minChan = -0.5;
1722 float maxChan = 49.5;
1724 sprintf(SpecName,
"ALCTPerEvent");
1725 ALCTPerEvent =
new TH1F(SpecName,
"ALCTs per event;N digis;entries", Chan, minChan, maxChan);
1727 sprintf(SpecName,
"CLCTPerEvent");
1728 CLCTPerEvent =
new TH1F(SpecName,
"CLCTs per event;N digis;entries", Chan, minChan, maxChan);
1730 sprintf(SpecName,
"recHitsPerEvent");
1731 recHitsPerEvent =
new TH1F(SpecName,
"RecHits per event;N digis;entries", 150, -0.5, 149.5);
1733 sprintf(SpecName,
"segmentsPerEvent");
1734 segmentsPerEvent =
new TH1F(SpecName,
"segments per event;N digis;entries", Chan, minChan, maxChan);
1738 map<std::string, bool>::iterator iter;
1739 for (
int ec = 0; ec < 2; ++ec) {
1740 for (
int st = 0; st < 4; ++st) {
1742 sprintf(SpecName,
"Stations__E%d_S%d", ec + 1, st + 1);
1747 sprintf(SpecName,
"segmentChi2_ndf_St%d", st + 1);
1748 StHist[ec][st].
segmentChi2_ndf =
new TH1F(SpecName,
"Chi2/ndf of a segment;chi2/ndf;entries", 100, 0., 20.);
1750 sprintf(SpecName,
"hitsInSegment_St%d", st + 1);
1751 StHist[ec][st].
hitsInSegment =
new TH1F(SpecName,
"Number of hits in a segment;nHits;entries", 7, -0.5, 6.5);
1757 sprintf(SpecName,
"AllSegments_eta_St%d", st + 1);
1758 StHist[ec][st].
AllSegments_eta =
new TH1F(SpecName,
"All segments in eta;eta;entries", Chan, minChan, maxChan);
1760 sprintf(SpecName,
"EfficientSegments_eta_St%d", st + 1);
1762 new TH1F(SpecName,
"Efficient segments in eta;eta;entries", Chan, minChan, maxChan);
1764 sprintf(SpecName,
"ResidualSegments_St%d", st + 1);
1765 StHist[ec][st].
ResidualSegments =
new TH1F(SpecName,
"Residual (segments);residual,cm;entries", 75, 0., 15.);
1771 float minChan2 = -800.;
1772 float maxChan2 = 800.;
1774 sprintf(SpecName,
"EfficientSegments_XY_St%d", st + 1);
1776 new TH2F(SpecName,
"Efficient segments in XY;X;Y", Chan, minChan, maxChan, Chan2, minChan2, maxChan2);
1777 sprintf(SpecName,
"InefficientSegments_XY_St%d", st + 1);
1779 new TH2F(SpecName,
"Inefficient segments in XY;X;Y", Chan, minChan, maxChan, Chan2, minChan2, maxChan2);
1784 sprintf(SpecName,
"EfficientALCT_momTheta_St%d", st + 1);
1786 new TH1F(SpecName,
"Efficient ALCT in theta (momentum);theta, rad;entries", Chan, minChan, maxChan);
1788 sprintf(SpecName,
"InefficientALCT_momTheta_St%d", st + 1);
1790 new TH1F(SpecName,
"Inefficient ALCT in theta (momentum);theta, rad;entries", Chan, minChan, maxChan);
1795 sprintf(SpecName,
"EfficientCLCT_momPhi_St%d", st + 1);
1797 new TH1F(SpecName,
"Efficient CLCT in phi (momentum);phi, rad;entries", Chan, minChan, maxChan);
1799 sprintf(SpecName,
"InefficientCLCT_momPhi_St%d", st + 1);
1801 new TH1F(SpecName,
"Inefficient CLCT in phi (momentum);phi, rad;entries", Chan, minChan, maxChan);
1804 for (
int rg = 0; rg < 3; ++rg) {
1805 if (0 != st && rg > 1) {
1807 }
else if (1 == rg && 3 == st) {
1811 if (0 != st && 0 == rg && iChamber > 18) {
1815 sprintf(SpecName,
"Chambers__E%d_S%d_R%d_Chamber_%d", ec + 1, st + 1, rg + 1, iChamber);
1820 sprintf(SpecName,
"EfficientRechits_inSegment_Ch%d", iChamber);
1822 SpecName,
"Existing RecHit given a segment;layers (1-6);entries", nLayer_bins, Layer_min, Layer_max);
1824 sprintf(SpecName,
"InefficientSingleHits_Ch%d", iChamber);
1826 SpecName,
"Single RecHits not in the segment;layers (1-6);entries ", nLayer_bins, Layer_min, Layer_max);
1828 sprintf(SpecName,
"AllSingleHits_Ch%d", iChamber);
1830 SpecName,
"Single RecHits given a segment; layers (1-6);entries", nLayer_bins, Layer_min, Layer_max);
1832 sprintf(SpecName,
"digiAppearanceCount_Ch%d", iChamber);
1835 "Digi appearance (no-yes): segment(0,1), ALCT(2,3), CLCT(4,5), CorrLCT(6,7); digi type;entries",
1843 sprintf(SpecName,
"EfficientALCT_dydz_Ch%d", iChamber);
1845 new TH1F(SpecName,
"Efficient ALCT; local dy/dz (ME 3 and 4 flipped);entries", Chan, minChan, maxChan);
1847 sprintf(SpecName,
"InefficientALCT_dydz_Ch%d", iChamber);
1849 new TH1F(SpecName,
"Inefficient ALCT; local dy/dz (ME 3 and 4 flipped);entries", Chan, minChan, maxChan);
1854 sprintf(SpecName,
"EfficientCLCT_dxdz_Ch%d", iChamber);
1856 new TH1F(SpecName,
"Efficient CLCT; local dxdz;entries", Chan, minChan, maxChan);
1858 sprintf(SpecName,
"InefficientCLCT_dxdz_Ch%d", iChamber);
1860 new TH1F(SpecName,
"Inefficient CLCT; local dxdz;entries", Chan, minChan, maxChan);
1862 sprintf(SpecName,
"EfficientRechits_good_Ch%d", iChamber);
1864 SpecName,
"Existing RecHit - sensitive area only;layers (1-6);entries", nLayer_bins, Layer_min, Layer_max);
1866 sprintf(SpecName,
"EfficientStrips_Ch%d", iChamber);
1868 new TH1F(SpecName,
"Existing strip;layer (1-6); entries", nLayer_bins, Layer_min, Layer_max);
1870 sprintf(SpecName,
"EfficientWireGroups_Ch%d", iChamber);
1872 new TH1F(SpecName,
"Existing WireGroups;layer (1-6); entries ", nLayer_bins, Layer_min, Layer_max);
1874 sprintf(SpecName,
"StripWiresCorrelations_Ch%d", iChamber);
1876 new TH1F(SpecName,
"StripWire correlations;; entries ", 5, 0.5, 5.5);
1881 sprintf(SpecName,
"NoWires_momTheta_Ch%d", iChamber);
1884 "No wires (all strips present) - in theta (momentum);theta, rad;entries",
1892 sprintf(SpecName,
"NoStrips_momPhi_Ch%d", iChamber);
1894 SpecName,
"No strips (all wires present) - in phi (momentum);phi, rad;entries", Chan, minChan, maxChan);
1896 for (
int iLayer = 0; iLayer < 6; iLayer++) {
1897 sprintf(SpecName,
"Y_InefficientRecHits_inSegment_Ch%d_L%d", iChamber, iLayer);
1900 "Missing RecHit/layer in a segment (local system, whole chamber);Y, cm; entries",
1905 sprintf(SpecName,
"Y_EfficientRecHits_inSegment_Ch%d_L%d", iChamber, iLayer);
1908 "Efficient (extrapolated from the segment) RecHit/layer in a segment (local system, whole "
1909 "chamber);Y, cm; entries",
1917 sprintf(SpecName,
"Phi_InefficientRecHits_inSegment_Ch%d_L%d", iChamber, iLayer);
1920 "Missing RecHit/layer in a segment (local system, whole chamber);Phi, rad; entries",
1925 sprintf(SpecName,
"Phi_EfficientRecHits_inSegment_Ch%d_L%d", iChamber, iLayer);
1928 "Efficient (extrapolated from the segment) in a segment (local system, whole chamber);Phi, "
1935 sprintf(SpecName,
"Sim_Rechits_Ch%d", iChamber);
1937 new TH1F(SpecName,
"Existing RecHit (Sim);layers (1-6);entries", nLayer_bins, Layer_min, Layer_max);
1939 sprintf(SpecName,
"Sim_Simhits_Ch%d", iChamber);
1941 new TH1F(SpecName,
"Existing SimHit (Sim);layers (1-6);entries", nLayer_bins, Layer_min, Layer_max);
References PA_MinBiasSkim_cff::andOr, FirstCh, createfilelist::int, HLTBitAnalyser_cfi::isData, distMuonMETValueMapProducer_cff::maxNormChi2, RecoMuonValidator_cfi::maxP, alignBH_cfg::minP, HLT_2018_cff::minTrackHits, MuonServiceProxy_cff::MuonServiceProxy, NumCh, mps_fire::Path, muonDTDigis_cfi::pset, CSCSkim_cfi::rootFileName, AlCaHLTBitMon_QueryRunRegistry::string, and interactiveExample::theFile.
◆ ~CSCEfficiency()
CSCEfficiency::~CSCEfficiency |
( |
| ) |
|
|
override |
Destructor.
Definition at line 1960 of file CSCEfficiency.cc.
1968 std::vector<float> eff(2);
1971 std::map<std::string, bool> chamberTypes;
1972 chamberTypes[
"ME11"] =
false;
1973 chamberTypes[
"ME12"] =
false;
1974 chamberTypes[
"ME13"] =
false;
1975 chamberTypes[
"ME21"] =
false;
1976 chamberTypes[
"ME22"] =
false;
1977 chamberTypes[
"ME31"] =
false;
1978 chamberTypes[
"ME32"] =
false;
1979 chamberTypes[
"ME41"] =
false;
1981 map<std::string, bool>::iterator iter;
1982 std::cout <<
" Writing proper histogram structure (patience)..." << std::endl;
1983 for (
int ec = 0; ec < 2; ++ec) {
1984 for (
int st = 0; st < 4; ++st) {
1985 snprintf(SpecName,
sizeof(SpecName),
"Stations__E%d_S%d", ec + 1, st + 1);
1998 for (
int rg = 0; rg < 3; ++rg) {
1999 if (0 != st && rg > 1) {
2001 }
else if (1 == rg && 3 == st) {
2005 if (0 != st && 0 == rg && iChamber > 18) {
2008 snprintf(SpecName,
sizeof(SpecName),
"Chambers__E%d_S%d_R%d_Chamber_%d", ec + 1, st + 1, rg + 1, iChamber);
2025 for (
unsigned int iLayer = 0; iLayer < 6; iLayer++) {
2045 snprintf(SpecName,
sizeof(SpecName),
"AllChambers");
References trigObjTnPSource_cfi::bins, gather_cfg::cout, PixelTestBeamValidation_cfi::Efficiency, FirstCh, NumCh, and interactiveExample::theFile.
◆ applyTrigger()
◆ beginJob()
void CSCEfficiency::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ chamberCandidates()
void CSCEfficiency::chamberCandidates |
( |
int |
station, |
|
|
int |
ring, |
|
|
float |
phi, |
|
|
std::vector< int > & |
coupleOfChambers |
|
) |
| |
|
private |
Definition at line 1017 of file CSCEfficiency.cc.
1018 coupleOfChambers.clear();
1020 float phi_zero = 0.;
1021 float phi_const = 2. *
M_PI / 36.;
1022 int last_chamber = 36;
1023 int first_chamber = 1;
1030 std::cout <<
" info: negative phi = " <<
phi << std::endl;
1033 float chamber_float = (
phi - phi_zero) / phi_const;
1034 int chamber_int =
int(chamber_float);
1035 if (chamber_float -
float(chamber_int) - 0.5 < 0.) {
1036 if (0 != chamber_int) {
1037 coupleOfChambers.push_back(chamber_int);
1039 coupleOfChambers.push_back(last_chamber);
1041 coupleOfChambers.push_back(chamber_int + 1);
1044 coupleOfChambers.push_back(chamber_int + 1);
1045 if (last_chamber != chamber_int + 1) {
1046 coupleOfChambers.push_back(chamber_int + 2);
1048 coupleOfChambers.push_back(first_chamber);
1052 std::cout <<
" phi = " <<
phi <<
" phi_zero = " << phi_zero <<
" phi_const = " << phi_const
1053 <<
" candidate chambers: first ch = " << coupleOfChambers[0] <<
" second ch = " << coupleOfChambers[1]
References gather_cfg::cout, createfilelist::int, M_PI, relativeConstraints::ring, and relativeConstraints::station.
◆ checkLocal()
bool CSCEfficiency::checkLocal |
( |
double |
yLocal, |
|
|
double |
yBoundary, |
|
|
int |
station, |
|
|
int |
ring |
|
) |
| |
|
private |
Definition at line 606 of file CSCEfficiency.cc.
609 std::vector<float> deadZoneCenter(6);
610 const float deadZoneHalf = 0.32 * 7 / 2;
615 deadZoneCenter[0] = -162.48;
616 deadZoneCenter[1] = -81.8744;
617 deadZoneCenter[2] = -21.18165;
618 deadZoneCenter[3] = 39.51105;
619 deadZoneCenter[4] = 100.2939;
620 deadZoneCenter[5] = 160.58;
622 if (yLocal > yBoundary && ((yLocal > deadZoneCenter[0] + cutZone && yLocal < deadZoneCenter[1] - cutZone) ||
623 (yLocal > deadZoneCenter[1] + cutZone && yLocal < deadZoneCenter[2] - cutZone) ||
624 (yLocal > deadZoneCenter[2] + cutZone && yLocal < deadZoneCenter[3] - cutZone) ||
625 (yLocal > deadZoneCenter[3] + cutZone && yLocal < deadZoneCenter[4] - cutZone) ||
626 (yLocal > deadZoneCenter[4] + cutZone && yLocal < deadZoneCenter[5] - cutZone))) {
629 }
else if (1 ==
ring) {
631 deadZoneCenter[0] = -95.94;
632 deadZoneCenter[1] = -27.47;
633 deadZoneCenter[2] = 33.67;
634 deadZoneCenter[3] = 93.72;
636 deadZoneCenter[0] = -85.97;
637 deadZoneCenter[1] = -36.21;
638 deadZoneCenter[2] = 23.68;
639 deadZoneCenter[3] = 84.04;
641 deadZoneCenter[0] = -75.82;
642 deadZoneCenter[1] = -26.14;
643 deadZoneCenter[2] = 23.85;
644 deadZoneCenter[3] = 73.91;
646 if (yLocal > yBoundary && ((yLocal > deadZoneCenter[0] + cutZone && yLocal < deadZoneCenter[1] - cutZone) ||
647 (yLocal > deadZoneCenter[1] + cutZone && yLocal < deadZoneCenter[2] - cutZone) ||
648 (yLocal > deadZoneCenter[2] + cutZone && yLocal < deadZoneCenter[3] - cutZone))) {
654 deadZoneCenter[0] = -83.155;
655 deadZoneCenter[1] = -22.7401;
656 deadZoneCenter[2] = 27.86665;
657 deadZoneCenter[3] = 81.005;
658 if (yLocal > yBoundary && ((yLocal > deadZoneCenter[0] + cutZone && yLocal < deadZoneCenter[1] - cutZone) ||
659 (yLocal > deadZoneCenter[1] + cutZone && yLocal < deadZoneCenter[2] - cutZone) ||
660 (yLocal > deadZoneCenter[2] + cutZone && yLocal < deadZoneCenter[3] - cutZone))) {
663 }
else if (2 ==
ring) {
664 deadZoneCenter[0] = -86.285;
665 deadZoneCenter[1] = -32.88305;
666 deadZoneCenter[2] = 32.867423;
667 deadZoneCenter[3] = 88.205;
668 if (yLocal > (yBoundary) && ((yLocal > deadZoneCenter[0] + cutZone && yLocal < deadZoneCenter[1] - cutZone) ||
669 (yLocal > deadZoneCenter[1] + cutZone && yLocal < deadZoneCenter[2] - cutZone) ||
670 (yLocal > deadZoneCenter[2] + cutZone && yLocal < deadZoneCenter[3] - cutZone))) {
674 deadZoneCenter[0] = -81.0;
675 deadZoneCenter[1] = 81.0;
676 if (yLocal > (yBoundary) && ((yLocal > deadZoneCenter[0] + cutZone && yLocal < deadZoneCenter[1] - cutZone))) {
References relativeConstraints::ring, and relativeConstraints::station.
◆ chooseDirection()
void CSCEfficiency::chooseDirection |
( |
CLHEP::Hep3Vector & |
innerPosition, |
|
|
CLHEP::Hep3Vector & |
outerPosition |
|
) |
| |
|
private |
◆ efficienciesPerChamber()
Definition at line 1058 of file CSCEfficiency.cc.
1061 int ec, st, rg, ch, secondRing;
1067 std::cout <<
" local dir = " << localDir << std::endl;
1070 float dxdz = localDir.
x() / localDir.
z();
1071 float dydz = localDir.
y() / localDir.
z();
1072 if (2 == st || 3 == st) {
1074 std::cout <<
"st 3 or 4 ... flip dy/dz" << std::endl;
1090 bool firstCondition = !
allSegments[ec][st][rg][ch].empty() ?
true :
false;
1091 bool secondCondition =
false;
1093 if (secondRing > -1) {
1094 secondCondition = !
allSegments[ec][st][secondRing][ch].empty() ?
true :
false;
1096 if (firstCondition || secondCondition) {
1108 firstCondition =
allALCT[ec][st][rg][ch];
1109 secondCondition =
false;
1110 if (secondRing > -1) {
1111 secondCondition =
allALCT[ec][st][secondRing][ch];
1113 if (firstCondition || secondCondition) {
1132 printf(
"\t\tendcap/station/ring/chamber: %i/%i/%i/%i\n", ec + 1, st + 1, rg + 1, ch + 1);
1137 firstCondition =
allCLCT[ec][st][rg][ch];
1138 secondCondition =
false;
1139 if (secondRing > -1) {
1140 secondCondition =
allCLCT[ec][st][secondRing][ch];
1142 if (firstCondition || secondCondition) {
1160 printf(
"\t\tendcap/station/ring/chamber: %i/%i/%i/%i\n", ec + 1, st + 1, rg + 1, ch + 1);
1166 secondCondition =
false;
1167 if (secondRing > -1) {
1168 secondCondition =
allCorrLCT[ec][st][secondRing][ch];
1170 if (firstCondition || secondCondition) {
References gather_cfg::cout, BeamSpotFakeParameters_cfi::dxdz, BeamSpotFakeParameters_cfi::dydz, FreeTrajectoryState::momentum(), MillePedeFileConverter_cfg::out, PV3DBase< T, PVType, FrameType >::phi(), PV3DBase< T, PVType, FrameType >::theta(), GeomDet::toLocal(), funct::true, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
◆ endJob()
void CSCEfficiency::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ extrapolate1D()
double CSCEfficiency::extrapolate1D |
( |
double |
initPosition, |
|
|
double |
initDirection, |
|
|
double |
parameterOfTheLine |
|
) |
| |
|
private |
Definition at line 1503 of file CSCEfficiency.cc.
1504 double extrapolatedPosition = initPosition + initDirection * parameterOfTheLine;
1505 return extrapolatedPosition;
◆ fillDigiInfo()
◆ fillLCT_info()
Definition at line 721 of file CSCEfficiency.cc.
732 if ((*digiIt).isValid()) {
733 allALCT[
id.endcap() - 1][
id.station() - 1][
id.ring() - 1][
id.chamber() -
FirstCh] =
true;
743 std::vector<CSCCLCTDigi>::const_iterator digiIt = (*j).second.first;
744 std::vector<CSCCLCTDigi>::const_iterator
last = (*j).second.second;
745 for (; digiIt !=
last; ++digiIt) {
747 if ((*digiIt).isValid()) {
748 allCLCT[
id.endcap() - 1][
id.station() - 1][
id.ring() - 1][
id.chamber() -
FirstCh] =
true;
756 std::vector<CSCCorrelatedLCTDigi>::const_iterator digiIt = (*j).second.first;
757 std::vector<CSCCorrelatedLCTDigi>::const_iterator
last = (*j).second.second;
758 for (; digiIt !=
last; ++digiIt) {
760 if ((*digiIt).isValid()) {
761 allCorrLCT[
id.endcap() - 1][
id.station() - 1][
id.ring() - 1][
id.chamber() -
FirstCh] =
true;
References FirstCh, dqmiolumiharvest::j, dqmdumpme::last, and FastTimerService_cff::range.
◆ fillRechitsSegments_info()
Definition at line 844 of file CSCEfficiency.cc.
851 printf(
" The size of the rechit collection is %i\n",
int(
rechits->size()));
857 for (recIt =
rechits->begin(); recIt !=
rechits->end(); recIt++) {
862 LocalPoint rhitlocal = (*recIt).localPosition();
863 LocalError rerrlocal = (*recIt).localPositionError();
865 printf(
"\t\tendcap/station/ring/chamber/layer: %i/%i/%i/%i/%i\n",
871 printf(
"\t\tx,y,z: %f, %f, %f\texx,eey,exy: %f, %f, %f\tglobal x,y,z: %f, %f, %f \n",
882 std::pair<LocalPoint, bool> recHitPos((*recIt).localPosition(),
false);
883 allRechits[
id.endcap() - 1][
id.station() - 1][
id.ring() - 1][
id.chamber() -
FirstCh][
id.layer() - 1].push_back(
887 for (
int iE = 0; iE < 2; iE++) {
888 for (
int iS = 0; iS < 4; iS++) {
889 for (
int iR = 0; iR < 4; iR++) {
890 for (
int iC = 0; iC <
NumCh; iC++) {
892 for (
int iL = 0; iL < 6; iL++) {
909 printf(
" The size of the segment collection is %i\n",
int(segments->size()));
915 StHist[
id.endcap() - 1][
id.station() - 1].
segmentChi2_ndf->Fill((*it).chi2() / (*it).degreesOfFreedom());
919 std::cout <<
"\tposition(loc) = " << (*it).localPosition() <<
" error(loc) = " << (*it).localPositionError()
921 std::cout <<
"\t chi2/ndf = " << (*it).chi2() / (*it).degreesOfFreedom() <<
" nhits = " << (*it).nRecHits()
924 allSegments[
id.endcap() - 1][
id.station() - 1][
id.ring() - 1][
id.chamber() -
FirstCh].push_back(
925 make_pair((*it).localPosition(), (*it).localDirection()));
929 std::vector<CSCRecHit2D> theseRecHits = (*it).specificRecHits();
930 int nRH = (*it).nRecHits();
932 printf(
"\tGet the recHits for this segment.\t");
933 printf(
" nRH = %i\n", nRH);
937 for (vector<CSCRecHit2D>::const_iterator iRH = theseRecHits.begin(); iRH != theseRecHits.end(); iRH++) {
941 printf(
"\t%i RH\tendcap/station/ring/chamber/layer: %i/%i/%i/%i/%i\n",
960 if (fabs(xDiff) < 0.0001 && fabs(yDiff) < 0.0001) {
968 std::cout <<
" number of the rechit (from zero) in the segment = " << jRH << std::endl;
References relativeConstraints::chamber, CSCDetId::chamber(), gather_cfg::cout, std::empty(), CSCDetId::endcap(), makeMuonMisalignmentScenario::endcap, FirstCh, CSCDetId::layer(), CSCGeometry::layer(), NumCh, TrackInfoProducer_cfi::rechits, CSCDetId::ring(), relativeConstraints::ring, relativeConstraints::station, CSCDetId::station(), GeomDet::toGlobal(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), LocalError::yy(), and PV3DBase< T, PVType, FrameType >::z().
◆ fillSimhit_info()
◆ fillStrips_info()
Definition at line 793 of file CSCEfficiency.cc.
797 int largestADCValue = -1;
798 std::vector<CSCStripDigi>::const_iterator digiItr = (*j).second.first;
799 std::vector<CSCStripDigi>::const_iterator
last = (*j).second.second;
800 for (; digiItr !=
last; ++digiItr) {
801 int maxADC = largestADCValue;
802 int myStrip = digiItr->getStrip();
803 std::vector<int> myADCVals = digiItr->getADCCounts();
804 float thisPedestal = 0.5 * (
float)(myADCVals[0] + myADCVals[1]);
807 float peakADC = -1000.;
808 for (
unsigned int iCount = 0; iCount < myADCVals.size(); iCount++) {
809 diff = (
float)myADCVals[iCount] - thisPedestal;
811 if (myADCVals[iCount] > largestADCValue) {
812 largestADCValue = myADCVals[iCount];
819 if (largestADCValue > maxADC) {
820 maxADC = largestADCValue;
821 std::pair<int, float> LayerSignal(myStrip, peakADC);
825 allStrips[
id.endcap() - 1][
id.station() - 1][
id.ring() - 1][
id.chamber() - 1][
id.layer() - 1].clear();
826 allStrips[
id.endcap() - 1][
id.station() - 1][
id.ring() - 1][
id.chamber() - 1][
id.layer() - 1].push_back(
References change_name::diff, dqmMemoryStats::float, cms::cuda::for(), dqmiolumiharvest::j, dqmdumpme::last, DigiDM_cff::strips, and remoteMonitoring_LED_IterMethod_cfg::threshold.
◆ fillWG_info()
Definition at line 767 of file CSCEfficiency.cc.
774 std::vector<CSCWireDigi>::const_iterator digiItr = (*j).second.first;
775 std::vector<CSCWireDigi>::const_iterator
last = (*j).second.second;
777 for (; digiItr !=
last; ++digiItr) {
778 std::pair<int, float> WG_pos(digiItr->getWireGroup(), layerGeom->
yOfWireGroup(digiItr->getWireGroup()));
779 std::pair<std::pair<int, float>,
int> LayerSignal(WG_pos, digiItr->getTimeBin());
782 allWG[
id.endcap() - 1][
id.station() - 1][
id.ring() - 1][
id.chamber() -
FirstCh][
id.layer() - 1].push_back(
References FirstCh, dqmiolumiharvest::j, dqmdumpme::last, CSCGeometry::layer(), DigiDM_cff::wires, and CSCLayerGeometry::yOfWireGroup().
◆ filter()
Implements edm::EDFilter.
Definition at line 22 of file CSCEfficiency.cc.
35 printf(
"\n==enter==CSCEfficiency===== run %u\tevent %llu\tn Analyzed %i\n", iRun,
iEvent,
nEventsAnalyzed);
42 printf(
"\tget handles for digi collections\n");
48 printf(
"\tpass handles\n");
64 event.getByToken(
co_token, correlatedlcts);
70 event.getByToken(
se_token, segments);
71 event.getByToken(
tk_token, trackCollectionH);
76 printf(
"\tget the CSC geometry.\n");
84 bool triggerPassed =
true;
99 if (
theService->magneticField()->inTesla(gpZero).mag2() < 0.1) {
110 event.getByLabel(muonTag_,
muons);
113 event.getByLabel(
"offlineBeamSpot", beamSpotHandle);
116 std::vector<reco::MuonCollection::const_iterator> goodMuons_it;
117 unsigned int nPositiveZ = 0;
118 unsigned int nNegativeZ = 0;
119 float muonOuterZPosition = -99999.;
127 <<
" pt = " <<
muon->pt() <<
" eta = " <<
muon->eta() <<
" phi = " <<
muon->phi()
128 <<
" matches = " <<
muon->matches().size()
130 <<
" GLB/TR/STA = " <<
muon->isGlobalMuon() <<
"/" <<
muon->isTrackerMuon() <<
"/"
131 <<
muon->isStandAloneMuon() << std::endl;
133 if (!(
muon->isTrackerMuon() &&
muon->isGlobalMuon())) {
138 (
muon->isolationR03().sumPt +
muon->isolationR03().emEt +
muon->isolationR03().hadEt) /
muon->track()->pt();
140 std::cout <<
" relISO = " << relISO <<
" emVetoEt = " <<
muon->isolationR03().emVetoEt
142 <<
" dxy = " << fabs(
muon->track()->dxy(vertexBeamSpot.
position())) << std::endl;
146 fabs(
muon->track()->dxy(vertexBeamSpot.
position())) > 0.2 ||
muon->pt() < 6.) {
150 if (
muon->track()->hitPattern().numberOfValidPixelHits() < 1 ||
151 muon->track()->hitPattern().numberOfValidTrackerHits() < 11 ||
152 muon->combinedMuon()->hitPattern().numberOfValidMuonHits() < 1 ||
153 muon->combinedMuon()->normalizedChi2() > 10. ||
muon->numberOfMatches() < 2) {
157 float zOuter =
muon->combinedMuon()->outerPosition().z();
158 float rhoOuter =
muon->combinedMuon()->outerPosition().rho();
159 bool passDepth =
true;
162 if (fabs(zOuter) < 660. && rhoOuter > 400. && rhoOuter < 540.) {
167 else if (fabs(zOuter) > 550. && fabs(zOuter) < 650. && rhoOuter < 300.) {
172 else if (fabs(zOuter) > 680. && fabs(zOuter) < 880. && rhoOuter < 540.) {
179 goodMuons_it.push_back(
muon);
180 if (
muon->track()->momentum().z() > 0.) {
183 if (
muon->track()->momentum().z() < 0.) {
199 std::cout <<
" nNegativeZ = " << nNegativeZ <<
" nPositiveZ = " << nPositiveZ << std::endl;
201 if (nNegativeZ > 1 || nPositiveZ > 1) {
204 bool trackOK =
false;
206 std::cout <<
" goodMuons_it.size() = " << goodMuons_it.size() << std::endl;
208 for (
size_t iM = 0; iM < goodMuons_it.size(); ++iM) {
212 float deltaR =
pow(
track->phi() - goodMuons_it[iM]->track()->phi(), 2) +
213 pow(
track->eta() - goodMuons_it[iM]->track()->eta(), 2);
217 <<
" dPt = " <<
track->pt() - goodMuons_it[iM]->track()->pt() << std::endl;
219 if (
deltaR > 0.01 || fabs(
track->pt() - goodMuons_it[iM]->track()->pt()) > 0.1) {
226 muonOuterZPosition = goodMuons_it[iM]->combinedMuon()->outerPosition().z();
233 std::cout <<
" failed: trackOK " << std::endl;
246 if (
track->outerPosition().z() * trackTwo->outerPosition().z() > 0) {
253 std::cout <<
"i track = " <<
i <<
" P = " <<
track->p() <<
" chi2/ndf = " <<
track->normalizedChi2()
254 <<
" nSeg = " << segments->size() << std::endl;
261 <<
track->qoverpError() << std::endl;
264 <<
" outer position = " <<
track->outerPosition() << std::endl;
265 std::cout <<
"track eta (outer) = " <<
track->outerPosition().eta()
266 <<
" phi (outer) = " <<
track->outerPosition().phi() << std::endl;
267 if (fabs(
track->innerPosition().z()) > 500.) {
269 std::cout <<
" dump inner state MUON detid = " <<
debug.dumpMuonId(innerDetId) << std::endl;
271 if (fabs(
track->outerPosition().z()) > 500.) {
273 std::cout <<
" dump outer state MUON detid = " <<
debug.dumpMuonId(outerDetId) << std::endl;
289 float dpT_ov_pT = 0.;
290 if (fabs(
track->pt()) > 0.001) {
302 if (!segments->size()) {
310 if (
magField && (dpT_ov_pT > 0.5)) {
318 CLHEP::Hep3Vector r3T_inner(
track->innerPosition().x(),
track->innerPosition().y(),
track->innerPosition().z());
319 CLHEP::Hep3Vector r3T(
track->outerPosition().x(),
track->outerPosition().y(),
track->outerPosition().z());
322 CLHEP::Hep3Vector p3T(
track->outerMomentum().x(),
track->outerMomentum().y(),
track->outerMomentum().z());
323 CLHEP::Hep3Vector p3_propagated, r3_propagated;
326 cov_propagated *= 1
e-20;
330 std::cout <<
" p = " <<
track->p() <<
" norm chi2 = " <<
track->normalizedChi2() << std::endl;
331 std::cout <<
" dump the very first FTS = " <<
debug.dumpFTS(ftsStart) << std::endl;
336 if (
track->outerPosition().z() > 0) {
343 std::vector<CSCDetId> refME;
344 for (
int iS = 1; iS < 5; ++iS) {
345 for (
int iR = 1; iR < 4; ++iR) {
346 if (1 != iS && iR > 2) {
348 }
else if (4 == iS && iR > 1) {
355 for (
size_t iSt = 0; iSt < refME.size(); ++iSt) {
357 std::cout <<
"loop iStatation = " << iSt << std::endl;
358 std::cout <<
"refME[iSt]: st = " << refME[iSt].station() <<
" rg = " << refME[iSt].ring() << std::endl;
360 std::map<std::string, bool> chamberTypes;
361 chamberTypes[
"ME11"] =
false;
362 chamberTypes[
"ME12"] =
false;
363 chamberTypes[
"ME13"] =
false;
364 chamberTypes[
"ME21"] =
false;
365 chamberTypes[
"ME22"] =
false;
366 chamberTypes[
"ME31"] =
false;
367 chamberTypes[
"ME32"] =
false;
368 chamberTypes[
"ME41"] =
false;
375 std::cout <<
" dump base iStation detid = " <<
debug.dumpMuonId(detId) << std::endl;
376 std::cout <<
" dump FTS start = " <<
debug.dumpFTS(ftsStart) << std::endl;
383 std::cout <<
" dump FTS end = " <<
debug.dumpFTS(ftsStart) << std::endl;
385 float feta = fabs(r3_propagated.eta());
386 float phi = r3_propagated.phi();
390 map<std::string, bool>::iterator iter;
393 for (iter = chamberTypes.begin(); iter != chamberTypes.end(); iter++) {
396 if (iter->second && (iterations - 1) ==
int(iSt)) {
398 std::cout <<
" Chamber type " << iter->first <<
" is a candidate..." << std::endl;
399 std::cout <<
" station() = " << refME[iSt].station() <<
" ring() = " << refME[iSt].ring()
400 <<
" iSt = " << iSt << std::endl;
402 std::vector<int> coupleOfChambers;
406 for (
size_t iCh = 0; iCh < coupleOfChambers.size(); ++iCh) {
409 std::cout <<
" Check chamber N = " << coupleOfChambers.at(iCh) << std::endl;
413 [coupleOfChambers.at(iCh) -
FirstCh])) {
418 const BoundPlane bpCh = cscGeom->
idToDet(cscChamber->geographicalId())->surface();
420 float dz = fabs(bpCh.position().z() - zFTS);
421 float zDistInner =
track->innerPosition().z() - bpCh.position().z();
422 float zDistOuter =
track->outerPosition().z() - bpCh.position().z();
425 std::cout <<
" zIn = " <<
track->innerPosition().z() <<
" zOut = " <<
track->outerPosition().z()
426 <<
" zSurf = " << bpCh.position().z() << std::endl;
428 if (!
isIPdata && (zDistInner * zDistOuter > 0. || fabs(zDistInner) < 15. ||
429 fabs(zDistOuter) < 15.)) {
431 std::cout <<
" Not an intermediate (as defined) point... Skip." << std::endl;
436 if (fabs(muonOuterZPosition) - fabs(bpCh.position().z()) < 0 ||
437 fabs(muonOuterZPosition - bpCh.position().z()) < 15.) {
445 tSOSDest =
propagate(ftsStart, cscGeom->
idToDet(cscChamber->geographicalId())->surface());
450 std::cout <<
"TSOS not valid! Break." << std::endl;
455 std::cout <<
" info: dz<0.1" << std::endl;
459 bool inDeadZone =
false;
461 for (
int iLayer = 0; iLayer < 6; ++iLayer) {
462 bool extrapolationPassed =
true;
464 std::cout <<
" iLayer = " << iLayer <<
" dump FTS init = " <<
debug.dumpFTS(ftsInit) << std::endl;
465 std::cout <<
" dump detid = " <<
debug.dumpMuonId(cscChamber->geographicalId()) << std::endl;
466 std::cout <<
"Surface to propagate to: pos = " << cscChamber->layer(iLayer + 1)->surface().position()
467 <<
" eta = " << cscChamber->layer(iLayer + 1)->surface().position().eta()
468 <<
" phi = " << cscChamber->layer(iLayer + 1)->surface().position().phi() << std::endl;
471 tSOSDest =
propagate(ftsInit, cscChamber->layer(iLayer + 1)->surface());
475 std::cout <<
" Propagation between layers successful: dump FTS end = " <<
debug.dumpFTS(ftsInit)
480 std::cout <<
"Propagation between layers not successful - notValid TSOS" << std::endl;
481 extrapolationPassed =
false;
486 if (extrapolationPassed) {
487 GlobalPoint theExtrapolationPoint(r3_propagated.x(), r3_propagated.y(), r3_propagated.z());
488 LocalPoint theLocalPoint = cscChamber->layer(iLayer + 1)->toLocal(theExtrapolationPoint);
490 inDeadZone = (inDeadZone ||
492 theLocalPoint.x(), theLocalPoint.y(), refME[iSt].station(), refME[iSt].ring()));
494 std::cout <<
" Candidate chamber: extrapolated LocalPoint = " << theLocalPoint
495 <<
"inDeadZone = " << inDeadZone << std::endl;
510 std::cout <<
"Do efficiencies..." << std::endl;
513 bool angle_flag =
true;
526 std::cout <<
" Not in active area for all layers" << std::endl;
536 std::cout <<
" TSOS not valid..." << std::endl;
542 printf(
"==exit===CSCEfficiency===== run %u\tevent %llu\n\n", iRun,
iEvent);
References muon::caloCompatibility(), relativeConstraints::chamber, CSCGeometry::chamber(), ALCARECOTkAlJpsiMuMu_cff::charge, reco::TrackBase::confirmed, gather_cfg::cout, debug, PbPb_ZMuSkimMuonDPG_cff::deltaR, PVValHelper::dz, MillePedeFileConverter_cfg::e, makeMuonMisalignmentScenario::endcap, PV3DBase< T, PVType, FrameType >::eta(), JetMETHLTOfflineSource_cfi::feta, FirstCh, TrajectoryStateOnSurface::freeState(), GeomDet::geographicalId(), edm::EventSetup::get(), get, reco::TrackBase::goodIterative, reco::TrackBase::highPurity, mps_fire::i, CSCGeometry::idToDet(), iEvent, createfilelist::int, HLTBitAnalyser_cfi::isData, TrajectoryStateOnSurface::isValid(), reco::TrackBase::loose, distMuonMETValueMapProducer_cff::maxNormChi2, RecoMuonValidator_cfi::maxP, alignBH_cfg::minP, HLT_2018_cff::minTrackHits, HLT_2018_cff::muon, PDWG_BPHSkim_cff::muons, reco::Track::outerPosition(), PV3DBase< T, PVType, FrameType >::phi(), GloballyPositioned< T >::position(), reco::BeamSpot::position(), FreeTrajectoryState::position(), funct::pow(), edm::Handle< T >::product(), reco::TrackBase::qualitySize, TrackInfoProducer_cfi::rechits, relativeConstraints::ring, reco::Muon::SegmentAndTrackArbitration, HLTBitAnalyser_cfi::simhits, mathSSE::sqrt(), relativeConstraints::station, DigiDM_cff::strips, GeomDet::surface(), reco::TrackBase::tight, HLT_2018_cff::track, duplicaterechits_cfi::trackCollection, L1TEGammaOffline_cfi::triggerNames, reco::TrackBase::undefQuality, DigiDM_cff::wires, PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
◆ getFromCLHEP()
◆ getFromFTS()
Definition at line 1462 of file CSCEfficiency.cc.
1470 p3.set(p3GV.
x(), p3GV.
y(), p3GV.
z());
1471 r3.set(r3GP.
x(), r3GP.
y(), r3GP.
z());
References FreeTrajectoryState::cartesianError(), ALCARECOTkAlJpsiMuMu_cff::charge, FreeTrajectoryState::charge(), FreeTrajectoryState::hasError(), CartesianTrajectoryError::matrix(), FreeTrajectoryState::momentum(), p3, FreeTrajectoryState::position(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
◆ inSensitiveLocalRegion()
bool CSCEfficiency::inSensitiveLocalRegion |
( |
double |
xLocal, |
|
|
double |
yLocal, |
|
|
int |
station, |
|
|
int |
ring |
|
) |
| |
|
private |
Definition at line 547 of file CSCEfficiency.cc.
550 std::vector<double> chamberBounds(3);
551 float y_center = 99999.;
555 chamberBounds[0] = 66.46 / 2;
556 chamberBounds[1] = 127.15 / 2;
557 chamberBounds[2] = 323.06 / 2;
561 chamberBounds[0] = 54.00 / 2;
562 chamberBounds[1] = 125.71 / 2;
563 chamberBounds[2] = 189.66 / 2;
566 chamberBounds[0] = 61.40 / 2;
567 chamberBounds[1] = 125.71 / 2;
568 chamberBounds[2] = 169.70 / 2;
571 chamberBounds[0] = 69.01 / 2;
572 chamberBounds[1] = 125.65 / 2;
573 chamberBounds[2] = 149.42 / 2;
579 chamberBounds[0] = 63.40 / 2;
580 chamberBounds[1] = 92.10 / 2;
581 chamberBounds[2] = 164.16 / 2;
583 }
else if (2 ==
ring) {
584 chamberBounds[0] = 51.00 / 2;
585 chamberBounds[1] = 83.74 / 2;
586 chamberBounds[2] = 174.49 / 2;
589 chamberBounds[0] = 30. / 2;
590 chamberBounds[1] = 60. / 2;
591 chamberBounds[2] = 160. / 2;
595 double yUp = chamberBounds[2] + y_center;
596 double yDown = -chamberBounds[2] + y_center;
599 double lineSlope = (yUp - yDown) / (xBound2Shifted - xBound1Shifted);
600 double lineConst = yUp - lineSlope * xBound2Shifted;
601 double yBoundary = lineSlope *
abs(xLocal) + lineConst;
References funct::abs(), relativeConstraints::ring, and relativeConstraints::station.
◆ linearExtrapolation()
void CSCEfficiency::linearExtrapolation |
( |
GlobalPoint |
initialPosition, |
|
|
GlobalVector |
initialDirection, |
|
|
float |
zSurface, |
|
|
std::vector< float > & |
posZY |
|
) |
| |
|
private |
Definition at line 1491 of file CSCEfficiency.cc.
1495 double paramLine =
lineParameter(initialPosition.
z(), zSurface, initialDirection.
z());
1496 double xPosition =
extrapolate1D(initialPosition.
x(), initialDirection.
x(), paramLine);
1497 double yPosition =
extrapolate1D(initialPosition.
y(), initialDirection.
y(), paramLine);
1499 posZY.push_back(xPosition);
1500 posZY.push_back(yPosition);
References PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
◆ lineParameter()
double CSCEfficiency::lineParameter |
( |
double |
initZPosition, |
|
|
double |
destZPosition, |
|
|
double |
initZDirection |
|
) |
| |
|
private |
Definition at line 1508 of file CSCEfficiency.cc.
1509 double paramLine = (destZPosition - initZPosition) / initZDirection;
◆ propagate()
◆ propagator()
const Propagator * CSCEfficiency::propagator |
( |
std::string |
propagatorName | ) |
const |
|
private |
◆ recHitSegment_Efficiencies()
Definition at line 1315 of file CSCEfficiency.cc.
1318 int ec, st, rg, ch, secondRing;
1320 bool firstCondition, secondCondition;
1322 std::vector<bool> missingLayers_rh(6);
1323 std::vector<int> usedInSegment(6);
1326 std::cout <<
"RecHits eff" << std::endl;
1327 for (
int iLayer = 0; iLayer < 6; ++iLayer) {
1328 firstCondition = !
allRechits[ec][st][rg][ch][iLayer].empty() ?
true :
false;
1329 secondCondition =
false;
1331 if (secondRing > -1) {
1332 secondCondition = !
allRechits[ec][st][secondRing][ch][iLayer].empty() ?
true :
false;
1333 if (secondCondition) {
1334 thisRing = secondRing;
1337 if (firstCondition || secondCondition) {
1339 for (
size_t iR = 0; iR <
allRechits[ec][st][thisRing][ch][iLayer].size(); ++iR) {
1341 usedInSegment[iLayer] = 1;
1344 usedInSegment[iLayer] = -1;
1348 missingLayers_rh[iLayer] =
true;
1351 printf(
"\t\tendcap/station/ring/chamber/layer: %i/%i/%i/%i/%i\n",
1364 secondCondition =
false;
1367 if (secondRing > -1) {
1368 secondCondition = !
allSegments[ec][st][secondRing][ch].empty() ?
true :
false;
1369 secondSize =
allSegments[ec][st][secondRing][ch].size();
1370 if (secondCondition) {
1371 thisRing = secondRing;
1374 if (firstCondition || secondCondition) {
1376 std::cout <<
"segments - start ec = " << ec <<
" st = " << st <<
" rg = " << rg <<
" ch = " << ch << std::endl;
1386 std::cout <<
" fts.position() = " << ftsChamber.
position() <<
" segPos = " << globalPos <<
" res = " << residual
1390 for (
int iLayer = 0; iLayer < 6; ++iLayer) {
1392 std::cout <<
" iLayer = " << iLayer <<
" usedInSegment = " << usedInSegment[iLayer] << std::endl;
1393 if (0 != usedInSegment[iLayer]) {
1394 if (-1 == usedInSegment[iLayer]) {
1399 firstCondition = !
allRechits[ec][st][rg][ch][iLayer].empty() ?
true :
false;
1400 secondCondition =
false;
1401 if (secondRing > -1) {
1402 secondCondition = !
allRechits[ec][st][secondRing][ch][iLayer].empty() ?
true :
false;
1404 float stripAngle = 99999.;
1405 std::vector<float> posXY(2);
1406 bool oneSegment =
false;
1411 GlobalPoint gp_extrapol(posXY.at(0), posXY.at(1), bp.position().z());
1413 posXY.at(0) = lp_extrapol.
x();
1414 posXY.at(1) = lp_extrapol.y();
1418 if (firstCondition || secondCondition) {
1434 std::cout <<
"missing segment " << std::endl;
References relativeConstraints::chamber, gather_cfg::cout, makeMuonMisalignmentScenario::endcap, PV3DBase< T, PVType, FrameType >::eta(), dqmdumpme::first, FirstCh, CSCLayer::geometry(), CSCChamber::layer(), M_PI, CSCLayerGeometry::nearestStrip(), FreeTrajectoryState::position(), funct::pow(), relativeConstraints::ring, edm::second(), std::size(), mathSSE::sqrt(), relativeConstraints::station, CSCLayerGeometry::stripAngle(), GeomDet::surface(), GeomDet::toGlobal(), GeomDet::toLocal(), funct::true, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
◆ recSimHitEfficiency()
Definition at line 1271 of file CSCEfficiency.cc.
1272 int ec, st, rg, ch, secondRing;
1274 bool firstCondition, secondCondition;
1275 for (
int iLayer = 0; iLayer < 6; iLayer++) {
1276 firstCondition = !
allSimhits[ec][st][rg][ch][iLayer].empty() ?
true :
false;
1277 secondCondition =
false;
1279 if (secondRing > -1) {
1280 secondCondition = !
allSimhits[ec][st][secondRing][ch][iLayer].empty() ?
true :
false;
1281 if (secondCondition) {
1282 thisRing = secondRing;
1285 if (firstCondition || secondCondition) {
1286 for (
size_t iSH = 0; iSH <
allSimhits[ec][st][thisRing][ch][iLayer].size(); ++iSH) {
References std::empty(), edm::second(), and funct::true.
◆ returnTypes()
void CSCEfficiency::returnTypes |
( |
CSCDetId & |
id, |
|
|
int & |
ec, |
|
|
int & |
st, |
|
|
int & |
rg, |
|
|
int & |
ch, |
|
|
int & |
secondRing |
|
) |
| |
|
private |
◆ ringCandidates()
void CSCEfficiency::ringCandidates |
( |
int |
station, |
|
|
float |
absEta, |
|
|
std::map< std::string, bool > & |
chamberTypes |
|
) |
| |
|
private |
◆ stripWire_Efficiencies()
Definition at line 1181 of file CSCEfficiency.cc.
1182 int ec, st, rg, ch, secondRing;
1185 bool firstCondition, secondCondition;
1186 int missingLayers_s = 0;
1187 int missingLayers_wg = 0;
1188 for (
int iLayer = 0; iLayer < 6; iLayer++) {
1191 printf(
"\t%i swEff: \tendcap/station/ring/chamber/layer: %i/%i/%i/%i/%i\n",
1199 <<
allStrips[
id.endcap() - 1][
id.station() - 1][
id.ring() - 1][
id.chamber() -
FirstCh][iLayer].size()
1201 <<
allWG[
id.endcap() - 1][
id.station() - 1][
id.ring() - 1][
id.chamber() -
FirstCh][iLayer].size()
1204 firstCondition = !
allStrips[ec][st][rg][ch][iLayer].empty() ?
true :
false;
1206 secondCondition =
false;
1207 if (secondRing > -1) {
1208 secondCondition = !
allStrips[ec][st][secondRing][ch][iLayer].empty() ?
true :
false;
1210 if (firstCondition || secondCondition) {
1215 printf(
"\t\tendcap/station/ring/chamber/layer: %i/%i/%i/%i/%i\n",
1224 firstCondition = !
allWG[ec][st][rg][ch][iLayer].empty() ?
true :
false;
1225 secondCondition =
false;
1226 if (secondRing > -1) {
1227 secondCondition = !
allWG[ec][st][secondRing][ch][iLayer].empty() ?
true :
false;
1229 if (firstCondition || secondCondition) {
1234 printf(
"\t\tendcap/station/ring/chamber/layer: %i/%i/%i/%i/%i\n",
1244 if (6 != missingLayers_s) {
1247 if (6 != missingLayers_wg) {
1254 if (missingLayers_s != missingLayers_wg) {
1256 if (6 == missingLayers_wg) {
1260 if (6 == missingLayers_s) {
1264 }
else if (6 == missingLayers_s) {
References relativeConstraints::chamber, gather_cfg::cout, makeMuonMisalignmentScenario::endcap, FirstCh, FreeTrajectoryState::momentum(), relativeConstraints::ring, relativeConstraints::station, PV3DBase< T, PVType, FrameType >::theta(), and funct::true.
◆ al_token
◆ ALCTPerEvent
TH1F* CSCEfficiency::ALCTPerEvent |
|
private |
◆ allALCT
bool CSCEfficiency::allALCT[2][4][4][(36 - 1+1)] |
|
private |
◆ allCLCT
bool CSCEfficiency::allCLCT[2][4][4][(36 - 1+1)] |
|
private |
◆ allCorrLCT
bool CSCEfficiency::allCorrLCT[2][4][4][(36 - 1+1)] |
|
private |
◆ allRechits
std::vector<std::pair<LocalPoint, bool> > CSCEfficiency::allRechits[2][4][4][(36 - 1+1)][6] |
|
private |
◆ allSegments
◆ allSimhits
std::vector<std::pair<LocalPoint, int> > CSCEfficiency::allSimhits[2][4][4][(36 - 1+1)][6] |
|
private |
◆ allStrips
std::vector<std::pair<int, float> > CSCEfficiency::allStrips[2][4][4][(36 - 1+1)][6] |
|
private |
◆ allWG
std::vector<std::pair<std::pair<int, float>, int> > CSCEfficiency::allWG[2][4][4][(36 - 1+1)][6] |
|
private |
◆ alongZ
bool CSCEfficiency::alongZ |
|
private |
◆ andOr
bool CSCEfficiency::andOr |
|
private |
◆ applyIPangleCuts
bool CSCEfficiency::applyIPangleCuts |
|
private |
◆ ChHist
◆ cl_token
◆ CLCTPerEvent
TH1F* CSCEfficiency::CLCTPerEvent |
|
private |
◆ co_token
◆ DataFlow
TH1F* CSCEfficiency::DataFlow |
|
private |
◆ distanceFromDeadZone
double CSCEfficiency::distanceFromDeadZone |
|
private |
◆ emptyChambers
bool CSCEfficiency::emptyChambers[2][4][4][(36 - 1+1)] |
|
private |
◆ getAbsoluteEfficiency
bool CSCEfficiency::getAbsoluteEfficiency |
|
private |
◆ ht_token
◆ isBeamdata
bool CSCEfficiency::isBeamdata |
|
private |
◆ isData
bool CSCEfficiency::isData |
|
private |
◆ isIPdata
bool CSCEfficiency::isIPdata |
|
private |
◆ local_DX_DZ_Max
double CSCEfficiency::local_DX_DZ_Max |
|
private |
◆ local_DY_DZ_Max
double CSCEfficiency::local_DY_DZ_Max |
|
private |
◆ local_DY_DZ_Min
double CSCEfficiency::local_DY_DZ_Min |
|
private |
◆ magField
bool CSCEfficiency::magField |
|
private |
◆ maxNormChi2
double CSCEfficiency::maxNormChi2 |
|
private |
◆ maxP
double CSCEfficiency::maxP |
|
private |
◆ minP
double CSCEfficiency::minP |
|
private |
◆ minTrackHits
unsigned int CSCEfficiency::minTrackHits |
|
private |
◆ myTriggers
std::vector<std::string> CSCEfficiency::myTriggers |
|
private |
◆ nEventsAnalyzed
int CSCEfficiency::nEventsAnalyzed |
|
private |
◆ passTheEvent
bool CSCEfficiency::passTheEvent |
|
private |
◆ pointToTriggers
std::vector<int> CSCEfficiency::pointToTriggers |
|
private |
◆ printalot
bool CSCEfficiency::printalot |
|
private |
◆ printout_NEvents
unsigned int CSCEfficiency::printout_NEvents |
|
private |
◆ recHitsPerEvent
TH1F* CSCEfficiency::recHitsPerEvent |
|
private |
◆ rh_token
◆ rootFileName
std::string CSCEfficiency::rootFileName |
|
private |
◆ sd_token
◆ se_token
◆ segmentsPerEvent
TH1F* CSCEfficiency::segmentsPerEvent |
|
private |
◆ sh_token
◆ StHist
◆ theFile
TFile* CSCEfficiency::theFile |
|
private |
◆ theService
◆ tk_token
◆ TriggersFired
TH1F* CSCEfficiency::TriggersFired |
|
private |
◆ useDigis
bool CSCEfficiency::useDigis |
|
private |
◆ useTrigger
bool CSCEfficiency::useTrigger |
|
private |
◆ wd_token
TrajectoryStateOnSurface propagate(FreeTrajectoryState &ftsStart, const BoundPlane &bp)
MuonServiceProxy * theService
GlobalVector momentum() const
edm::EDGetTokenT< CSCCLCTDigiCollection > cl_token
TH1F * InefficientALCT_dydz
TH1F * InefficientALCT_momTheta
TH1F * InefficientCLCT_momPhi
const CSCLayer * layer(CSCDetId id) const
Return the layer corresponding to the given id.
T const * product() const
bool recSimHitEfficiency(CSCDetId &id, FreeTrajectoryState &ftsChamber)
edm::EDGetTokenT< edm::PSimHitContainer > sh_token
bool inSensitiveLocalRegion(double xLocal, double yLocal, int station, int ring)
void chamberCandidates(int station, int ring, float phi, std::vector< int > &coupleOfChambers)
edm::EDGetTokenT< CSCRecHit2DCollection > rh_token
std::vector< std::pair< LocalPoint, int > > allSimhits[2][4][4][(36 - 1+1)][6]
Geom::Theta< T > theta() const
const GeomDet * idToDet(DetId) const override
TrackCharge charge() const
bool wasrun() const
Was at least one path run?
U second(std::pair< T, U > const &p)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::EDGetTokenT< edm::View< reco::Track > > tk_token
bool stripWire_Efficiencies(CSCDetId &cscDetId, FreeTrajectoryState &ftsChamber)
bool error() const
Has any path encountered an error (exception)
GlobalPoint position() const
std::vector< TH1F * > Y_EfficientRecHits_inSegment
bool getAbsoluteEfficiency
std::vector< DigiType >::const_iterator const_iterator
edm::EDGetTokenT< CSCWireDigiCollection > wd_token
std::vector< int > pointToTriggers
const Plane & surface() const
The nominal surface of the GeomDet.
bool allCLCT[2][4][4][(36 - 1+1)]
void returnTypes(CSCDetId &id, int &ec, int &st, int &rg, int &ch, int &secondRing)
struct CSCEfficiency::StationHistos StHist[2][4]
FreeTrajectoryState const * freeState(bool withErrors=true) const
CartesianTrajectoryError cartesianError() const
TH1F * StripWiresCorrelations
double lineParameter(double initZPosition, double destZPosition, double initZDirection)
void linearExtrapolation(GlobalPoint initialPosition, GlobalVector initialDirection, float zSurface, std::vector< float > &posZY)
std::vector< std::pair< LocalPoint, bool > > allRechits[2][4][4][(36 - 1+1)][6]
float caloCompatibility(const reco::Muon &muon)
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
void fillDigiInfo(edm::Handle< CSCALCTDigiCollection > &alcts, edm::Handle< CSCCLCTDigiCollection > &clcts, edm::Handle< CSCCorrelatedLCTDigiCollection > &correlatedlcts, edm::Handle< CSCWireDigiCollection > &wires, edm::Handle< CSCStripDigiCollection > &strips, edm::Handle< edm::PSimHitContainer > &simhits, edm::Handle< CSCRecHit2DCollection > &rechits, edm::Handle< CSCSegmentCollection > &segments, edm::ESHandle< CSCGeometry > &cscGeom)
unsigned long long EventNumber_t
TH1F * EfficientCLCT_momPhi
const CSCLayerGeometry * geometry() const
const Point & position() const
position
TH1F * EfficientALCT_dydz
struct CSCEfficiency::ChamberHistos ChHist[2][4][3][36 - 1+1]
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
FreeTrajectoryState getFromCLHEP(const CLHEP::Hep3Vector &p3, const CLHEP::Hep3Vector &r3, int charge, const AlgebraicSymMatrix66 &cov, const MagneticField *field)
void fillLCT_info(edm::Handle< CSCALCTDigiCollection > &alcts, edm::Handle< CSCCLCTDigiCollection > &clcts, edm::Handle< CSCCorrelatedLCTDigiCollection > &correlatedlcts)
std::vector< std::pair< LocalPoint, LocalVector > > allSegments[2][4][4][(36 - 1+1)]
TH1F * InefficientCLCT_dxdz
TH2F * EfficientSegments_XY
TH1F * EfficientRechits_good
int nearestStrip(const LocalPoint &lp) const
TH1F * InefficientSingleHits
bool allCorrLCT[2][4][4][(36 - 1+1)]
DetId geographicalId() const
The label of this GeomDet.
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
void fillSimhit_info(edm::Handle< edm::PSimHitContainer > &simHits)
const Propagator * propagator(std::string propagatorName) const
TH1F * EfficientRechits_inSegment
bool emptyChambers[2][4][4][(36 - 1+1)]
C::const_iterator const_iterator
constant access iterator type
std::vector< std::string > myTriggers
double extrapolate1D(double initPosition, double initDirection, double parameterOfTheLine)
TH1F * EfficientWireGroups
double distanceFromDeadZone
std::vector< TH1F * > Phi_InefficientRecHits_inSegment
TH1F * EfficientSegments_eta
std::vector< TH1F * > Phi_EfficientRecHits_inSegment
void fillWG_info(edm::Handle< CSCWireDigiCollection > &wires, edm::ESHandle< CSCGeometry > &cscGeom)
void chooseDirection(CLHEP::Hep3Vector &innerPosition, CLHEP::Hep3Vector &outerPosition)
bool applyTrigger(edm::Handle< edm::TriggerResults > &hltR, const edm::TriggerNames &triggerNames)
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
float stripAngle(int strip) const
for(int i=first, nt=offsets[nh];i< nt;i+=gridDim.x *blockDim.x)
unsigned int printout_NEvents
const AlgebraicSymMatrix66 & matrix() const
void getFromFTS(const FreeTrajectoryState &fts, CLHEP::Hep3Vector &p3, CLHEP::Hep3Vector &r3, int &charge, AlgebraicSymMatrix66 &cov)
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > co_token
edm::EDGetTokenT< edm::TriggerResults > ht_token
const PositionType & position() const
const CSCLayer * layer(CSCDetId id) const
Return the layer corresponding to given DetId.
std::vector< std::pair< int, float > > allStrips[2][4][4][(36 - 1+1)][6]
void fillRechitsSegments_info(edm::Handle< CSCRecHit2DCollection > &rechits, edm::Handle< CSCSegmentCollection > &segments, edm::ESHandle< CSCGeometry > &cscGeom)
bool recHitSegment_Efficiencies(CSCDetId &cscDetId, const CSCChamber *cscChamber, FreeTrajectoryState &ftsChamber)
bool checkLocal(double yLocal, double yBoundary, int station, int ring)
std::pair< const_iterator, const_iterator > Range
TH1F * digiAppearanceCount
edm::EDGetTokenT< CSCSegmentCollection > se_token
bool accept() const
Has at least one path accepted the event?
std::vector< TH1F * > Y_InefficientRecHits_inSegment
void fillStrips_info(edm::Handle< CSCStripDigiCollection > &strips)
Power< A, B >::type pow(const A &a, const B &b)
Abs< T >::type abs(const T &t)
unsigned int minTrackHits
TH1F * EfficientALCT_momTheta
TH1F * EfficientCLCT_dxdz
float yOfWireGroup(int wireGroup, float x=0.) const
bool efficienciesPerChamber(CSCDetId &id, const CSCChamber *cscChamber, FreeTrajectoryState &ftsChamber)
void ringCandidates(int station, float absEta, std::map< std::string, bool > &chamberTypes)
strips
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers....
Geom::Phi< T > phi() const
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
std::vector< std::pair< std::pair< int, float >, int > > allWG[2][4][4][(36 - 1+1)][6]
edm::EDGetTokenT< CSCALCTDigiCollection > al_token
edm::EDGetTokenT< CSCStripDigiCollection > sd_token
bool allALCT[2][4][4][(36 - 1+1)]
TH2F * InefficientSegments_XY