13 TDirectory *
dir = gDirectory ;
14 m_file =
new TFile (fileName.c_str (),
"RECREATE") ;
16 m_tree =
new TTree (treeName.c_str(),
"Analysis tree") ;
17 m_tree->SetAutoSave (10000000) ;
22 m_data->ExpandCreateFast (1) ;
36 <<
" with " <<
m_tree->GetEntries () <<
" entries" 37 <<
" on file: " <<
m_file->GetName () << std::endl ;
53 const double & xhodo,
const double & yhodo,
54 const double & xslope,
const double & yslope,
55 const double & xquality,
const double & yquality,
57 const int & ietaMax,
const int & iphiMax,
58 const double & beamEnergy,
59 const double ampl[49])
71 entry->
S6ADC = S6adc ;
87 entry->
xHodo = xhodo ;
88 entry->
yHodo = yhodo ;
128 crystal[
eta][
phi] = -999. ;
141 std::cout <<
"[TB06Tree][check]reading . . . \n" ;
142 std::cout <<
"[TB06Tree][check] entry->run: " << entry->
run <<
"\n" ;
143 std::cout <<
"[TB06Tree][check] entry->event: " << entry->
event <<
"\n" ;
151 std::cout <<
"[TB06Tree][check] entry->localMap[" <<
eta 152 <<
"][" <<
phi <<
"]: " 155 std::cout <<
"[TB06Tree][check] entry->xHodo: " << entry->
xHodo <<
"\n" ;
156 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)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
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)