CMS 3D CMS Logo

Functions | Variables
fileCollector Namespace Reference

Functions

def convert (infile, ofile)
 
def filecheck (rootfile)
 
def logme (msg, args)
 
def sendmail (body="Hello from visDQMZipCastorVerifier")
 

Variables

 cmp
 
 COLLECTDIR
 
 done
 
 donefile
 
 dqmfile
 
 DROPBOX
 
 EMAIL
 
 EMAILINTERVAL
 
 f
 
 files
 
 finalfile
 
 finalTdir
 
 finalTfile
 
 finalTMPfile
 
 fMatch
 
 HOSTNAME
 
 keeper
 
 lastEmailSent
 
 lFile
 
 md5Digest
 
 NEW
 
 NFOUND
 
 now
 
 NRUNS
 
 originFile
 
 originFileName
 
 originStr
 
 originTMPFile
 
 RETRIES
 
 reverse
 
 runnr
 
 runstr
 
 SBASEDIR
 
 seed
 
 SENDMAIL
 
 stdout
 
 subsystem
 
 TAGRUNEND
 
 TAGS
 
 Tfile
 
 TFILEDONEDIR
 
 Tfiles
 
 TMPDROPBOX
 
 version
 
 WAITTIME
 

Function Documentation

◆ convert()

def fileCollector.convert (   infile,
  ofile 
)

◆ filecheck()

def fileCollector.filecheck (   rootfile)

Definition at line 35 of file fileCollector.py.

References fileinputsource_cfi.read, and submitPVValidationJobs.split().

35 def filecheck(rootfile):
36  cmd = 'root -l -b -q %s/filechk.C"(\\"%s\\")"' % (SBASEDIR,rootfile)
37  a = os.popen(cmd).read().split()
38  tag=a.pop()
39  if tag == '(int)(-1)' or tag == '(int)0':
40  return 0
41 
42  if tag == '(int)1':
43  return 1
44 
45  return 0
46 
def filecheck(rootfile)

◆ logme()

def fileCollector.logme (   msg,
  args 
)

Definition at line 31 of file fileCollector.py.

References print().

Referenced by DQMNet.losePeer(), DQMNet.onLocalNotify(), DQMNet.onMessage(), DQMNet.onPeerConnect(), DQMNet.onPeerData(), sendmail(), and DQMNet.updateMask().

31 def logme(msg, *args):
32  procid = "[%s/%d]" % (__file__.rsplit("/", 1)[-1], os.getpid())
33  print(datetime.now(), procid, msg % args)
34 
def logme(msg, args)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ sendmail()

def fileCollector.sendmail (   body = "Hello from visDQMZipCastorVerifier")

Definition at line 52 of file fileCollector.py.

References logme().

52 def sendmail(body="Hello from visDQMZipCastorVerifier"):
53  scall = Popen("%s -t" % SENDMAIL, shell=True, stdin=PIPE)
54  scall.stdin.write("To: %s\n" % EMAIL)
55  scall.stdin.write("Subject: File Collector on server %s has a Critical Error\n" %
56  HOSTNAME)
57  scall.stdin.write("\n") # blank line separating headers from body
58  scall.stdin.write("%s\n" % body)
59  scall.stdin.close()
60  rc = scall.wait()
61  if rc != 0:
62  logme("ERROR: Sendmail exit with status %s", rc)
63 
64 # --------------------------------------------------------------------
def logme(msg, args)
def sendmail(body="Hello from visDQMZipCastorVerifier")

Variable Documentation

◆ cmp

fileCollector.cmp

◆ COLLECTDIR

fileCollector.COLLECTDIR

Definition at line 14 of file fileCollector.py.

◆ done

fileCollector.done

◆ donefile

fileCollector.donefile

Definition at line 90 of file fileCollector.py.

◆ dqmfile

fileCollector.dqmfile

Definition at line 162 of file fileCollector.py.

Referenced by get_filename(), read_badmodlist(), and read_runflag().

◆ DROPBOX

fileCollector.DROPBOX

Definition at line 16 of file fileCollector.py.

◆ EMAIL

fileCollector.EMAIL

Definition at line 13 of file fileCollector.py.

◆ EMAILINTERVAL

fileCollector.EMAILINTERVAL

Definition at line 20 of file fileCollector.py.

◆ f

fileCollector.f

Definition at line 91 of file fileCollector.py.

