CMS 3D CMS Logo

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(), TrackerGeometryCompare::compareGeometries(), MuonGeometryArrange::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(), PerformancePayloadFromTFormula::getResult(), PerformancePayloadFromTFormula::isInPayload(), DDLRotationAndReflection::isLeftHanded(), FWHtml::IsVisited(), JetCorrectorParameters::JetCorrectorParameters(), MuScleFitUtils::minimizeLikelihood(), PixelSLinkDataInputSource::PixelSLinkDataInputSource(), CSCChamberTimeCorrectionsValues::prefill(), CSCChipSpeedCorrectionDBConditions::prefillDBChipSpeedCorrection(), PerformancePayloadFromTFormula::printFormula(), PFAlgoTestBenchElectrons::processBlock(), FFTJetPatRecoProducer::produce(), CosmicSeedGenerator::produce(), CSCDCCUnpacker::produce(), CtfSpecialSeedGenerator::produce(), RoadSearchSeedFinder::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().

                                                                 {
    if (capcheck || dvercheck) {
      int lastcapid=0, capid=0;
      for (int i=0; i<df.size(); i++) {
        capid=df[i].capid();
        if (capcheck && i!=0 && ((lastcapid+1)%4)!=capid) 
          return false;
        if (dvercheck && ( df[i].er() || !df[i].dv() ))
          return false;
        lastcapid=capid;      
      }
    }
    return true;
  }
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().

                                                        {
    double es=0;
    for (int i=fs; i<=ls && i<=df.size(); i++) 
      es+=df[i].nominal_fC();
    return es;
  }