11 std::cout <<
"Configuring ClusterOnTrackAnaProcessor" << std::endl;
12 debug_ = parameters.getInteger(
"debug");
13 anaName_ = parameters.getString(
"anaName");
14 trkColl_ = parameters.getString(
"trkColl");
38 if(
debug_ > 0) std::cout <<
"Histos Defined" << std::endl;
42 if(
debug_ > 0) std::cout <<
"Branch changed to " <<
trkColl_ << std::endl;
49 for (
int itrack = 0; itrack<
tracks_->size();itrack++) {
52 if (track->getSvtHits().GetEntries()==0) {
53 std::cout<<
"WARNING::track doesn't have hits associated to it"<<std::endl;
57 for (
int ihit = 0; ihit<track->getSvtHits().GetEntries(); ++ihit) {
#define DECLARE_PROCESSOR(CLASS)
Macro which allows the framework to construct a producer given its name during configuration.
virtual void Define1DHistos()
description
void FillHistograms(TrackerHit *hit, float weight=1.)
description
virtual void Define2DHistos()
description
bool LoadOfflineBaselines(const std::string &baselineFits)
Load offline baseline.
Insert description here. more details.
std::string anaName_
description
virtual void configure(const ParameterSet ¶meters)
Configure using given parameters.
virtual void finalize()
description
ClusterOnTrackAnaProcessor(const std::string &name, Process &process)
Constructor.
~ClusterOnTrackAnaProcessor()
virtual void initialize(TTree *tree)
description
std::string baselineFits_
description
TBranch * btracks_
description
std::string trkColl_
description
ClusterHistos * clusterHistos
description
std::string baselineRun_
description
std::vector< Track * > * tracks_
Containers for adding to the TTree.
virtual void saveHistos(TFile *outF=nullptr, std::string folder="")
save histograms
Base class for all event processing components.
virtual bool process()
Process the histograms and generate analysis output.