4 #include <TClonesArray.h>
7 #include "EEsectorDst.h"
8 #include "EEeventDst.h"
16 Sec=
new TClonesArray(
"EEsectorDst",1000);
23 EEeventDst::~EEeventDst()
31 int EEeventDst::getNSectors(){
return Sec->GetEntries();}
36 void EEeventDst::clear(){
48 void EEeventDst::Clear(
const char*){ clear();}
53 void EEeventDst::print(
int k){
54 LOG_INFO<<Form(
"Event ID=%d, type=%d token=%d nSect=%d time stamp= %d\n",
ID,type,token,Sec->GetEntries(),timeStamp)<<endm;
56 for(is=0;is<Sec->GetEntriesFast();is++) {
73 TClonesArray &SEC1 = *Sec;
74 int nSec=SEC1.GetEntriesFast();
86 EEsectorDst* EEeventDst::getSec(
int secID,
int create){
89 for(is=0;is<Sec->GetEntries();is++) {
91 if(sec->getID()==secID)
return sec;
94 if(create==0)
return 0;
95 return addSectorDst(secID);
102 void EEeventDst:: sumRawMC(
EEeventDst* eveOut,
float minE) {
106 eveOut->type=kTrigMC;
109 for(is=0;is<Sec->GetEntries();is++) {
114 int secID=secIN->getID();
117 secOut= eveOut->addSectorDst(secID);
120 secIN->sumRawMC(secOut,minE);