ATLAS Offline Software
Classes | Namespaces | Functions
MdtDeadNoisyUtils.h File Reference
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <TString.h>
#include <TH1F.h>
#include <TCanvas.h>
Include dependency graph for MdtDeadNoisyUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dqutils_mdtdeadnoisy::TubeRange
 

Namespaces

 dqutils_mdtdeadnoisy
 

Functions

double dqutils_mdtdeadnoisy::sqr (double x)
 
void dqutils_mdtdeadnoisy::displayList (std::vector< int > &v)
 
void dqutils_mdtdeadnoisy::displayList (std::vector< int > &v, std::ofstream &outputfile)
 
void dqutils_mdtdeadnoisy::getDeadList (TH1F *h, std::vector< int > &v)
 
bool dqutils_mdtdeadnoisy::find (std::vector< int > &v, unsigned int x)
 
void dqutils_mdtdeadnoisy::getSurelyDeadList (TH1F *h, std::vector< int > &v, std::vector< int > &betweenlist)
 
void dqutils_mdtdeadnoisy::getNotBetweenList (std::vector< int > &v, std::vector< int > &surely_v, std::vector< int > &betweenlist)
 
void dqutils_mdtdeadnoisy::getNotMasked (std::vector< int > &v, TH1F *h)
 
void dqutils_mdtdeadnoisy::getNotInDeadML (std::vector< int > &v, std::vector< int > &deadML_v, const TString &hardware_name, int totalTubes)
 
void dqutils_mdtdeadnoisy::getNotInDeadLayer (std::vector< int > &v, std::vector< int > &deadLayer_v, const TString &hardware_name, int totalTubes)
 
void dqutils_mdtdeadnoisy::getNotInDeadMezz (std::vector< int > &v, std::vector< int > &deadMezz_v, const TString &hardware_name, int totalTubes)
 
void dqutils_mdtdeadnoisy::getAllBins (TH1F *h, std::vector< int > &v)
 
void dqutils_mdtdeadnoisy::getAllBinsInRange (TH1F *h, std::vector< int > &v, int x1, int x2)
 
void dqutils_mdtdeadnoisy::getAllBinsInRangeBelowCutoff (TH1F *h, std::vector< int > &v, int crustCutoff, int x1, int x2)
 
void dqutils_mdtdeadnoisy::getAllUnmaskedBinsInRangeBelowCrustCutoff (TH1F *h, std::vector< int > &v, int crustCutoff, int x1, int x2)
 
void dqutils_mdtdeadnoisy::getBins (TH1F *h, std::vector< int > &indices, std::vector< int > &content)
 
void dqutils_mdtdeadnoisy::removeZeros (std::vector< int > &v)
 
void dqutils_mdtdeadnoisy::getAllTubes (TH1F *h, std::vector< int > &v)
 
void dqutils_mdtdeadnoisy::getNonEmptyBins (TH1F *h, std::vector< int > &v)
 
void dqutils_mdtdeadnoisy::getNonEmptyTubes (TH1F *h, std::vector< int > &v)
 
template<class T >
double dqutils_mdtdeadnoisy::getMean (std::vector< T > &v)
 
double dqutils_mdtdeadnoisy::getMean_WithCut (std::vector< int > &v, double cut)
 
void dqutils_mdtdeadnoisy::getNoBetweens (TH1F *h, std::vector< int > &no_dead, std::vector< int > &no_betweens, std::vector< int > &betweenlist, float minBinContent)
 
void dqutils_mdtdeadnoisy::getNoBetweens_middle (std::vector< int > no_betweens, std::vector< int > &no_betweens_middle)
 
void dqutils_mdtdeadnoisy::getNoBetweens_lowmiddle (std::vector< int > no_betweens, std::vector< int > &no_betweens_lowmiddle)
 
void dqutils_mdtdeadnoisy::getNoBetweens_middle_aggressive (std::vector< int > no_betweens, std::vector< int > &no_betweens_middle_aggressive)
 
void dqutils_mdtdeadnoisy::getNoBetweens_middle_semiaggressive (std::vector< int > no_betweens, std::vector< int > &no_betweens_middle_aggressive)
 
void dqutils_mdtdeadnoisy::getNoBetweens_lowmiddle_aggressive (std::vector< int > no_betweens, std::vector< int > &no_betweens_lowmiddle_aggressive)
 
