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
CastorPedestalAnalysis Class Reference

#include <CastorPedestalAnalysis.h>

Public Member Functions

 CastorPedestalAnalysis (const edm::ParameterSet &ps)
 Constructor. More...
 
int done (const CastorPedestals *fInputPedestals, const CastorPedestalWidths *fInputWidths, CastorPedestals *fOutputPedestals, CastorPedestalWidths *fOutputWidths)
 
void processEvent (const CastorDigiCollection &castor, const CastorDbService &cond)
 
void SampleAnalysis ()
 
void setup (const std::string &m_outputFileROOT)
 
 ~CastorPedestalAnalysis ()
 Destructor. More...
 

Static Public Member Functions

static int CastorPedVal (int nstat[4], const CastorPedestals *fRefPedestals, const CastorPedestalWidths *fRefPedestalWidths, CastorPedestals *fRawPedestals, CastorPedestalWidths *fRawPedestalWidths, CastorPedestals *fValPedestals, CastorPedestalWidths *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 CastorDbService &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
 
struct {
   TH1F *   ALLPEDS
 
   TH1F *   CAPID_AVERAGE
 
   TH1F *   CAPID_CHI2
 
   TH1F *   CHI2
 
   TH1F *   PEDMEAN
 
   TH1F *   PEDRMS
 
   std::map< HcalDetId, std::map
< int, PEDBUNCH > >   PEDTRENDS
 
castorHists
 
int evt
 
int evt_curr
 
CastorPedestalsfRawPedestals
 
CastorPedestalWidthsfRawPedestalWidths
 
const CastorPedestalsfRefPedestals
 
const CastorPedestalWidthsfRefPedestalWidths
 
CastorPedestalsfValPedestals
 
CastorPedestalWidthsfValPedestalWidths
 
int m_AllPedsOK
 
const CastorQIECoderm_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 CastorQIEShapem_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 39 of file CastorPedestalAnalysis.h.

Member Typedef Documentation

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

Definition at line 89 of file CastorPedestalAnalysis.h.

Constructor & Destructor Documentation

CastorPedestalAnalysis::CastorPedestalAnalysis ( const edm::ParameterSet ps)

Constructor.

Definition at line 15 of file CastorPedestalAnalysis.cc.

CastorPedestalAnalysis::~CastorPedestalAnalysis ( )

Destructor.

Definition at line 69 of file CastorPedestalAnalysis.cc.

Member Function Documentation

void CastorPedestalAnalysis::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 239 of file CastorPedestalAnalysis.cc.

int CastorPedestalAnalysis::CastorPedVal ( int  nstat[4],
const CastorPedestals fRefPedestals,
const CastorPedestalWidths fRefPedestalWidths,
CastorPedestals fRawPedestals,
CastorPedestalWidths fRawPedestalWidths,
CastorPedestals fValPedestals,
CastorPedestalWidths fValPedestalWidths 
)
static

Definition at line 644 of file CastorPedestalAnalysis.cc.

int CastorPedestalAnalysis::done ( const CastorPedestals fInputPedestals,
const CastorPedestalWidths fInputWidths,
CastorPedestals fOutputPedestals,
CastorPedestalWidths fOutputWidths 
)

Definition at line 414 of file CastorPedestalAnalysis.cc.

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

Definition at line 264 of file CastorPedestalAnalysis.cc.

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

Definition at line 131 of file CastorPedestalAnalysis.cc.

void CastorPedestalAnalysis::processEvent ( const CastorDigiCollection castor,
const CastorDbService cond 
)

Definition at line 90 of file CastorPedestalAnalysis.cc.

void CastorPedestalAnalysis::SampleAnalysis ( )

Definition at line 251 of file CastorPedestalAnalysis.cc.

void CastorPedestalAnalysis::setup ( const std::string &  m_outputFileROOT)

Definition at line 82 of file CastorPedestalAnalysis.cc.

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

Definition at line 489 of file CastorPedestalAnalysis.cc.

Member Data Documentation

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

Definition at line 124 of file CastorPedestalAnalysis.h.

TH1F* CastorPedestalAnalysis::ALLPEDS

Definition at line 117 of file CastorPedestalAnalysis.h.

TH1F* CastorPedestalAnalysis::CAPID_AVERAGE

Definition at line 121 of file CastorPedestalAnalysis.h.

TH1F* CastorPedestalAnalysis::CAPID_CHI2

Definition at line 122 of file CastorPedestalAnalysis.h.

struct { ... } CastorPedestalAnalysis::castorHists
TH1F* CastorPedestalAnalysis::CHI2

Definition at line 120 of file CastorPedestalAnalysis.h.

int CastorPedestalAnalysis::evt
private

Definition at line 131 of file CastorPedestalAnalysis.h.

int CastorPedestalAnalysis::evt_curr
private

Definition at line 133 of file CastorPedestalAnalysis.h.

const int CastorPedestalAnalysis::fitflag =0
staticprivate

Definition at line 138 of file CastorPedestalAnalysis.h.

CastorPedestals* CastorPedestalAnalysis::fRawPedestals
private

Definition at line 127 of file CastorPedestalAnalysis.h.

CastorPedestalWidths* CastorPedestalAnalysis::fRawPedestalWidths
private

Definition at line 128 of file CastorPedestalAnalysis.h.

const CastorPedestals* CastorPedestalAnalysis::fRefPedestals
private

Definition at line 125 of file CastorPedestalAnalysis.h.

const CastorPedestalWidths* CastorPedestalAnalysis::fRefPedestalWidths
private

Definition at line 126 of file CastorPedestalAnalysis.h.

CastorPedestals* CastorPedestalAnalysis::fValPedestals
private

Definition at line 129 of file CastorPedestalAnalysis.h.

CastorPedestalWidths* CastorPedestalAnalysis::fValPedestalWidths
private

Definition at line 130 of file CastorPedestalAnalysis.h.

int CastorPedestalAnalysis::m_AllPedsOK
private

Definition at line 111 of file CastorPedestalAnalysis.h.

const CastorQIECoder* CastorPedestalAnalysis::m_coder
private

Definition at line 114 of file CastorPedestalAnalysis.h.

int CastorPedestalAnalysis::m_endTS
private

Definition at line 106 of file CastorPedestalAnalysis.h.

TFile* CastorPedestalAnalysis::m_file
private

Definition at line 99 of file CastorPedestalAnalysis.h.

int CastorPedestalAnalysis::m_hiSaveflag
private

Definition at line 109 of file CastorPedestalAnalysis.h.

std::ofstream CastorPedestalAnalysis::m_logFile
private

Definition at line 104 of file CastorPedestalAnalysis.h.

int CastorPedestalAnalysis::m_nevtsample
private

Definition at line 107 of file CastorPedestalAnalysis.h.

std::string CastorPedestalAnalysis::m_outputFileMean
private

Definition at line 102 of file CastorPedestalAnalysis.h.

std::string CastorPedestalAnalysis::m_outputFileROOT
private

Definition at line 101 of file CastorPedestalAnalysis.h.

std::string CastorPedestalAnalysis::m_outputFileWidth
private

Definition at line 103 of file CastorPedestalAnalysis.h.

int CastorPedestalAnalysis::m_pedsinADC
private

Definition at line 108 of file CastorPedestalAnalysis.h.

int CastorPedestalAnalysis::m_pedValflag
private

Definition at line 110 of file CastorPedestalAnalysis.h.

const CastorQIEShape* CastorPedestalAnalysis::m_shape
private

Definition at line 113 of file CastorPedestalAnalysis.h.

int CastorPedestalAnalysis::m_startTS
private

Definition at line 105 of file CastorPedestalAnalysis.h.

float CastorPedestalAnalysis::m_stat[4]
private

Definition at line 134 of file CastorPedestalAnalysis.h.

TH1F* CastorPedestalAnalysis::PEDMEAN

Definition at line 119 of file CastorPedestalAnalysis.h.

TH1F* CastorPedestalAnalysis::PEDRMS

Definition at line 118 of file CastorPedestalAnalysis.h.

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

Definition at line 116 of file CastorPedestalAnalysis.h.

int CastorPedestalAnalysis::sample
private

Definition at line 132 of file CastorPedestalAnalysis.h.

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

Definition at line 135 of file CastorPedestalAnalysis.h.