CMS 3D CMS Logo

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

#include <HcalPedestalAnalysis.h>

Public Member Functions

int done (const HcalPedestals *fInputPedestals, const HcalPedestalWidths *fInputWidths, HcalPedestals *fOutputPedestals, HcalPedestalWidths *fOutputWidths)
 
 HcalPedestalAnalysis (const edm::ParameterSet &ps)
 Constructor. More...
 
void processEvent (const HBHEDigiCollection &hbhe, const HODigiCollection &ho, const HFDigiCollection &hf, const HcalDbService &cond)
 
void SampleAnalysis ()
 
void setTopology (const HcalTopology *htopo)
 
void setup (const std::string &m_outputFileROOT)
 
 ~HcalPedestalAnalysis ()
 Destructor. More...
 

Static Public Member Functions

static int HcalPedVal (int nstat[4], const HcalPedestals *fRefPedestals, const HcalPedestalWidths *fRefPedestalWidths, HcalPedestals *fRawPedestals, HcalPedestalWidths *fRawPedestalWidths, HcalPedestals *fValPedestals, HcalPedestalWidths *fValPedestalWidths)
 

Private Types

typedef std::pair< TH1F
*, std::pair< std::map< int,
std::vector< double >
>, std::vector< TH1F * > > > 
PEDBUNCH
 

Private Member Functions

void AllChanHists (const HcalDetId detid, const HcalQIESample &qie0, const HcalQIESample &qie1, const HcalQIESample &qie2, const HcalQIESample &qie3, const HcalQIESample &qie4, const HcalQIESample &qie5, std::map< HcalDetId, std::map< int, PEDBUNCH > > &toolT)
 
void GetPedConst (std::map< HcalDetId, std::map< int, PEDBUNCH > > &toolT, TH1F *PedMeans, TH1F *PedWidths)
 
void per2CapsHists (int flag, int id, const HcalDetId detid, const HcalQIESample &qie1, const HcalQIESample &qie2, std::map< HcalDetId, std::map< int, PEDBUNCH > > &toolT, const HcalDbService &cond)
 
void Trendings (std::map< HcalDetId, std::map< int, PEDBUNCH > > &toolT, TH1F *Chi2, TH1F *CapidAverage, TH1F *CapidChi2)
 

Private Attributes

std::map< HcalDetId, std::map
< int, PEDBUNCH > >::iterator 
_meot
 
int evt
 
int evt_curr
 
HcalPedestalsfRawPedestals
 
HcalPedestalWidthsfRawPedestalWidths
 
const HcalPedestalsfRefPedestals
 
const HcalPedestalWidthsfRefPedestalWidths
 
const HcalTopologyfTopology
 
HcalPedestalsfValPedestals
 
HcalPedestalWidthsfValPedestalWidths
 
struct {
   TH1F *   ALLPEDS
 
   TH1F *   CAPID_AVERAGE
 
   TH1F *   CAPID_CHI2
 
   TH1F *   CHI2
 
   TH1F *   PEDMEAN
 
   TH1F *   PEDRMS
 
   std::map< HcalDetId, std::map
< int, PEDBUNCH > >   PEDTRENDS
 
hbHists
 
struct {
   TH1F *   ALLPEDS
 
   TH1F *   CAPID_AVERAGE
 
   TH1F *   CAPID_CHI2
 
   TH1F *   CHI2
 
   TH1F *   PEDMEAN
 
   TH1F *   PEDRMS
 
   std::map< HcalDetId, std::map
< int, PEDBUNCH > >   PEDTRENDS
 
hfHists
 
struct {
   TH1F *   ALLPEDS
 
   TH1F *   CAPID_AVERAGE
 
   TH1F *   CAPID_CHI2
 
   TH1F *   CHI2
 
   TH1F *   PEDMEAN
 
   TH1F *   PEDRMS
 
