CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
web.app_utils Namespace Reference

Functions

def db_list_with_releases
 
def get_dataset_name
 
def get_directory_summary_stats
 
def get_folders
 
def get_img_path
 
def get_img_url
 
def get_percentage
 
def get_release
 
def get_release_list
 
def get_release_summary_stats
 
def get_stats
 
def join_ranges
 

Variables

dictionary renaming
 

Function Documentation

def web.app_utils.db_list_with_releases (   path = '.')
Returns available database list and their releases.

Definition at line 150 of file app_utils.py.

Referenced by web.dbfile2html.dbfile2html(), and web.browse_db.BrowseDB.default().

def web.app_utils.get_dataset_name (   name)
Returns extracted dataset name from the given ROOT filename.

Definition at line 67 of file app_utils.py.

def web.app_utils.get_directory_summary_stats (   c,
  url_args,
  file_id,
  threshold 
)
Returns context for ``directory_summary.html`` template.

Definition at line 283 of file app_utils.py.

Referenced by web.dbfile2html.dbfile2html(), and web.browse_db.BrowseDB.default().

def web.app_utils.get_folders (   c,
  file_id,
  filename,
  dir_id,
  threshold 
)
Returns file folder stats for one "summary table" column.

Definition at line 113 of file app_utils.py.

def web.app_utils.get_img_path (   filename,
  path 
)
Returns image path for https://cmsweb.cern.ch/dqm histogram
visualisation service

Definition at line 48 of file app_utils.py.

def web.app_utils.get_img_url (   path,
  f1,
  f2 = None,
  w = 250,
  h = 250 
)
Returns full URL of histogram (or histogram overlay) image for
https://cmsweb.cern.ch/dqm visualisation service.

Definition at line 57 of file app_utils.py.

def web.app_utils.get_percentage (   successes,
  nulls,
  fails 
)
Converts integers ``successes``, ``nulls`` and ``fails`` to percents.

Definition at line 100 of file app_utils.py.

def web.app_utils.get_release (   name)
Returns extracted release from the given ROOT filename.

Definition at line 77 of file app_utils.py.

def web.app_utils.get_release_list (   c)
Returns all ``ReleaseComparisons`` found on database.

Definition at line 144 of file app_utils.py.

Referenced by web.browse_db.BrowseDB.default().

def web.app_utils.get_release_summary_stats (   c,
  release_title,
  st_test,
  threshold = 1e-5 
)
Returns context for ``release_summary.html`` template.

Definition at line 163 of file app_utils.py.

Referenced by web.dbfile2html.dbfile2html(), and web.browse_db.BrowseDB.default().

def web.app_utils.get_stats (   c,
  threshold,
  dir_ranges 
)
Returns ``successes``, ``fails``, ``nulls`` for the given dir_ranges.

Definition at line 82 of file app_utils.py.

def web.app_utils.join_ranges (   ranges,
  elem 
)
To do less DB calls, joins [(from_id, till_id), ...] ranges.

Definition at line 133 of file app_utils.py.

Variable Documentation

dictionary web.app_utils.renaming
Initial value:
1 = {
2  'MessageLogger': 'Miscellanea', 'FourVector': 'Generic',
3  'Castor': 'Castor Calorimeter', 'RPCDigisV': 'Resistive Plate Chambers',
4  'GlobalRecHitsV': 'Miscellanea: Sim.', 'Top': 'Top', 'HLTJETMET': 'JetMet',
5  'GlobalDigisV': 'Miscellanea: Sim.', 'L1TEMU': 'Level 1 Trigger',
6  'TrackerRecHitsV': 'Tracking System', 'MuonDTHitsV': 'Muon Objects',
7  'EcalDigisV': 'Ecal Calorimeter', 'EcalHitsV': 'Ecal Calorimeter',
8  'Muons': 'Muon Objects', 'DT': 'Drift Tubes', 'TrackerDigisV': 'Tracking System',
9  'Pixel': 'Tracking System', 'EcalPreshower': 'Ecal Calorimeter',
10  'EgammaV': 'Photons', 'AlCaEcalPi0': 'Alca', 'SusyExo': 'SusyExo',
11  'MuonDTDigisV': 'Muon Objects', 'TauRelVal': 'Tau',
12  'HcalHitsV': 'Hcal Calorimeter', 'RPC': 'Resistive Plate Chambers',
13  'EcalRecHitsV': 'Ecal Calorimeter', 'EgOffline': 'EGamma',
14  'MuonCSCDigisV': 'Muon Objects', 'ParticleFlow': 'Miscellanea',
15  'Info': 'Miscellanea', 'Tracking': 'Tracking',
16  'NoiseRatesV': 'Miscellanea: Sim.', 'Generator': 'Miscellanea: Sim.',
17  'Btag': 'B Tagging', 'Higgs': 'Higgs', 'GlobalHitsV': 'Miscellanea: Sim.',
18  'HcalRecHitsV': 'Hcal Calorimeter', 'TrackerHitsV': 'Tracking System',
19  'CSC': 'Cathode Strip Chambers', 'Muon,HLTMonMuon': 'Muon',
20  'Hcal': 'Hcal Calorimeter', 'TauOffline': 'Tau',
21  'HeavyFlavor': 'HeavyFlavor', 'JetMET': 'Jet', 'Physics': 'Miscellanea',
22  'CaloTowersV': 'Hcal Calorimeter', 'SiStrip': 'Tracking System',
23  'EcalClusterV': 'Ecal Calorimeter', 'HLTEgammaValidation': 'EGamma',
24  'EcalPhiSym': 'Alca', 'L1T': 'Level 1 Trigger', 'MixingV': 'Miscellanea: Sim.',
25  'FourVector_Val': 'Generic', 'EcalEndcap': 'Ecal Calorimeter',
26  'TauOnline': 'Tau', 'Egamma': 'Photons', 'HcalIsoTrack': 'Alca',
27  'EcalBarrel': 'Ecal Calorimeter'
28 }

Definition at line 18 of file app_utils.py.