void dqutils_mdtdeadnoisy::getNoBetweens_highmiddle_aggressive (std::vector< int > no_betweens, std::vector< int > &no_betweens_lowmiddle_aggressive)
 
double dqutils_mdtdeadnoisy::getStandardDevFromMean (std::vector< int > &v, double mean)
 
double dqutils_mdtdeadnoisy::getStandardDevFromMean_neg (std::vector< int > &v, double mean)
 
double dqutils_mdtdeadnoisy::getStandardDevFromMean_pos (std::vector< int > &v, double mean)
 
void dqutils_mdtdeadnoisy::getNoisyList (TH1F *h, std::vector< int > &no_betweens_middle, std::vector< int > &no_betweens_middle_aggressive, double num_std_dev, std::vector< int > &noisylist)
 
void dqutils_mdtdeadnoisy::getNoisyList2 (TH1F *h, std::vector< int > &no_betweens_middle, std::vector< int > &no_betweens_middle_aggressive, double num_pct, std::vector< int > &noisylist)
 
void dqutils_mdtdeadnoisy::getIneffList (TH1F *h, std::vector< int > &no_betweens_middle, std::vector< int > &no_betweens_lowmiddle_aggressive, double num_std_dev, std::vector< int > &inefflist)
 
void dqutils_mdtdeadnoisy::getIneffList (TH1F *h, std::vector< int > &no_betweens_middle, std::vector< int > &no_betweens_lowmiddle_aggressive, double num_std_dev_1, double num_std_dev_2, std::vector< int > &inefflist)
 
void dqutils_mdtdeadnoisy::getIneffList2 (TH1F *h, std::vector< int > &no_betweens_middle, std::vector< int > &no_betweens_lowmiddle_aggressive, double num_pct, std::vector< int > &inefflist)
 
void dqutils_mdtdeadnoisy::getIneffList2 (TH1F *h, std::vector< int > &no_betweens_middle, std::vector< int > &no_betweens_lowmiddle_aggressive, double num_pct_1, double num_pct_2, std::vector< int > &inefflist)
 
void dqutils_mdtdeadnoisy::getIneffList2 (std::vector< int > &indices, TH1F *h, std::vector< int > &no_betweens_middle, std::vector< int > &no_betweens_lowmiddle_aggressive, double num_pct, std::vector< int > &inefflist)
 
bool dqutils_mdtdeadnoisy::validityCheckDead (std::vector< int > &no_betweens_middle, std::vector< int > &no_betweens_middle_aggressive)
 
bool dqutils_mdtdeadnoisy::validityCheckNoise (std::vector< int > &no_betweens_middle, std::vector< int > &no_betweens_middle_aggressive)
 
void dqutils_mdtdeadnoisy::getNonEmptyNonNoisyTubes (TH1F *h_tube_fornoise, TH1F *h_tube, std::vector< int > &non_dead_non_noisy)
 
void dqutils_mdtdeadnoisy::removeNonContiguous (std::vector< int > &betweenlist, unsigned int sz)
 
void dqutils_mdtdeadnoisy::CatalogNoisyEff (TH1F *h_tube_bkd, TH1F *h_tube_fornoise, TH1F *num, TH1F *den, int nTriggers, TH1F *EffVSNoise_num, TH1F *EffVSNoise_den, TH1F *EffVSNoise_ADCCut_num, TH1F *EffVSNoise_ADCCut_den, TH1F *EffVSBkd_num, TH1F *EffVSBkd_den)
 
std::vector< int > dqutils_mdtdeadnoisy::GetNoisyTubes (TH1F *h_tube_fornoise, int nTriggers, float frequency)
 
std::vector< int > dqutils_mdtdeadnoisy::GetNoisyTubes (TH1F *h_tube_fornoise, TH1F *h_tube, TString chamber, int &validity)
 
std::vector< int > dqutils_mdtdeadnoisy::GetNoisyTubes_WithoutForNoise (TH1F *h_tube, int &validity, TString chamber)
 
std::vector< int > dqutils_mdtdeadnoisy::GetDeadTubes (TH1F *h_tube, int &validity, std::vector< int > &deadML_v, std::vector< int > &deadLayer_v, std::vector< int > &deadMezz_v)
 
std::vector< int > dqutils_mdtdeadnoisy::GetMaskedTubesForDead (TH1F *h_tube)
 
