32 |
// error "Cannot find InclinationInfo.h" update your DV installation |
// error "Cannot find InclinationInfo.h" update your DV installation |
33 |
#include <RunInfo.h> |
#include <RunInfo.h> |
34 |
#include <GLTables.h> |
#include <GLTables.h> |
35 |
|
#include <ExtTrack.h> |
36 |
|
|
37 |
|
|
38 |
#include <TTree.h> |
#include <TTree.h> |
226 |
|
|
227 |
private: |
private: |
228 |
|
|
229 |
|
ExtTrack* trk_ext_track; |
230 |
TrkTrack* trk_track; |
TrkTrack* trk_track; |
231 |
CaloTrkVar* calo_track; |
CaloTrkVar* calo_track; |
232 |
ToFTrkVar* tof_track; |
ToFTrkVar* tof_track; |
241 |
|
|
242 |
PamTrack(); |
PamTrack(); |
243 |
PamTrack(TrkTrack* , CaloTrkVar* , ToFTrkVar*, OrbitalInfoTrkVar* ); |
PamTrack(TrkTrack* , CaloTrkVar* , ToFTrkVar*, OrbitalInfoTrkVar* ); |
244 |
|
PamTrack(ExtTrack* , CaloTrkVar* , ToFTrkVar*, OrbitalInfoTrkVar* ); |
245 |
PamTrack(const PamTrack&); |
PamTrack(const PamTrack&); |
246 |
~PamTrack(){ Delete(); }; |
~PamTrack(){ Delete(); }; |
247 |
|
|
256 |
void SetPScore(Int_t p){pscore=p;}; |
void SetPScore(Int_t p){pscore=p;}; |
257 |
void SetIScore(Int_t i){iscore=i;}; |
void SetIScore(Int_t i){iscore=i;}; |
258 |
|
|
259 |
|
ExtTrack* GetExtTrack(){return trk_ext_track;}; |
260 |
TrkTrack* GetTrkTrack(){return trk_track;}; |
TrkTrack* GetTrkTrack(){return trk_track;}; |
261 |
CaloTrkVar* GetCaloTrack(){return calo_track;}; |
CaloTrkVar* GetCaloTrack(){return calo_track;}; |
262 |
ToFTrkVar* GetToFTrack(){return tof_track;}; |
ToFTrkVar* GetToFTrack(){return tof_track;}; |
263 |
OrbitalInfoTrkVar* GetOrbitalInfoTrack(){return orb_track;}; |
OrbitalInfoTrkVar* GetOrbitalInfoTrack(){return orb_track;}; |
264 |
|
|
265 |
ClassDef(PamTrack,2); |
ClassDef(PamTrack,3); |
266 |
}; |
}; |
267 |
|
|
268 |
/** |
/** |
348 |
TrkHough* trkh_obj; |
TrkHough* trkh_obj; |
349 |
CaloLevel1* calo1_obj; |
CaloLevel1* calo1_obj; |
350 |
CaloLevel2* calo2_obj; |
CaloLevel2* calo2_obj; |
351 |
ToFLevel2* tof_obj; |
ToFLevel2* tof2_obj; |
352 |
TrigLevel2* trig_obj; |
TrigLevel2* trig_obj; |
353 |
S4Level2* s4_obj; |
S4Level2* s4_obj; |
354 |
NDLevel2* nd_obj; |
NDLevel2* nd_obj; |
355 |
AcLevel2* ac_obj; |
AcLevel2* ac_obj; |
356 |
OrbitalInfo* orb_obj; |
OrbitalInfo* orb2_obj; |
357 |
GL_RUN* run_obj; |
GL_RUN* run_obj; |
358 |
SoftInfo* soft_obj; // Emiliano |
SoftInfo* soft_obj; // Emiliano |
359 |
|
|
360 |
|
|
361 |
|
|
362 |
|
Int_t extAlgFlag; |
363 |
|
|
364 |
|
TClonesArray* trk_ext_obj; |
365 |
|
TClonesArray* trk_ext_nuc_obj; |
366 |
|
TClonesArray* trk_nuc_obj; |
367 |
|
|
368 |
|
|
369 |
|
TClonesArray* calo_ext_obj; |
370 |
|
TClonesArray* calo_ext_nuc_obj; |
371 |
|
TClonesArray* calo_nuc_obj; |
372 |
|
|
373 |
|
TClonesArray* tof_ext_obj; |
374 |
|
TClonesArray* tof_ext_nuc_obj; |
375 |
|
TClonesArray* tof_nuc_obj; |
376 |
|
|
377 |
|
TClonesArray* orb_ext_obj; |
378 |
|
TClonesArray* orb_ext_nuc_obj; |
379 |
|
TClonesArray* orb_nuc_obj; |
380 |
|
|
381 |
|
|
382 |
|
TrkLevel2* trk2_nuc_obj; |
383 |
|
CaloLevel2* calo2_nuc_obj; |
384 |
|
ToFLevel2* tof2_nuc_obj; |
385 |
|
OrbitalInfo* orb2_nuc_obj; |
386 |
|
|
387 |
|
|
388 |
|
|
389 |
// -------------------------------------------- |
// -------------------------------------------- |
390 |
// variables to handle GP |
// variables to handle GP |
391 |
// -------------------------------------------- |
// -------------------------------------------- |
396 |
// ----------------------------------- |
// ----------------------------------- |
397 |
TClonesArray *tsorted; |
TClonesArray *tsorted; |
398 |
TClonesArray *timage; |
TClonesArray *timage; |
399 |
|
TClonesArray *text; //array of pamtrack objects built from extended algorythm |
400 |
|
TClonesArray *tsorted_nuc; |
401 |
|
TClonesArray *timage_nuc; |
402 |
|
TClonesArray *text_nuc; //array of pamtrack objects built from extended algorythm |
403 |
|
|
404 |
PamTrack *track; //store the last required |
PamTrack *track; //store the last required |
405 |
TString howtosort; |
TString howtosort; |
406 |
Float_t sortthr; |
Float_t sortthr; |
407 |
|
|
408 |
Bool_t issorted; // true if the current event has already been sorted with the current sort criteria |
Bool_t issorted; // true if the current event has already been sorted with the current sort criteria |
409 |
Long64_t lastsorted; // the last event whose tracks has been sorted |
Long64_t lastsorted; // the last event whose tracks has been sorted |
410 |
|
|
411 |
|
|
412 |
|
Bool_t issorted_new; // true if the current event has already been sorted with the current sort criteria |
413 |
|
Long64_t lastsorted_new; // the last event whose tracks has been sorted |
414 |
|
|
415 |
// -------------------------------------- |
// -------------------------------------- |
416 |
// flags to load level0-1-2 trees/braches |
// flags to load level0-1-2 trees/braches |
417 |
// -------------------------------------- |
// -------------------------------------- |
435 |
|
|
436 |
Bool_t GP; //GP simulation tree |
Bool_t GP; //GP simulation tree |
437 |
|
|
438 |
|
|
439 |
|
Bool_t EXT;//get tracks from extended tracking algorythm |
440 |
|
Bool_t NUC;//get tracks from nuclei algorythm |
441 |
|
|
442 |
|
char* trkAlg; |
443 |
|
|
444 |
// ----------- |
// ----------- |
445 |
// other flags |
// other flags |
446 |
// ----------- |
// ----------- |
545 |
TrkHough *GetTrkHough() { return trkh_obj; }; |
TrkHough *GetTrkHough() { return trkh_obj; }; |
546 |
CaloLevel1 *GetCaloLevel1() { return calo1_obj;}; |
CaloLevel1 *GetCaloLevel1() { return calo1_obj;}; |
547 |
CaloLevel2 *GetCaloLevel2() { return calo2_obj;}; |
CaloLevel2 *GetCaloLevel2() { return calo2_obj;}; |
548 |
ToFLevel2 *GetToFLevel2() { return tof_obj; }; |
ToFLevel2 *GetToFLevel2() { return tof2_obj; }; |
549 |
TrigLevel2 *GetTrigLevel2() { return trig_obj; }; |
TrigLevel2 *GetTrigLevel2() { return trig_obj; }; |
550 |
S4Level2 *GetS4Level2() { return s4_obj; }; |
S4Level2 *GetS4Level2() { return s4_obj; }; |
551 |
NDLevel2 *GetNDLevel2() { return nd_obj; }; |
NDLevel2 *GetNDLevel2() { return nd_obj; }; |
552 |
AcLevel2 *GetAcLevel2() { return ac_obj; }; |
AcLevel2 *GetAcLevel2() { return ac_obj; }; |
553 |
OrbitalInfo *GetOrbitalInfo(){ return orb_obj; }; |
OrbitalInfo *GetOrbitalInfo(){ return orb2_obj; }; |
554 |
GL_RUN *GetRunInfo() { return run_obj; }; |
GL_RUN *GetRunInfo() { return run_obj; }; |
555 |
SoftInfo *GetSoftInfo() { return soft_obj; }; // Emiliano |
SoftInfo *GetSoftInfo() { return soft_obj; }; // Emiliano |
556 |
GPamela *GetGPamela() { return gp_obj; }; |
GPamela *GetGPamela() { return gp_obj; }; |
583 |
void SetNucleiSortingThreshold(Float_t nucleithr){ sortthr = nucleithr; return;}; |
void SetNucleiSortingThreshold(Float_t nucleithr){ sortthr = nucleithr; return;}; |
584 |
Float_t GetNucleiSortingThreshold(){ return sortthr;}; |
Float_t GetNucleiSortingThreshold(){ return sortthr;}; |
585 |
|
|
586 |
|
|
587 |
|
|
588 |
|
|
589 |
|
// ================================= |
590 |
|
// methods to handle new tracking algorythms |
591 |
|
// ================================= |
592 |
|
Int_t GetTrackingAlgorythmFlag(){return extAlgFlag;}; |
593 |
|
void SetTrakingAlgorythm(char *); |
594 |
|
char* GetTrakingAlgorythm(); |
595 |
|
|
596 |
|
Int_t GetNTracks(char*); |
597 |
|
// Int_t GetNTracks(){ return GetNTracks(trkAlg); }; |
598 |
|
PamTrack* GetTrack(int,char*); |
599 |
|
PamTrack* GetTrackImage(int, char*); |
600 |
|
void SortTracksNew(); //assign value to variable sorted_tracks |
601 |
|
// PamTrack* GetTrackImage(int,char*); |
602 |
|
|
603 |
|
|
604 |
// ================================= |
// ================================= |
605 |
// other methods |
// other methods |
606 |
// ================================= |
// ================================= |
633 |
|
|
634 |
Bool_t IsRUN(){return RUN;}; |
Bool_t IsRUN(){return RUN;}; |
635 |
|
|
636 |
|
Bool_t IsEXT(){return EXT;}; |
637 |
|
Bool_t IsNUC(){return NUC;}; |
638 |
|
|
639 |
Bool_t IsGood(Bool_t strict=true); |
Bool_t IsGood(Bool_t strict=true); |
640 |
|
|
641 |
Int_t IsSELLI(){return SELLI;}; //trees of selected events (there is a selection list) |
Int_t IsSELLI(){return SELLI;}; //trees of selected events (there is a selection list) |
647 |
|
|
648 |
void SetDebug(Bool_t set){ DBG=set; TrkParams::SetVerboseMode(); }; |
void SetDebug(Bool_t set){ DBG=set; TrkParams::SetVerboseMode(); }; |
649 |
|
|
650 |
|
|
651 |
ClassDef(PamLevel2,2); |
ClassDef(PamLevel2,2); |
652 |
}; |
}; |
653 |
|
|