78 double a_ampScalar=1.0
97 double a_searchStart = -1.0,
98 double a_searchStop = -1.0,
99 double a_searchStep = -1.0
130 int a_mapRegionStart,
132 double a_searchStart,
145 std::ostream& a_stream = std::cout
151 std::string a_fileName
166 int a_startMapElement,
167 int a_stopMapElement,
174 void setBranchName(){};
182 double m_searchStart;
184 double m_searchStop ;
186 double m_searchStep ;
188 TH2* buildEmptyTimeHistoryHist(
int a_detID,
int a_elementID);
192 TH2* buildEmptyMapHist(
int a_detID,
int a_elementID,
int a_mapLength);
198 typedef std::map<uint32_t, std::vector<uint16_t> > timeHistogram;
201 std::map<std::pair<uint16_t,uint16_t>,timeHistogram > m_detTimeHistory;
204 std::map<string,int> m_histNames;
206 std::map<std::pair<uint16_t,uint16_t>,
207 std::map<uint32_t,double> > m_gainCorrection;
209 std::map<std::pair<uint16_t,uint16_t>,
bool> m_hasCorrection;
211 std::map<std::pair<uint16_t,uint16_t>,std::map<uint32_t,bool> > m_nearBoundary;
Definition: CloverGainDriftAna.h:27
void readTreeIntoMemory(double a_dsFactor=1, double a_minAmp=-1)
Definition: CloverGainDriftAna.cpp:221
void setSearchStop(double m_searchStop)
the stopping fraction of the search defaults to 1.02
Definition: CloverGainDriftAna.cpp:208
virtual std::ostream & printJSONFormat(int a_detID, int a_elementID, std::ostream &a_stream=std::cout) const
prints the current state of the gain corrections to the specified stream
Definition: CloverGainDriftAna.cpp:752
void setGCFactors(int a_detID, int a_elementID, int a_startMapElement, int a_stopMapElement, double a_gcFactor)
Definition: CloverGainDriftAna.cpp:887
std::map< double, double > getHistShapeTest(int a_detID, int a_elementID, int a_mapLocation1, int a_mapLocation2, double a_searchStart=-1.0, double a_searchStop=-1.0, double a_searchStep=-1.0)
Definition: CloverGainDriftAna.cpp:426
void setStopBin(int a_bin)
Definition: CloverGainDriftAna.cpp:193
std::ostream & printTimeChunkList(std::ostream &a_stream, int a_detID, int a_elementID)
Definition: CloverGainDriftAna.cpp:287
std::pair< double, double > getGainCorrectionFactor(int a_detID, int a_elementID, int a_mapLocation1, int a_mapLocation2)
Definition: CloverGainDriftAna.cpp:524
void writeMapHistsToFile(std::string a_fileName)
Definition: CloverGainDriftAna.cpp:399
int addFile(string a_filename)
Definition: CloverGainDriftAna.cpp:41
void setStartBin(int a_bin)
Definition: CloverGainDriftAna.cpp:188
TGraph * plotGCState(int a_detID, int a_elementID)
Definition: CloverGainDriftAna.cpp:710
TH2 * getCorrectedMap(int a_detID, int a_elementID)
Definition: CloverGainDriftAna.cpp:834
void setTStep(int a_tStepS)
Definition: CloverGainDriftAna.cpp:198
std::vector< TH2 * > buildTimeHistory()
Definition: CloverGainDriftAna.cpp:109
void setSearchStart(double m_searchStart)
the starting fraction of the search defaults to 0.98
Definition: CloverGainDriftAna.cpp:203
CloverGainDriftAna()
puts the class into a working state without much functionality
Definition: CloverGainDriftAna.cpp:17
TH2 * getCorrectedHist(int a_detID, int a_elementID)
Definition: CloverGainDriftAna.cpp:785
void setStartDate(int a_year, int a_month, int a_day)
set the start bin of the histogram to the supplied date and time
Definition: CloverGainDriftAna.cpp:155
TH2 * getHistFromMap(int a_detID, int a_elementID)
Definition: CloverGainDriftAna.cpp:364
std::map< uint32_t, double > recalcGainCorrectionFactors(int a_detID, int a_elementID, int a_mapLocation, int a_mapRegionStart, int a_mapRegionStop, double a_searchStart, double a_searchStop, double a_searchStep)
Definition: CloverGainDriftAna.cpp:620
void setStopDate(int a_year, int a_month, int a_day)
sets the last bin of the histograms to the supplied date
Definition: CloverGainDriftAna.cpp:171
TGraph * getHistShapeTestPlot(int a_detID, int a_elementID, int a_mapLocation1, int a_mapLocation2)
Definition: CloverGainDriftAna.cpp:499
void saveGCFactorJSON(int a_detID, int a_elementID, std::string a_fileName)
Definition: CloverGainDriftAna.cpp:772
TH1 * getHistForTimeChunk(int a_detID, int a_elementID, int a_mapLocation, double a_ampScalar=1.0)
Definition: CloverGainDriftAna.cpp:309
std::map< uint32_t, double > getGainCorrectionFactors(int a_detID, int a_elementID, int a_mapLocation)
Definition: CloverGainDriftAna.cpp:554
void setSearchStep(double m_searchStep)
the resolution of the grid search defaults to 0.0001
Definition: CloverGainDriftAna.cpp:213
Definition: PostProcBase.h:21
Definition: CloverGainDriftAna.h:8
used to leverage the overloaded postProcClass
Definition: CloverGainDriftAna.h:11
int32_t wallTime
Definition: CloverGainDriftAna.h:16
uint16_t amp
Definition: CloverGainDriftAna.h:15
int16_t elementID
Definition: CloverGainDriftAna.h:14
int16_t detID
Definition: CloverGainDriftAna.h:13