◆ files

fileCollector.files

Definition at line 125 of file fileCollector.py.

◆ finalfile

fileCollector.finalfile

Definition at line 191 of file fileCollector.py.

◆ finalTdir

fileCollector.finalTdir

Definition at line 131 of file fileCollector.py.

◆ finalTfile

fileCollector.finalTfile

Definition at line 130 of file fileCollector.py.

◆ finalTMPfile

fileCollector.finalTMPfile

Definition at line 128 of file fileCollector.py.

◆ fMatch

fileCollector.fMatch

Definition at line 82 of file fileCollector.py.

◆ HOSTNAME

fileCollector.HOSTNAME

Definition at line 25 of file fileCollector.py.

◆ keeper

fileCollector.keeper

Definition at line 124 of file fileCollector.py.

◆ lastEmailSent

fileCollector.lastEmailSent

Definition at line 28 of file fileCollector.py.

◆ lFile

fileCollector.lFile

◆ md5Digest

fileCollector.md5Digest

Definition at line 173 of file fileCollector.py.

◆ NEW

fileCollector.NEW

Definition at line 78 of file fileCollector.py.

◆ NFOUND

fileCollector.NFOUND

Definition at line 77 of file fileCollector.py.

◆ now

fileCollector.now

Definition at line 207 of file fileCollector.py.

◆ NRUNS

fileCollector.NRUNS

Definition at line 76 of file fileCollector.py.

◆ originFile

fileCollector.originFile

Definition at line 176 of file fileCollector.py.

◆ originFileName

fileCollector.originFileName

Definition at line 192 of file fileCollector.py.

◆ originStr

fileCollector.originStr

Definition at line 174 of file fileCollector.py.

◆ originTMPFile

fileCollector.originTMPFile

Definition at line 175 of file fileCollector.py.

◆ RETRIES

fileCollector.RETRIES

Definition at line 23 of file fileCollector.py.

◆ reverse

fileCollector.reverse

Definition at line 104 of file fileCollector.py.

◆ runnr

fileCollector.runnr

◆ runstr

fileCollector.runstr

Definition at line 89 of file fileCollector.py.

◆ SBASEDIR

fileCollector.SBASEDIR

Definition at line 21 of file fileCollector.py.

◆ seed

fileCollector.seed

Definition at line 127 of file fileCollector.py.