   std::map< HcalDetId, std::map
< int, PEDBUNCH > >   PEDTRENDS
 
hoHists
 
int m_AllPedsOK
 
const HcalQIECoderm_coder
 
int m_endTS
 
TFile * m_file
 
int m_hiSaveflag
 
std::ofstream m_logFile
 
int m_nevtsample
 
std::string m_outputFileMean
 
std::string m_outputFileROOT
 
std::string m_outputFileWidth
 
int m_pedsinADC
 
int m_pedValflag
 
const HcalQIEShapem_shape
 
int m_startTS
 
float m_stat [4]
 
int sample
 
std::vector< bool > state
 

Static Private Attributes

static const int fitflag =0
 

Detailed Description

Definition at line 37 of file HcalPedestalAnalysis.h.

Member Typedef Documentation

typedef std::pair<TH1F*,std::pair<std::map<int, std::vector<double> >,std::vector<TH1F*> > > HcalPedestalAnalysis::PEDBUNCH
private

Definition at line 91 of file HcalPedestalAnalysis.h.

Constructor & Destructor Documentation

HcalPedestalAnalysis::HcalPedestalAnalysis ( const edm::ParameterSet ps)

Constructor.

Definition at line 16 of file HcalPedestalAnalysis.cc.

HcalPedestalAnalysis::~HcalPedestalAnalysis ( )

Destructor.

Definition at line 83 of file HcalPedestalAnalysis.cc.

Member Function Documentation

void HcalPedestalAnalysis::AllChanHists ( const HcalDetId  detid,
const HcalQIESample qie0,
const HcalQIESample qie1,
const HcalQIESample qie2,
const HcalQIESample qie3,
const HcalQIESample qie4,
const HcalQIESample qie5,
std::map< HcalDetId, std::map< int, PEDBUNCH > > &  toolT 
)
private

Definition at line 317 of file HcalPedestalAnalysis.cc.

int HcalPedestalAnalysis::done ( const HcalPedestals fInputPedestals,
const HcalPedestalWidths fInputWidths,
HcalPedestals fOutputPedestals,
HcalPedestalWidths fOutputWidths 
)

Definition at line 504 of file HcalPedestalAnalysis.cc.

void HcalPedestalAnalysis::GetPedConst ( std::map< HcalDetId, std::map< int, PEDBUNCH > > &  toolT,
TH1F *  PedMeans,
TH1F *  PedWidths 
)
private

Definition at line 352 of file HcalPedestalAnalysis.cc.

int HcalPedestalAnalysis::HcalPedVal ( int  nstat[4],
const HcalPedestals fRefPedestals,
const HcalPedestalWidths fRefPedestalWidths,
HcalPedestals fRawPedestals,
HcalPedestalWidths fRawPedestalWidths,
HcalPedestals fValPedestals,
HcalPedestalWidths fValPedestalWidths 
)
static

Definition at line 751 of file HcalPedestalAnalysis.cc.

void HcalPedestalAnalysis::per2CapsHists ( int  flag,
int  id,
const HcalDetId  detid,
const HcalQIESample qie1,
const HcalQIESample qie2,
std::map< HcalDetId, std::map< int, PEDBUNCH > > &  toolT,
const HcalDbService cond 
)
private

Definition at line 212 of file HcalPedestalAnalysis.cc.

void HcalPedestalAnalysis::processEvent ( const HBHEDigiCollection hbhe,
const HODigiCollection ho,
const HFDigiCollection hf,
const HcalDbService cond 
)

Definition at line 123 of file HcalPedestalAnalysis.cc.

void HcalPedestalAnalysis::SampleAnalysis ( )

Definition at line 329 of file HcalPedestalAnalysis.cc.

void HcalPedestalAnalysis::setTopology ( const HcalTopology htopo)
inline

Definition at line 50 of file HcalPedestalAnalysis.h.

References fTopology.

50 {fTopology = htopo;}
const HcalTopology * fTopology
void HcalPedestalAnalysis::setup ( const std::string &  m_outputFileROOT)

Definition at line 111 of file HcalPedestalAnalysis.cc.

void HcalPedestalAnalysis::Trendings ( std::map< HcalDetId, std::map< int, PEDBUNCH > > &  toolT,
TH1F *  Chi2,
TH1F *  CapidAverage,
TH1F *  CapidChi2 
)
private

Definition at line 596 of file HcalPedestalAnalysis.cc.

Member Data Documentation

std::map<HcalDetId,std::map<int, PEDBUNCH > >::iterator HcalPedestalAnalysis::_meot
private

Definition at line 126 of file HcalPedestalAnalysis.h.

TH1F* HcalPedestalAnalysis::ALLPEDS

Definition at line 119 of file HcalPedestalAnalysis.h.

TH1F* HcalPedestalAnalysis::CAPID_AVERAGE

Definition at line 123 of file HcalPedestalAnalysis.h.

TH1F* HcalPedestalAnalysis::CAPID_CHI2

Definition at line 124 of file HcalPedestalAnalysis.h.

TH1F* HcalPedestalAnalysis::CHI2

Definition at line 122 of file HcalPedestalAnalysis.h.

int HcalPedestalAnalysis::evt
private

Definition at line 133 of file HcalPedestalAnalysis.h.

int HcalPedestalAnalysis::evt_curr
private

Definition at line 135 of file HcalPedestalAnalysis.h.

const int HcalPedestalAnalysis::fitflag =0
staticprivate

Definition at line 140 of file HcalPedestalAnalysis.h.

HcalPedestals* HcalPedestalAnalysis::fRawPedestals
private

Definition at line 129 of file HcalPedestalAnalysis.h.

HcalPedestalWidths* HcalPedestalAnalysis::fRawPedestalWidths
private

Definition at line 130 of file HcalPedestalAnalysis.h.

const HcalPedestals* HcalPedestalAnalysis::fRefPedestals
private

Definition at line 127 of file HcalPedestalAnalysis.h.

const HcalPedestalWidths* HcalPedestalAnalysis::fRefPedestalWidths
private

Definition at line 128 of file HcalPedestalAnalysis.h.

const HcalTopology* HcalPedestalAnalysis::fTopology
private

Definition at line 138 of file HcalPedestalAnalysis.h.

Referenced by setTopology().

HcalPedestals* HcalPedestalAnalysis::fValPedestals
private

Definition at line 131 of file HcalPedestalAnalysis.h.

HcalPedestalWidths* HcalPedestalAnalysis::fValPedestalWidths
private

Definition at line 132 of file HcalPedestalAnalysis.h.

struct { ... } HcalPedestalAnalysis::hbHists
struct { ... } HcalPedestalAnalysis::hfHists
struct { ... } HcalPedestalAnalysis::hoHists
int HcalPedestalAnalysis::m_AllPedsOK
private

Definition at line 113 of file HcalPedestalAnalysis.h.

const HcalQIECoder* HcalPedestalAnalysis::m_coder
private

Definition at line 116 of file HcalPedestalAnalysis.h.

int HcalPedestalAnalysis::m_endTS
private

Definition at line 108 of file HcalPedestalAnalysis.h.

TFile* HcalPedestalAnalysis::m_file
private

Definition at line 101 of file HcalPedestalAnalysis.h.

int HcalPedestalAnalysis::m_hiSaveflag
private

Definition at line 111 of file HcalPedestalAnalysis.h.

std::ofstream HcalPedestalAnalysis::m_logFile
private

Definition at line 106 of file HcalPedestalAnalysis.h.

int HcalPedestalAnalysis::m_nevtsample
private

Definition at line 109 of file HcalPedestalAnalysis.h.

std::string HcalPedestalAnalysis::m_outputFileMean
private

Definition at line 104 of file HcalPedestalAnalysis.h.

std::string HcalPedestalAnalysis::m_outputFileROOT
private

Definition at line 103 of file HcalPedestalAnalysis.h.

std::string HcalPedestalAnalysis::m_outputFileWidth
private

Definition at line 105 of file HcalPedestalAnalysis.h.

int HcalPedestalAnalysis::m_pedsinADC
private

Definition at line 110 of file HcalPedestalAnalysis.h.

int HcalPedestalAnalysis::m_pedValflag
private

Definition at line 112 of file HcalPedestalAnalysis.h.

const HcalQIEShape* HcalPedestalAnalysis::m_shape
private

Definition at line 115 of file HcalPedestalAnalysis.h.

int HcalPedestalAnalysis::m_startTS
private

Definition at line 107 of file HcalPedestalAnalysis.h.

float HcalPedestalAnalysis::m_stat[4]
private

Definition at line 136 of file HcalPedestalAnalysis.h.

TH1F* HcalPedestalAnalysis::PEDMEAN

Definition at line 121 of file HcalPedestalAnalysis.h.

TH1F* HcalPedestalAnalysis::PEDRMS

Definition at line 120 of file HcalPedestalAnalysis.h.

std::map<HcalDetId,std::map<int, PEDBUNCH > > HcalPedestalAnalysis::PEDTRENDS

Definition at line 118 of file HcalPedestalAnalysis.h.

int HcalPedestalAnalysis::sample
private

Definition at line 134 of file HcalPedestalAnalysis.h.

std::vector<bool> HcalPedestalAnalysis::state
private

Definition at line 137 of file HcalPedestalAnalysis.h.