/[PAMELA software]/PamelaLevel2/inc/PamLevel2.h
ViewVC logotype

Diff of /PamelaLevel2/inc/PamLevel2.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.47 by mocchiut, Wed Mar 12 16:37:26 2014 UTC revision 1.48 by pam-ts, Wed Oct 15 08:51:50 2014 UTC
# Line 32  Line 32 
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>
# Line 225  class PamTrack : public TObject { Line 226  class PamTrack : public TObject {
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;
# Line 239  class PamTrack : public TObject { Line 241  class PamTrack : public TObject {
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    
# Line 253  class PamTrack : public TObject { Line 256  class PamTrack : public TObject {
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  /**  /**
# Line 344  class PamLevel2 : public TObject { Line 348  class PamLevel2 : public TObject {
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      // --------------------------------------------      // --------------------------------------------
# Line 363  class PamLevel2 : public TObject { Line 396  class PamLevel2 : public TObject {
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      // --------------------------------------      // --------------------------------------
# Line 392  class PamLevel2 : public TObject { Line 435  class PamLevel2 : public TObject {
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      // -----------      // -----------
# Line 496  class PamLevel2 : public TObject { Line 545  class PamLevel2 : public TObject {
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;   };
# Line 534  class PamLevel2 : public TObject { Line 583  class PamLevel2 : public TObject {
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  //  =================================  //  =================================
# Line 566  class PamLevel2 : public TObject { Line 633  class PamLevel2 : public TObject {
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)
# Line 577  class PamLevel2 : public TObject { Line 647  class PamLevel2 : public TObject {
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    

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

  ViewVC Help
Powered by ViewVC 1.1.23