CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
CSCAFEBThrAnalysis Class Reference

#include <CSCAFEBThrAnalysis.h>

Public Member Functions

void analyze (const CSCWireDigiCollection &wirecltn)
 
 CSCAFEBThrAnalysis ()
 
void done ()
 
void setup (const std::string &histoFileName)
 

Private Member Functions

void bookForId (int flag, const int &idint, const std::string &ids)
 
void hf1ForId (std::map< int, TH1 * > &mp, int flag, const int &id, float &x, float w)
 
void hf2ForId (std::map< int, TH2 * > &mp, int flag, const int &id, float &x, float &y, float w)
 

Private Attributes

int BegDac
 
const CSCToAFEB csctoafeb
 Layer, wire to AFEB, channel conversion. More...
 
int EndDac
 
int EvDac
 
TFile * hist_file
 ROOT hist file. More...
 
int unsigned indDac
 
std::map< int, std::vector
< std::vector< float > > > 
m_res_for_db
 
std::map< int, std::vector
< std::vector< int > > > 
m_wire_dac
 
std::map< int, std::vector< int > > m_wire_ev
 Maps - per event, threshold curve, fit results. More...
 
std::map< int, TH2 * > mh_AfebChi2perNDF
 
std::map< int, TH2 * > mh_AfebDac
 
std::map< int, TH2 * > mh_AfebNDF
 
std::map< int, TH2 * > mh_AfebNoisePar
 
std::map< int, TH2 * > mh_AfebThrPar
 
std::map< int, TH1 * > mh_ChanEff
 Histogram maps. More...
 
std::map< int, TH2 * > mh_FirstTime
 
int nmbev
 Statistics. More...
 
int nmbev_no_wire
 
int npulses
 DAC info. More...
 
int StepDac
 
std::vector< float > vecDac
 
std::vector< int > vecDacOccup
 

Detailed Description

Author

Definition at line 18 of file CSCAFEBThrAnalysis.h.

Constructor & Destructor Documentation

CSCAFEBThrAnalysis::CSCAFEBThrAnalysis ( )

Definition at line 10 of file CSCAFEBThrAnalysis.cc.

Member Function Documentation

void CSCAFEBThrAnalysis::analyze ( const CSCWireDigiCollection wirecltn)

Store DAC

Plot time bin of the first hit vs AFEB channels

Store time bin of the first hit into map

Accumulate hits into map of wires vs DAC

Definition at line 135 of file CSCAFEBThrAnalysis.cc.

Referenced by CSCAFEBAnalyzer::analyze().

void CSCAFEBThrAnalysis::bookForId ( int  flag,
const int &  idint,
const std::string &  ids 
)
private

Definition at line 40 of file CSCAFEBThrAnalysis.cc.

void CSCAFEBThrAnalysis::done ( )

Plot "efficiency" vs AFEB channels

Fitting threshold curve

Histogram fit results for given CSC vs wire defined as x=(afeb-1)*16+ch

Threshold

Noise

NDF

Chi2/NDF

Prepare vector of fit results

Store fit results to map of wire vectors of vectors of results

Definition at line 237 of file CSCAFEBThrAnalysis.cc.

Referenced by CSCAFEBAnalyzer::endJob().

void CSCAFEBThrAnalysis::hf1ForId ( std::map< int, TH1 * > &  mp,
int  flag,
const int &  id,
float &  x,
float  w 
)
private

Definition at line 109 of file CSCAFEBThrAnalysis.cc.

void CSCAFEBThrAnalysis::hf2ForId ( std::map< int, TH2 * > &  mp,
int  flag,
const int &  id,
float &  x,
float &  y,
float  w 
)
private

Definition at line 121 of file CSCAFEBThrAnalysis.cc.

void CSCAFEBThrAnalysis::setup ( const std::string &  histoFileName)

open the histogram file

Definition at line 34 of file CSCAFEBThrAnalysis.cc.

Referenced by CSCAFEBAnalyzer::CSCAFEBAnalyzer().

Member Data Documentation

int CSCAFEBThrAnalysis::BegDac
private

Definition at line 38 of file CSCAFEBThrAnalysis.h.

const CSCToAFEB CSCAFEBThrAnalysis::csctoafeb
private

Layer, wire to AFEB, channel conversion.

Definition at line 51 of file CSCAFEBThrAnalysis.h.

int CSCAFEBThrAnalysis::EndDac
private

Definition at line 39 of file CSCAFEBThrAnalysis.h.

int CSCAFEBThrAnalysis::EvDac
private

Definition at line 40 of file CSCAFEBThrAnalysis.h.

TFile* CSCAFEBThrAnalysis::hist_file
private

ROOT hist file.

Definition at line 54 of file CSCAFEBThrAnalysis.h.

int unsigned CSCAFEBThrAnalysis::indDac
private

Definition at line 37 of file CSCAFEBThrAnalysis.h.

std::map<int, std::vector<std::vector<float> > > CSCAFEBThrAnalysis::m_res_for_db
private

Definition at line 48 of file CSCAFEBThrAnalysis.h.

std::map<int, std::vector<std::vector<int> > > CSCAFEBThrAnalysis::m_wire_dac
private

Definition at line 47 of file CSCAFEBThrAnalysis.h.

std::map<int, std::vector<int> > CSCAFEBThrAnalysis::m_wire_ev
private

Maps - per event, threshold curve, fit results.

Definition at line 46 of file CSCAFEBThrAnalysis.h.

std::map<int, TH2*> CSCAFEBThrAnalysis::mh_AfebChi2perNDF
private

Definition at line 64 of file CSCAFEBThrAnalysis.h.

std::map<int, TH2*> CSCAFEBThrAnalysis::mh_AfebDac
private

Definition at line 60 of file CSCAFEBThrAnalysis.h.

std::map<int, TH2*> CSCAFEBThrAnalysis::mh_AfebNDF
private

Definition at line 63 of file CSCAFEBThrAnalysis.h.

std::map<int, TH2*> CSCAFEBThrAnalysis::mh_AfebNoisePar
private

Definition at line 62 of file CSCAFEBThrAnalysis.h.

std::map<int, TH2*> CSCAFEBThrAnalysis::mh_AfebThrPar
private

Definition at line 61 of file CSCAFEBThrAnalysis.h.

std::map<int, TH1*> CSCAFEBThrAnalysis::mh_ChanEff
private

Histogram maps.

Definition at line 57 of file CSCAFEBThrAnalysis.h.

std::map<int, TH2*> CSCAFEBThrAnalysis::mh_FirstTime
private

Definition at line 59 of file CSCAFEBThrAnalysis.h.

int CSCAFEBThrAnalysis::nmbev
private

Statistics.

Definition at line 32 of file CSCAFEBThrAnalysis.h.

int CSCAFEBThrAnalysis::nmbev_no_wire
private

Definition at line 33 of file CSCAFEBThrAnalysis.h.

int CSCAFEBThrAnalysis::npulses
private

DAC info.

Definition at line 36 of file CSCAFEBThrAnalysis.h.

int CSCAFEBThrAnalysis::StepDac
private

Definition at line 41 of file CSCAFEBThrAnalysis.h.

std::vector<float> CSCAFEBThrAnalysis::vecDac
private

Definition at line 42 of file CSCAFEBThrAnalysis.h.

std::vector<int> CSCAFEBThrAnalysis::vecDacOccup
private

Definition at line 43 of file CSCAFEBThrAnalysis.h.