CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
CastorDataFrameFilter_impl Namespace Reference

Functions

template<class DataFrame >
bool check (const DataFrame &df, bool capcheck, bool dvercheck)
 
template<class DataFrame >
double energySum (const DataFrame &df, int fs, int ls)
 

Function Documentation

template<class DataFrame >
bool CastorDataFrameFilter_impl::check ( const DataFrame &  df,
bool  capcheck,
bool  dvercheck 
)

Definition at line 6 of file CastorDataFrameFilter.cc.

References i.

Referenced by SiStripQuality::add(), L1TFED::analyze(), FFTJetPatRecoProducer::buildDenseProduct(), FFTJetPatRecoProducer::buildSparseProduct(), cms::FastMuPropagator::checkfts(), Trajectory::closestMeasurement(), MuonGeometryArrange::compareGeometries(), TrackerGeometryCompare::compareGeometries(), DDcreateRotationMatrix(), DDrot(), DDrotReflect(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), EtaPhiEstimator::estimate(), TwoBodyDecayEstimator::estimate(), LMFDat::fetch(), DTCompactMapWriter::fillReadOutMap(), CastorDataFrameFilter::filter(), OpticalObject::findExtraEntryValue(), Trajectory::geometricalInnermostState(), L1MuDTTFMasks::get_etsoc_chdis_st1(), L1MuDTTFMasks::get_etsoc_chdis_st2(), L1MuDTTFMasks::get_etsoc_chdis_st3(), L1MuDTTFMasks::get_inrec_chdis_csc(), L1MuDTTFMasks::get_inrec_chdis_st1(), L1MuDTTFMasks::get_inrec_chdis_st2(), L1MuDTTFMasks::get_inrec_chdis_st3(), L1MuDTTFMasks::get_inrec_chdis_st4(), L1MuDTTFParameters::get_inrec_qual_st1(), L1MuDTTFParameters::get_inrec_qual_st2(), L1MuDTTFParameters::get_inrec_qual_st3(), L1MuDTTFParameters::get_inrec_qual_st4(), L1MuDTTFParameters::get_soc_csc_etacanc(), L1MuDTTFParameters::get_soc_nbx_del(), L1MuDTTFParameters::get_soc_openlut_extr(), L1MuDTTFParameters::get_soc_qcut_st1(), L1MuDTTFParameters::get_soc_qcut_st2(), L1MuDTTFParameters::get_soc_qcut_st4(), L1MuDTTFParameters::get_soc_qual_csc(), L1MuDTTFParameters::get_soc_run_21(), L1MuDTTFParameters::get_soc_stdis_n(), L1MuDTTFParameters::get_soc_stdis_wl(), L1MuDTTFParameters::get_soc_stdis_wr(), L1MuDTTFParameters::get_soc_stdis_zl(), L1MuDTTFParameters::get_soc_stdis_zr(), SimTrackManager::getOrCreateVertex(), TStorageFactorySystem::GetPathInfo(), PerformancePayloadFromBinnedTFormula::getResult(), PerformancePayloadFromTFormula::getResult(), PerformancePayloadFromBinnedTFormula::isInPayload(), PerformancePayloadFromTFormula::isInPayload(), DDLRotationAndReflection::isLeftHanded(), FWHtml::IsVisited(), JetCorrectorParameters::JetCorrectorParameters(), MuScleFitUtils::minimizeLikelihood(), PixelSLinkDataInputSource::PixelSLinkDataInputSource(), CSCChamberTimeCorrectionsValues::prefill(), CSCChipSpeedCorrectionDBConditions::prefillDBChipSpeedCorrection(), CSCGasGainCorrectionDBConditions::prefillDBGasGainCorrection(), PerformancePayloadFromBinnedTFormula::printFormula(), PerformancePayloadFromTFormula::printFormula(), PFAlgo::processBlock(), CSCDCCUnpacker::produce(), CosmicSeedGenerator::produce(), RoadSearchSeedFinder::produce(), CtfSpecialSeedGenerator::produce(), FFTJetPatRecoProducer::produce(), DDCoreToDDXMLOutput::rotation(), RoadSearchSeedFinderAlgorithm::run(), L1MuDTTFMasks::set_etsoc_chdis_st1(), L1MuDTTFMasks::set_etsoc_chdis_st2(), L1MuDTTFMasks::set_etsoc_chdis_st3(), L1MuDTTFMasks::set_inrec_chdis_csc(), L1MuDTTFMasks::set_inrec_chdis_st1(), L1MuDTTFMasks::set_inrec_chdis_st2(), L1MuDTTFMasks::set_inrec_chdis_st3(), L1MuDTTFMasks::set_inrec_chdis_st4(), L1MuDTTFParameters::set_inrec_qual_st1(), L1MuDTTFParameters::set_inrec_qual_st2(), L1MuDTTFParameters::set_inrec_qual_st3(), L1MuDTTFParameters::set_inrec_qual_st4(), L1MuDTTFParameters::set_soc_csc_etacanc(), L1MuDTTFParameters::set_soc_nbx_del(), L1MuDTTFParameters::set_soc_openlut_extr(), L1MuDTTFParameters::set_soc_qcut_st1(), L1MuDTTFParameters::set_soc_qcut_st2(), L1MuDTTFParameters::set_soc_qcut_st4(), L1MuDTTFParameters::set_soc_qual_csc(), L1MuDTTFParameters::set_soc_run_21(), L1MuDTTFParameters::set_soc_stdis_n(), L1MuDTTFParameters::set_soc_stdis_wl(), L1MuDTTFParameters::set_soc_stdis_wr(), L1MuDTTFParameters::set_soc_stdis_zl(), L1MuDTTFParameters::set_soc_stdis_zr(), AlgoPos::setParameters(), TracktoRPC::TracktoRPC(), CSCSPRecord::unpack(), and gen::EvtGenInterface::update_candlist().

6  {
7  if (capcheck || dvercheck) {
8  int lastcapid=0, capid=0;
9  for (int i=0; i<df.size(); i++) {
10  capid=df[i].capid();
11  if (capcheck && i!=0 && ((lastcapid+1)%4)!=capid)
12  return false;
13  if (dvercheck && ( df[i].er() || !df[i].dv() ))
14  return false;
15  lastcapid=capid;
16  }
17  }
18  return true;
19  }
int i
Definition: DBlmapReader.cc:9
template<class DataFrame >
double CastorDataFrameFilter_impl::energySum ( const DataFrame &  df,
int  fs,
int  ls 
)

Definition at line 22 of file CastorDataFrameFilter.cc.

References i.

Referenced by spr::eECALmatrix(), HybridClusterAlgo::et25(), CastorDataFrameFilter::filter(), EgammaRecHitIsolation::getSum_(), EcalClusterTools::mean5x5PositionInLocalCrysCoord(), and EcalClusterTools::mean5x5PositionInXY().

22  {
23  double es=0;
24  for (int i=fs; i<=ls && i<=df.size(); i++)
25  es+=df[i].nominal_fC();
26  return es;
27  }
int i
Definition: DBlmapReader.cc:9