Referenced by egPM::AbsEtaNrClus.AbsEtaNrClus(), egPM::AbsEtaNrClusEt.AbsEtaNrClusEt(), egPM::AbsEtaNrClusPhi.AbsEtaNrClusPhi(), pat::TriggerPath.addL1Seed(), AlCaECALRecHitReducer.AddMiniRecHitCollection(), BaseCkfTrajectoryBuilder.addToResult(), SimTrackstersProducer.addTrackster(), GroupedCkfTrajectoryBuilder.advanceOneLayer(), ElectronMcSignalValidator.analyze(), EgammaSuperClusters.analyze(), MuonSeedsAnalyzer.analyze(), ElectronMcFakeValidator.analyze(), PhotonMVANtuplizer.analyze(), ElectronMVANtuplizer.analyze(), SeedMultiplicityAnalyzer.analyze(), EopElecTreeWriter.analyze(), reco::GraphMap.assignHighestScoreEdge(), TrackAssociatorByHitsImpl.associateRecoToSim(), TrackAssociatorByHitsImpl.associateSimToReco(), BaseCkfTrajectoryBuilder.backwardPropagator(), edm::BeamHaloProducer.beginLuminosityBlock(), ExternalLHEProducer.beginRunProduce(), trklet::Settings.bendcutTE(), heppy::BTagSF.BTagSF(), PFECALSuperClusterAlgo.buildAllSuperClustersDeepSC(), Basic2DGenericTopoClusterizer.buildClusters(), GenericSimClusterMapper.buildClusters(), PFClusterFromHGCalTrackster.buildClusters(), RealisticSimClusterMapper.buildClusters(), Phase1L1TJetProducer.buildJetFromSeed(), Phase1L1TJetProducer.buildJetsFromSeeds(), Phase1L1TJetProducer.buildJetsFromSeedsWithPUSubtraction(), PFECALSuperClusterAlgo.buildSuperClusterMustacheOrBox(), MuonSeedTrack.buildTrackAtPCA(), GroupedCkfTrajectoryBuilder.buildTrajectories(), CkfTrajectoryBuilder.buildTrajectories(), HLTElectronPixelMatchFilter.calDPhi1Sq(), HLTElectronPixelMatchFilter.calDPhi2Sq(), HLTElectronPixelMatchFilter.calDZ2Sq(), edm::BeamHaloProducer.call_ki_bhg_init(), EgammaHLTPixelMatchVarProducer.calS2(), L1TMuonBarrelKalmanAlgo.chain(), trklet::ChannelAssignment.ChannelAssignment(), MuonSeedSimpleCleaner.checkPt(), MuonSeedSimpleCleaner.clean(), RedundantSeedCleaner.clean(), L1TMuonBarrelKalmanAlgo.clean(), TrackerSeedCleaner.clean(), EcalClusterPUCleaningTools.CleanedSuperCluster(), EcalClusterSeverityLevelAlgo.closestProblematic(), HGCalHistoClusteringImplSA.clusterSeedMulticluster_SA(), SeedMvaEstimator.computeMva(), reco::EcalClustersGraph.computeVariables(), HGCalHistoClusteringWrapper.convertCMSSWInputs(), MkFitSeedConverter.convertSeeds(), CosmicTrajectoryBuilder.createStartingTrajectory(), BaseCkfTrajectoryBuilder.createStartingTrajectory(), CRackTrajectoryBuilder.createStartingTrajectory(), MuonTagger.discriminator(), OutsideInMuonSeeder.doLayer(), TICLTrackstersEdgesValidation.dqmAnalyze(), HGCalHistoClusteringImpl.dR(), L1SCJetEmu.emulateEvent(), EcalClusterSeverityLevelAlgo.etaphiDistanceClosestProblematic(), trklet::FitTrack.execute(), FastTSGFromL2Muon.FastTSGFromL2Muon(), big::bigEntry.fill(), PixelData.fill(), TrackingNtuple.fillSeeds(), trklet::TrackDerTable.fillTable(), LeptonSkimming.filter(), PFECALSuperClusterAlgo.finalizeSuperCluster(), mkfit::MkBuilder.find_tracks_load_seeds(), mkfit::MkBuilder.find_tracks_load_seeds_BH(), MuonCkfTrajectoryBuilder.findCompatibleMeasurements(), CkfTrajectoryBuilder.findCompatibleMeasurements(), HGCalImagingAlgo.findLocalMaximaInCluster(), BaseCkfTrajectoryBuilder.findStateAndLayers(), TrajectoryFitter.fit(), CosmicMuonSmoother.fit(), BaseCkfTrajectoryBuilder.forwardPropagator(), LaserBeamsTEC2.GeneratePrimaries(), LaserBeamsTEC1.GeneratePrimaries(), LaserBeamsBarrel.GeneratePrimaries(), L1TUtmTriggerMenu.getFirmwareUuidHashed(), reco::EcalClustersGraph.getGraphOutput(), trklet::PurgeDuplicate.getInventedCoordsExtended(), egamma.getRandomSeedFromObj(), egamma.getRandomSeedFromSC(), MTVHistoProducerAlgoForTracker.getSeedingLayerSetBin(), MuonHLTSeedMVAClassifier.getSeedMva(), MuonSeedTrack.getSeedTSOS(), MuonTrackAnalyzer.getSeedTSOS(), FakeTrackProducer< T >.getState(), CachingSeedCleanerBySharedInput.good(), GroupedCkfTrajectoryBuilder.groupedLimitedCandidates(), reco::GsfElectronCore.GsfElectronCore(), edm.hash_combine(), DTCombinatorialPatternReco::TriedPattern.hash_combine(), edm.hash_value(), mkfit::MkBuilder.import_seeds(), mkfit::CombCandidate.importSeed(), L1TauEmu.inCone(), L1SCJetEmu.inCone(), SeedFinder.insertHit(), mkfit::EventOfCombCandidates.insertSeed(), ElectronPFIsolationWithConeVeto.isInIsolationCone(), PhotonPFIsolationWithConeVeto.isInIsolationCone(), L1MuKBMTrack.L1MuKBMTrack(), LowPtGsfElectronSeedProducer.lightGsfTracking(), CkfTrajectoryBuilder.limitedCandidates(), AdaptiveVertexFitter.linearizeTracks(), ReducedEGProducer.linkCaloClusters(), LowPtGsfElectronSeedProducer.loop(), cond::auth::KeyGenerator.make(), ExternalLHEProducer.makeArgs(), CalibrationTrackSelectorFromDetIdList.makeCandidate(), reco::modules::CosmicTrackSplitter.makeCandidate(), reco::modules::TrackerTrackHitFilter.makeCandidate(), L1SCJetEmu.makeJet_HW(), L1SeedConePFJetProducer.makeJet_SW(), SETSeedFinder.makeSeed(), TSGForOIDNN.makeSeedsFromHitDoublets(), TSGForOIDNN.makeSeedsFromHits(), TSGForOIFromL2.makeSeedsFromHits(), HybridClusterAlgo.makeSuperClusters(), L1NNTauProducer.makeTau_HW(), cond::auth::KeyGenerator.makeWithRandomSize(), L1TMuonBarrelKalmanAlgo.match(), EgammaHLTExtraProducer.matchingGsfTrks(), SeedMatcher.matchRecHitCombinations(), TrackMerger.merge(), l1t::Stage2Layer2TauAlgorithmFirmwareImp1.merging(), EGRegressionModifierV2.modifyObject(), L1TUtmTriggerMenu.murmurHashNeutral2(), HiEgammaSCEnergyCorrectionAlgo.nCrystalsGT2Sigma(), EgammaSCEnergyCorrectionAlgo.nCrystalsGT2Sigma(), TracksClusteringFromDisplacedSeed.nearTracks(), trklet::Settings.NTC(), reco::tau::RecoTauPiZeroStripPlugin.operator()(), PixelHitMatcher.operator()(), TrajSeedMatcher.operator()(), CtfSpecialSeedGenerator.postCheck(), CSCCrosstalkConditions.prefillCrosstalk(), CSCFakeDBCrosstalk.prefillDBCrosstalk(), CSCFakeDBGains.prefillDBGains(), CSCFakeDBNoiseMatrix.prefillDBNoiseMatrix(), CSCFakeDBPedestals.prefillDBPedestals(), CSCGainsConditions.prefillGains(), reco::GraphMap.printGraphMap(), MultiVertexFitter.printWeights(), L1TMuonBarrelKalmanRegionModule.process(), EgammaHLTPixelMatchElectronAlgo.process(), L1NNTauProducer.process_HW(), l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1.processEvent(), L1SeedConePFJetProducer.processEvent_SW(), TrajSeedMatcher.processSeed(), CalibratedPhotonProducerRun2T< T >.produce(), LowPtGsfElectronSeedValueMapsProducer.produce(), photonIsolationHIProducer.produce(), CalibratedElectronProducerRun2T< T >.produce(), LowPtGsfElectronSCProducer.produce(), TrackProducerWithSCAssociation.produce(), TSGFromL1Muon.produce(), MuonReSeeder.produce(), EcalBarrelClusterFastTimer.produce(), L3TkMuonProducer.produce(), MuonSeedMerger.produce(), SeedClusterRemoverPhase2.produce(), ElectronSeedProducer.produce(), CleanAndMergeProducer.produce(), SeedClusterRemover.produce(), PFTrackProducer.produce(), UncleanSCRecoveryProducer.produce(), SETMuonSeedProducer.produce(), CosmicMuonSeedGenerator.produce(), TrackTimeValueMapProducer.produce(), TrackCandidateProducer.produce(), EGMSeedGainProducer< T >.produce(), MuonHLTSeedMVAClassifier.produce(), TrackCandidateTopBottomHitFilter.produce(), HLTL1MuonNoL2Selector.produce(), HiSpikeCleaner.produce(), SimPFProducer.produce(), UnifiedSCCollectionProducer.produce(), pat::PATPhotonProducer.produce(), SeedToTrackProducer.produce(), TrackFromSeedProducer.produce(), TriggerObjectTableProducer.produce(), HLTScoutingEgammaProducer.produce(), IsolatedPixelTrackCandidateProducer.produce(), IsolatedPixelTrackCandidateL1TProducer.produce(), pat::PATElectronProducer.produce(), cms::CosmicTrackFinder.produce(), PhotonIDValueMapProducer.produce(), EgammaHLTPixelMatchVarProducer.produce(), SmearedJetProducerT< T >.produce(), HGCalIsoCalculator.produceHGCalIso(), mkfit::StdSeq::Quality.quality_process(), GroupedCkfTrajectoryBuilder.rebuildSeedingRegion(), GroupedCkfTrajectoryBuilder.rebuildTrajectories(), MuonTrackFinder.reconstruct(), AdaptiveVertexFitter.reLinearizeTracks(), AdaptiveVertexFitter.reWeightTracks(), heppy::RochCor.RochCor(), heppy::RochCor2012.RochCor2012(), edm::RootEmbeddedFileSequence.RootEmbeddedFileSequence(), ecaldqm::PiZeroTask.runOnEBRecHits(), MuonSeedCleaner.SeedChi2(), btagbtvdeep.seedingTracksToFeatures(), trklet::Settings.seedlayers(), MuonSeedCleaner.SeedLength(), CosmicTrajectoryBuilder.seedMeasurements(), BaseCkfTrajectoryBuilder.seedMeasurements(), CRackTrajectoryBuilder.seedMeasurements(), MuonSeedCleaner.SeedMomentum(), MuonSeedCleaner.SeedPosition(), MuonOverlapSeedFromRecHits.seeds(), MuonTrackAnalyzer.seedsAnalysis(), EcalMipGraphs.selectHits(), EcalDisplaysByEvent.selectHits(), GsfElectronAlgo.setCutBasedPreselectionFlag(), GsfElectronAlgo.setPixelMatchInfomation(), ParameterMgr.setRandomSeed(), QjetsPlugin.SetRandSeed(), Qjets.SetRandSeed(), edm::TRandomAdaptor.setSeed(), AlignableModifier.setSeed(), reco::HLTTau.setSeedEcalHitEt(), reco::HLTTau.setSeedHcalHitEt(), trigger::EgammaObject.setSeeds(), SmearedJetProducerT< T >.SmearedJetProducerT(), CosmicTrajectoryBuilder.SortHits(), CRackTrajectoryBuilder.SortHits(), CosmicTrajectoryBuilder.startingTSOS(), CRackTrajectoryBuilder.startingTSOS(), SurveyPxbDicer.SurveyPxbDicer(), trklet::Track.Track(), FastTSGFromIOHit.trackerSeeds(), ExhaustiveMuonTrajectoryBuilder.trajectories(), TrajectoryBuilder.trajectories(), DirectMuonTrajectoryBuilder.trajectories(), GroupedCkfTrajectoryBuilder.trajectories(), StandAloneMuonTrajectoryBuilder.trajectories(), CkfTrajectoryBuilder.trajectories(), CosmicMuonTrajectoryBuilder.trajectories(), CosmicMuonSmoother.trajectories(), GlobalCosmicMuonTrajectoryBuilder.trajectories(), TrackTransformerForGlobalCosmicMuons.transform(), TrackTransformerForCosmicMuons.transform(), TrackTransformer.transform(), GlobalMuonRefitter.transform(), CosmicMuonSeedGenerator.tsosToSeed(), MultiVertexFitter.updateSeeds(), MultiVertexFitter.updateWeights(), AdaptiveVertexFitter.vertex(), QuickTrackAssociatorByHitsImpl.weightedNumberOfTrackClusters(), and AdaptiveVertexFitter.weightTracks().

◆ SENDMAIL

fileCollector.SENDMAIL

Definition at line 24 of file fileCollector.py.

◆ stdout

fileCollector.stdout

Definition at line 11 of file fileCollector.py.

◆ subsystem

fileCollector.subsystem

Definition at line 88 of file fileCollector.py.

◆ TAGRUNEND

fileCollector.TAGRUNEND

Definition at line 110 of file fileCollector.py.

◆ TAGS

fileCollector.TAGS

Definition at line 79 of file fileCollector.py.

◆ Tfile

fileCollector.Tfile

Definition at line 170 of file fileCollector.py.

◆ TFILEDONEDIR

fileCollector.TFILEDONEDIR

Definition at line 15 of file fileCollector.py.

◆ Tfiles

fileCollector.Tfiles

Definition at line 125 of file fileCollector.py.

◆ TMPDROPBOX

fileCollector.TMPDROPBOX

Definition at line 22 of file fileCollector.py.

◆ version

fileCollector.version

Definition at line 180 of file fileCollector.py.

◆ WAITTIME

fileCollector.WAITTIME

Definition at line 19 of file fileCollector.py.