std::vector< int > dqutils_mdtdeadnoisy::GetMaskedTubesForNoisy (TH1F *h_tube_fornoise)
 
double dqutils_mdtdeadnoisy::GetMeanFromHist (TH1F *h_tube)
 
double dqutils_mdtdeadnoisy::GetStandardDevFromHist (TH1F *h_tube, double mean)
 
int dqutils_mdtdeadnoisy::getLastTubeInLayer (int &firstTubeInLayer, const TString &hardware_name, int totalTubes)
 
std::vector< TubeRange > dqutils_mdtdeadnoisy::getLayerRanges (const TString &hardware_name, int totalTubes)
 
int dqutils_mdtdeadnoisy::getLastTubeInML (int &firstTubeInML, const TString &hardware_name, int totalTubes)
 
std::vector< TubeRange > dqutils_mdtdeadnoisy::getMLRanges (const TString &hardware_name, int totalTubes)
 
std::vector< TubeRange > dqutils_mdtdeadnoisy::getMezzRanges (const TString &hardware_name, int totalTubes, int &groupsPerLayer)
 
int dqutils_mdtdeadnoisy::Get_ML_of_Mezz (int &mezz, const TString &hardware_name, int totalTubes)
 
int dqutils_mdtdeadnoisy::Get_ML_of_Mezz_degenerate (int &mezz, const TString &hardware_name, int totalTubes)
 
std::vector< int > dqutils_mdtdeadnoisy::FindDeadMezz (TH1F *h_tube, const TString &hardware_name, std::vector< int > &deadML_v)
 
std::vector< int > dqutils_mdtdeadnoisy::FindDeadLayer (TH1F *h_tube, const TString &hardware_name, std::vector< int > &deadML_v)
 
std::vector< int > dqutils_mdtdeadnoisy::FindDeadML (TH1F *h_tube, const TString &hardware_name)
 
int dqutils_mdtdeadnoisy::GetNumML (const TString &hardware_name)
 
int dqutils_mdtdeadnoisy::GetNumLayersPerML (const TString &hardware_name)
 
int dqutils_mdtdeadnoisy::GetNumTubesPerMezz (const TString &hardware_name, int mezz)
 
int dqutils_mdtdeadnoisy::GetNumTubesPerML (const TString &hardware_name, int layer, int TotalTubes)
 
int dqutils_mdtdeadnoisy::GetNumTubesPerLayer (const TString &hardware_name, int ML, int TotalTubes)
 
int dqutils_mdtdeadnoisy::Get_ML_of_Layer (int &layer, const TString &hardware_name)
 
int dqutils_mdtdeadnoisy::Get_ML_of_Tube (int &tubeID, const TString &hardware_name, int totalTubes)
 
int dqutils_mdtdeadnoisy::Get_Layer_of_Tube (int &tubeID, const TString &hardware_name, int totalTubes)
 
int dqutils_mdtdeadnoisy::Get_Mezz_of_Tube (int &tubeID, const TString &hardware_name, std::vector< TubeRange > &tubeRanges, int groupsPerLayer)
 
int dqutils_mdtdeadnoisy::GetNumNonMaskedTubes (TH1F *h_tube)
 
int dqutils_mdtdeadnoisy::GetNumMezz (TH1F *h_tube)
 
bool dqutils_mdtdeadnoisy::AinB (int A, std::vector< int > &B)
 
bool dqutils_mdtdeadnoisy::AinB (int A, const std::vector< int > *B)
 
void dqutils_mdtdeadnoisy::FillPDF (const std::string &inFilename, TH1F *hDead, TH1F *hNoise, TCanvas *c, const std::vector< int > *deadTubes, const std::vector< int > *deadASD, const std::vector< int > *deadMEZZ, const std::vector< int > *deadLayer, const std::vector< int > *deadML, const std::vector< int > *noisyTubes, const std::vector< int > *noisyASD, const std::vector< int > *noisyMEZZ, const std::vector< int > *noisyLayer, const std::vector< int > *noisyML, int deadTubesChamberValidity, int noisyTubesChamberValidity, bool draw_Mezz_L_ML_guidlines, bool draw_mean, bool draw_masked_tubes, bool separate_dead_noisy_histos, bool draw_validity_message, bool draw_histo_if_nothing_to_report)