32 std::cout <<
"HarpoPedMgr::SetFile " << *file << std::endl;
48 std::cout <<
"Lookup " << run <<
" plane " << detno <<
" in file " <<
fn <<
" (" <<
f <<
")" << std::endl;
51 TTree * t = (TTree *)
f->Get(
"PedsRaw");
52 std::cout <<
"TTree at " << t << std::endl;
53 t->ResetBranchAddresses();
55 TBranch *brunno = t->GetBranch(
"nRun");
56 TBranch *bpraw = t->GetBranch(
"PedsRaw");
57 bpraw->SetAddress(&praw);
59 Int_t nevent = t->GetEntries();
60 std::cout <<
"N entries "<< nevent << std::endl;
62 for (Int_t i=0;i<nevent;i++) {
65 if (praw->
nRun != run)
continue;
69 if ( praw->
Plane != detno )
continue;
84 Int_t plane, Int_t card)
87 const char *pedfile =
"pedsraw.root";
97 for (UInt_t i=0; i < ptr->
GetPedLen(); i++) {
102 TFile f1(pedfile,
"RECREATE");
103 TTree *t =
new TTree(
"PedsRaw",
"Harpo Raw Pedestal Tree");
105 t->Branch(
"PedsRaw",&s);
void WriteRunPedestals(Long_t run, HarpoPedestal *p, Int_t plane, Int_t card=0)
HarpoPedestal * Lookup(Long_t run, Long_t detno)
! Serach pedestal and means for given plane
void SetFile(TString *file)
Set Femimos Pedistal File Name.
HarpoPedMgr()
A class HarpoPedMgr.
Double_t Mean[NCHIP *NCHAN]
Double_t GetPed(UInt_t chan)
! Get Channel Pedestal Mean Value
Double_t GetSigma(UInt_t chan)
! Get Channael Pedestal Sigma Value
Double_t Sigma[NCHIP *NCHAN]
void SetPeds(Double_t mean[], Double_t sigma[])
! Fill pedestal mean and sigma from external arrray