14 TFile fin(fname.c_str());
15 fTree = (TTree*)fin.FindObjectAny(
"calTree");
36 const size_t nmac =
fTree->GetEntriesFast();
37 std::cout <<
"retreiving calibration data for " << nmac <<
" FEBs..." << std::endl;
39 for(
size_t imac=0; imac<nmac; imac++){
40 fTree->GetEntry(imac);
44 for(
size_t chan=0; chan < 32; chan++){
120 std::cout <<
"mac5, channel -> gain, ped (active)" << std::endl;
122 std::cout <<
" " << (int)mc.first.first <<
", "
123 << (
int)mc.first.second <<
"-> " << mc.second
bool GetActive(uint8_t mac, uint8_t channel)
float GetPedErr(uint8_t mac, uint8_t channel)
std::map< uint8_t, int > fMacToEntry
float GetPed(uint8_t mac, uint8_t channel)
float GetPedSigma(uint8_t mac, uint8_t channel)
std::vector< uint8_t > fMacs
float GetPedSigmaErr(uint8_t mac, uint8_t channel)
std::map< std::pair< uint8_t, uint8_t >, float > fMacChanToPed
short GetPedNdf(uint8_t mac, uint8_t channel)
vector< uint8_t > GetMacs()
std::map< std::pair< uint8_t, uint8_t >, float > fMacChanToGain
std::map< std::pair< uint8_t, uint8_t >, bool > fMacChanToActive
float GetGain(uint8_t mac, uint8_t channel)
float GetPedXsqr(uint8_t mac, uint8_t channel)
float GetGainXsqr(uint8_t mac, uint8_t channel)
float GetGainErr(uint8_t mac, uint8_t channel)
BEGIN_PROLOG could also be cout
short GetGainNdf(uint8_t mac, uint8_t channel)