9 : m_file(nullptr), m_tree(nullptr), m_data(nullptr), m_dataSize(0) {
10 TDirectory *
dir = gDirectory;
11 m_file =
new TFile(fileName.c_str(),
"RECREATE");
13 m_tree =
new TTree(treeName.c_str(),
"Analysis tree");
14 m_tree->SetAutoSave(10000000);
18 m_data =
new TClonesArray(TB06Reco::Class(), 1);
19 m_data->ExpandCreateFast(1);
29 std::cout <<
"[TB06Tree][dtor] saving TTree " <<
m_tree->GetName() <<
" with " <<
m_tree->GetEntries() <<
" entries"
30 <<
" on file: " <<
m_file->GetName() << std::endl;
50 const double &xquality,
51 const double &yquality,
55 const double &beamEnergy,
56 const double ampl[49]) {
117 crystal[
eta][
phi] = -999.;
127 std::cout <<
"[TB06Tree][check]reading . . . \n";
128 std::cout <<
"[TB06Tree][check] entry->run: " << entry->
run <<
"\n";
129 std::cout <<
"[TB06Tree][check] entry->event: " << entry->
event <<
"\n";
140 std::cout <<
"[TB06Tree][check] entry->xHodo: " << entry->
xHodo <<
"\n";
141 std::cout <<
"[TB06Tree][check] entry->yHodo: " << entry->
yHodo <<
"\n";
Float_t convFactor
conversion factor from ADC to GeV used
Float_t yHodo
hodoscope y coord (phi)
Float_t localMap[7][7]
energy in 7x7 xtals around the most energetic one
void reset(float crystal[11][21])
void store(const int &tableIsMoving, const int &run, const int &event, const int &S6adc, const double &xhodo, const double &yhodo, const double &xslope, const double &yslope, const double &xquality, const double &yquality, const int &icMax, const int &ietaMax, const int &iphiMax, const double &beamEnergy, const double ampl[49])
to be called at each loop
Int_t MEXTLeta
most energetic crystal eta
Float_t xQualityHodo
hodoscope x quality (eta)
Float_t MEXTLenergy
most energetic crystal energy
TB06Tree(const std::string &fileName="TB06Tree.root", const std::string &treeName="Analysis")
ctor
Float_t xSlopeHodo
hodoscope x slope (eta)
Int_t MEXTLphi
most energetic crystal phi
Float_t beamEnergy
energy of the beam
void reset()
set all the values to 0
Int_t tableIsMoving
if the table is moving
Int_t MEXTLindex
most energetic crystal index
Int_t S6ADC
ADC output of the S6 integrated signal.
Float_t yQualityHodo
hodoscope y quality (eta)
Float_t ySlopeHodo
hodoscope y slope (eta)
Float_t xHodo
hodoscope x coord (eta)