466{
469
475 0 ,
477 "Feedback");
478
480
481 Log(2,
"EdbFeedback::LoadFBintoDB",
"%d tracks to be added to RecID %d",
eNtr,
eRecID);
482
483 for(
int iv=0; iv<
eNvtxLim; iv++ ) {
485 if(v) {
486 const char *vprim = v->
isprim?
"'Y'" :
"'N'";
487 const char *vcharm = v->
ischarm?
"'Y'" :
"'N'";
488 const char *vtau = v->
istau?
"'Y'" :
"'N'";
489 const char *vout = v->
ofb?
"'Y'" :
"'N'";
491 }
492 }
493
494 for(
int it=0; it<
eNtr; it++ ) {
497 Log(1,
"EdbFeedback::LoadFBintoDB",
"ERROR: track %d is missing!", it);
499 return 0;
500 }
501
502 const char *tman =
t->isman?
"'Y'" :
"'N'";
503 const char *tparticle =
PartType(
t->type);
504 const char *tscanback =
t->scanback?
"'Y'" :
"'N'";
505 const char *tdarkness =
Darkness(
t->darkness);
506 const char *tofb =
Ofb(
t->ofb);
507 const char *tdecaysearch =
DecayFlag(
t->flag);
508
510 t->x,
t->y,
t->z,
t->sx,
t->sy,
511 tman, tparticle, tscanback, tdarkness,
512 t->upip,
t->downip,
t->p,
t->pmin,
t->pmax,
513 tofb,
515 t->rslopet ,
t->rslopel,
t->rmsslopet ,
t->rmsslopel,
516 t->kinkplatedown ,
t->kinkplateup,
517 tdecaysearch,
519 );
520
521 for(
int is=0; is<
t->nseg; is++ ) {
524 Log(1,
"EdbFeedback::LoadFBintoDB",
"ERROR: segment %d of track %d is missing!", is, it);
526 return 0;
527 }
530 s->id_plate,
t->id_track,
532 s->x,
s->y,
s->z,
s->sx,
s->sy,
535 );
536 }
537 }
538
540
541 return 1;
542}
bool Log(int level, const char *location, const char *fmt,...)
Definition: EdbLog.cxx:75
const char * PartType(int parttype)
Definition: TOracleServerE2WFB.cxx:582
const char * Ofb(int ofb)
Definition: TOracleServerE2WFB.cxx:573
fbtrack ** eT
array of vertices
Definition: TOracleServerE2WFB.h:200
const char * SegmentType(int type)
Definition: TOracleServerE2WFB.cxx:553
const char * DecayFlag(int flag)
Definition: TOracleServerE2WFB.cxx:562
ULong64_t eRecID
Definition: TOracleServerE2WFB.h:192
const char * SegmentRecMode(int mode)
Definition: TOracleServerE2WFB.cxx:545
const char * Darkness(int drk)
Definition: TOracleServerE2WFB.cxx:593
Int_t AddFeedbackTrack(ULong64_t id_eventbrick, ULong64_t id_reconstruction, Int_t id_track, Int_t id_upvtx, Int_t id_downvtx, Float_t x, Float_t y, Float_t z, Float_t sx, Float_t sy, const char *manual, const char *particle, const char *scanback, const char *darkness, Float_t upip, Float_t downip, Float_t p, Float_t pmin, Float_t pmax, const char *outofbrick, Int_t lastplate, Float_t rslopet, Float_t rslopel, Float_t rmsslopet, Float_t rmsslopel, Int_t kinkplatedown, Int_t kinkplateup, const char *decaysearch, ULong64_t event)
Definition: TOracleServerE2WFB.cxx:302
ULong64_t AddFeedbackReconstruction(ULong64_t id_eventbrick, ULong64_t id_processoperation)
Definition: TOracleServerE2WFB.cxx:245
Int_t AddFeedbackVertex(ULong64_t id_eventbrick, ULong64_t id_reconstruction, Int_t id_vertex, Float_t posx, Float_t posy, Float_t posz, const char *isprimary, const char *ischarm, const char *istau, const char *outofbrick)
Definition: TOracleServerE2WFB.cxx:275
Int_t AddFeedbackSegment(ULong64_t id_eventbrick, ULong64_t id_reconstruction, Int_t id_plate, Int_t id_track, const char *tracktype, Float_t posx, Float_t posy, Float_t posz, Float_t slopex, Float_t slopey, Int_t grains, const char *trackmode)
Definition: TOracleServerE2WFB.cxx:364
const char * Timestamp()
Definition: TOracleServerE2WFB.cxx:27
Int_t CloseFeedbackDataset(ULong64_t id_operation, const char *endtime)
Definition: TOracleServerE2WFB.cxx:398
ULong64_t AddProcessOperationBrick(ULong64_t id_machine, ULong64_t id_programsettings, ULong64_t id_requester, ULong64_t id_eventbrick, ULong64_t id_parent_operation, const char *starttime, const char *notes)
Definition: TOracleServerE2WFB.cxx:168
TTree * t
Definition: check_shower.C:4
s
Definition: check_shower.C:55
Definition: TOracleServerE2WFB.h:122
Definition: TOracleServerE2WFB.h:134
Definition: TOracleServerE2WFB.h:165
Float_t x
Definition: TOracleServerE2WFB.h:168
Int_t isprim
Definition: TOracleServerE2WFB.h:171
Int_t ofb
Definition: TOracleServerE2WFB.h:176
Float_t z
Definition: TOracleServerE2WFB.h:170
Int_t ischarm
Definition: TOracleServerE2WFB.h:172
Int_t idvtx
Definition: TOracleServerE2WFB.h:167
Int_t istau
Definition: TOracleServerE2WFB.h:173
Float_t y
Definition: TOracleServerE2WFB.h:169