15 std::cout <<
"[SvtBlFitHistoProcessor] Configuring" << std::endl;
21 layer_ = parameters.getString(
"layer");
22 rebin_ = parameters.getInteger(
"rebin");
23 minStats_ = parameters.getInteger(
"minStats");
24 deadRMS_ = parameters.getInteger(
"deadRMS");
25 debug_ = parameters.getInteger(
"debug");
26 year_ = parameters.getInteger(
"year");
28 catch (std::runtime_error& error)
30 std::cout << error.what() << std::endl;
36 std::cout <<
"initializing SvtBlFitHistoProcessor" << std::endl;
38 inF_ =
new TFile(inFilename.c_str());
39 outF_ =
new TFile(outFilename.c_str(),
"RECREATE");
47 std::cout <<
"[BlFitHistos] Loading 2D Histos" << std::endl;
94 std::cout <<
"RUNNING PROCESS ON 2d HISTOS" << std::endl;
96 std::map<std::string, TH2F*>::iterator it;
97 for(it = histos2d.begin(); it != histos2d.end(); it++)
98 std::cout <<
"2d Histo Loaded: " << it->first << std::endl;
100 std::cout <<
"FIT 2d HISTO Baselines" << std::endl;
107 std::cout <<
"finalizing SvtBlFitHistoProcessor" << std::endl;
#define DECLARE_PROCESSOR(CLASS)
Macro which allows the framework to construct a producer given its name during configuration.
void setDebug(bool value)
Set debug.
std::map< std::string, TH2F * > get2dHistos()
description
void getHistosFromFile(TFile *inFile, std::string layer="")
Get the Histos From File object.
void fit2DHistoChannelBaselines(std::map< std::string, TH2F * > histos2d, int rebin_, int minStats_, int deadRMS_, std::string thresholdsFileIn_, FlatTupleMaker *flat_tuple_)
description
void addVariable(std::string variable_name)
description
void addString(std::string variable_name)
description
virtual void loadHistoConfig(const std::string histoConfigFile)
load histogram config
Base class for all event processing components.
Insert description here. more details.
virtual void configure(const ParameterSet ¶meters)
description  *  *
virtual void finalize()
description  * 
SvtBlFitHistoProcessor(const std::string &name, Process &process)
Constructor  *  *.
std::string layer_
description
std::string thresholdsFileIn_
description
BlFitHistos * fitHistos_
description
std::string histCfgFilename_
description
virtual void initialize(std::string inFilename, std::string outFilename)
description  *  *
~SvtBlFitHistoProcessor()
FlatTupleMaker * flat_tuple_
description
std::string rawhitsHistCfgFilename_
description
virtual bool process()
description  *  *