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.

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 

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

◆ logme()

def fileCollector.logme (   msg,
args 
)

Definition at line 31 of file fileCollector.py.

31 def logme(msg, *args):
32  procid = "[%s/%d]" % (__file__.rsplit("/", 1)[-1], os.getpid())
33  print(datetime.now(), procid, msg % args)
34 

References print().

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

◆ sendmail()

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

Definition at line 52 of file fileCollector.py.

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 # --------------------------------------------------------------------

References logme().

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

Definition at line 181 of file fileCollector.py.

Referenced by l1tpf::corrector.init_(), and l1tpf::corrector.writeToFile().

◆ 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 Phase1L1TJetProducer._buildJetsFromSeeds(), Phase1L1TJetProducer._buildJetsFromSeedsWithPUSubtraction(), egPM::AbsEtaNrClus.AbsEtaNrClus(), egPM::AbsEtaNrClusEt.AbsEtaNrClusEt(), egPM::AbsEtaNrClusPhi.AbsEtaNrClusPhi(), pat::TriggerPath.addL1Seed(), AlCaECALRecHitReducer.AddMiniRecHitCollection(), BaseCkfTrajectoryBuilder.addToResult(), ElectronMcSignalValidator.analyze(), EgammaSuperClusters.analyze(), MuonSeedsAnalyzer.analyze(), ElectronMcFakeValidator.analyze(), GsfElectronDataAnalyzer.analyze(), GsfElectronFakeAnalyzer.analyze(), GsfElectronMCFakeAnalyzer.analyze(), GsfElectronMCAnalyzer.analyze(), PhotonMVANtuplizer.analyze(), ElectronMVANtuplizer.analyze(), SeedMultiplicityAnalyzer.analyze(), TrackAssociatorByHitsImpl.associateRecoToSim(), TrackAssociatorByHitsImpl.associateSimToReco(), BaseCkfTrajectoryBuilder.backwardPropagator(), edm::BeamHaloProducer.beginLuminosityBlock(), ExternalLHEProducer.beginRunProduce(), heppy::BTagSF.BTagSF(), Basic2DGenericTopoClusterizer.buildClusters(), GenericSimClusterMapper.buildClusters(), PFClusterFromHGCalMultiCluster.buildClusters(), RealisticSimClusterMapper.buildClusters(), Phase1L1TJetProducer.buildJetFromSeed(), PFECALSuperClusterAlgo.buildSuperCluster(), MuonSeedTrack.buildTrackAtPCA(), GroupedCkfTrajectoryBuilder.buildTrajectories(), CkfTrajectoryBuilder.buildTrajectories(), HLTElectronPixelMatchFilter.calDPhi1Sq(), HLTElectronPixelMatchFilter.calDPhi2Sq(), HLTElectronPixelMatchFilter.calDZ2Sq(), edm::BeamHaloProducer.call_ki_bhg_init(), EgammaHLTPixelMatchVarProducer.calS2(), L1TMuonBarrelKalmanAlgo.chain(), MuonSeedSimpleCleaner.checkPt(), MuonSeedSimpleCleaner.clean(), RedundantSeedCleaner.clean(), L1TMuonBarrelKalmanAlgo.clean(), TrackerSeedCleaner.clean(), EcalClusterPUCleaningTools.CleanedSuperCluster(), EcalClusterSeverityLevelAlgo.closestProblematic(), JetCombinatorics.Combinatorics(), MkFitInputConverter.convertSeeds(), CosmicTrajectoryBuilder.createStartingTrajectory(), BaseCkfTrajectoryBuilder.createStartingTrajectory(), CRackTrajectoryBuilder.createStartingTrajectory(), MuonTagger.discriminator(), OutsideInMuonSeeder.doLayer(), HGCalHistoClusteringImpl.dR(), EcalClusterSeverityLevelAlgo.etaphiDistanceClosestProblematic(), big::bigEntry.fill(), PixelData.fill(), TrackingNtuple.fillSeeds(), trklet::TrackDerTable.fillTable(), LeptonSkimming.filter(), MuonCkfTrajectoryBuilder.findCompatibleMeasurements(), CkfTrajectoryBuilder.findCompatibleMeasurements(), HGCalImagingAlgo.findLocalMaximaInCluster(), BaseCkfTrajectoryBuilder.findStateAndLayers(), TrajectoryFitter.fit(), CosmicMuonSmoother.fit(), BaseCkfTrajectoryBuilder.forwardPropagator(), LaserBeamsTEC1.GeneratePrimaries(), LaserBeamsTEC2.GeneratePrimaries(), LaserBeamsBarrel.GeneratePrimaries(), L1TUtmTriggerMenu.getFirmwareUuidHashed(), egamma.getRandomSeedFromObj(), egamma.getRandomSeedFromSC(), MTVHistoProducerAlgoForTracker.getSeedingLayerSetBin(), MuonSeedTrack.getSeedTSOS(), MuonTrackAnalyzer.getSeedTSOS(), FakeTrackProducer< T >.getState(), CachingSeedCleanerBySharedInput.good(), reco::GsfElectronCore.GsfElectronCore(), DTCombinatorialPatternReco::TriedPattern.hash_combine(), SeedFinder.insertHit(), 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(), SETSeedFinder.makeSeed(), TSGForOI.makeSeedsFromHits(), TSGForOIFromL2.makeSeedsFromHits(), HybridClusterAlgo.makeSuperClusters(), cond::auth::KeyGenerator.makeWithRandomSize(), L1TMuonBarrelKalmanAlgo.match(), SeedMatcher.matchRecHitCombinations(), TrackMerger.merge(), l1t::Stage2Layer2TauAlgorithmFirmwareImp1.merging(), EGRegressionModifierV2.modifyObject(), L1TUtmTriggerMenu.murmurHashNeutral2(), HiEgammaSCEnergyCorrectionAlgo.nCrystalsGT2Sigma(), EgammaSCEnergyCorrectionAlgo.nCrystalsGT2Sigma(), TracksClusteringFromDisplacedSeed.nearTracks(), reco::tau::RecoTauPiZeroStripPlugin.operator()(), PixelHitMatcher.operator()(), TrajSeedMatcher.operator()(), CtfSpecialSeedGenerator.postCheck(), CSCCrosstalkConditions.prefillCrosstalk(), CSCFakeDBCrosstalk.prefillDBCrosstalk(), CSCFakeDBGains.prefillDBGains(), CSCFakeDBNoiseMatrix.prefillDBNoiseMatrix(), CSCFakeDBPedestals.prefillDBPedestals(), CSCGainsConditions.prefillGains(), MultiVertexFitter.printWeights(), L1TMuonBarrelKalmanRegionModule.process(), EgammaHLTPixelMatchElectronAlgo.process(), l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1.processEvent(), TrajSeedMatcher.processSeed(), UncleanSCRecoveryProducer.produce(), UnifiedSCCollectionProducer.produce(), CleanAndMergeProducer.produce(), TrackProducerWithSCAssociation.produce(), LowPtGsfElectronSeedValueMapsProducer.produce(), CalibratedPhotonProducerRun2T< T >.produce(), TSGFromL1Muon.produce(), photonIsolationHIProducer.produce(), CalibratedElectronProducerRun2T< T >.produce(), LowPtGsfElectronSCProducer.produce(), MuonReSeeder.produce(), MuonSeedMerger.produce(), L3TkMuonProducer.produce(), ElectronSeedProducer.produce(), SeedClusterRemoverPhase2.produce(), PFTrackProducer.produce(), SeedClusterRemover.produce(), EcalBarrelClusterFastTimer.produce(), SETMuonSeedProducer.produce(), CosmicMuonSeedGenerator.produce(), TrackCandidateProducer.produce(), TrackTimeValueMapProducer.produce(), EGMSeedGainProducer< T >.produce(), TrackCandidateTopBottomHitFilter.produce(), HLTL1MuonNoL2Selector.produce(), IsolatedPixelTrackCandidateProducer.produce(), HiSpikeCleaner.produce(), IsolatedPixelTrackCandidateL1TProducer.produce(), pat::PATElectronProducer.produce(), TrackFromSeedProducer.produce(), pat::PATPhotonProducer.produce(), SeedToTrackProducer.produce(), TriggerObjectTableProducer.produce(), SimPFProducer.produce(), HLTScoutingEgammaProducer.produce(), cms::CosmicTrackFinder.produce(), PhotonIDValueMapProducer.produce(), EgammaHLTPixelMatchVarProducer.produce(), SmearedJetProducerT< T >.produce(), HGCalIsoCalculator.produceHGCalIso(), GroupedCkfTrajectoryBuilder.rebuildSeedingRegion(), GroupedCkfTrajectoryBuilder.rebuildTrajectories(), MuonTrackFinder.reconstruct(), AdaptiveVertexFitter.reLinearizeTracks(), AdaptiveVertexFitter.reWeightTracks(), heppy::RochCor.RochCor(), heppy::RochCor2012.RochCor2012(), edm::RootEmbeddedFileSequence.RootEmbeddedFileSequence(), MuonSeedCleaner.SeedChi2(), btagbtvdeep.seedingTracksToFeatures(), 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(), 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.

submitPVValidationJobs.split
def split(sequence, size)
Definition: submitPVValidationJobs.py:352
fileCollector.filecheck
def filecheck(rootfile)
Definition: fileCollector.py:35
fileCollector.convert
def convert(infile, ofile)
Definition: fileCollector.py:47
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
readEcalDQMStatus.read
read
Definition: readEcalDQMStatus.py:38
fileCollector.sendmail
def sendmail(body="Hello from visDQMZipCastorVerifier")
Definition: fileCollector.py:52
fileCollector.logme
def logme(msg, *args)
Definition: fileCollector.py:31