/[PAMELA software]/DarthVader/TrackerLevel2/inc/TrkLevel1.h
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/inc/TrkLevel1.h

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

revision 1.1 by pam-fi, Tue Sep 5 12:52:20 2006 UTC revision 1.3 by pam-fi, Wed Oct 11 06:53:01 2006 UTC
# Line 11  Line 11 
11    
12  #include <TrkStruct.h>  #include <TrkStruct.h>
13    
14    #define INC_CUT 4.
15  /**  /**
16   * \brief Class to describe tracker clusters.   * \brief Class to describe tracker clusters.
17   *   *
18   * A cluster is defined as a group of adjacent strips whose signals exceed noise by xxxx sigma   * A cluster is defined as a group of adjacent strips whose signals exceed noise by INC_CUT sigma, and at least one strip has signal/noise > SEED_CUT. Tipical values are SEED_CUT = 7 and INC_CUT = 4.
19     *
20   */   */
21  // ==================================================================  // ==================================================================
22  class TrkCluster : public TObject {  class TrkCluster : public TObject {
# Line 24  private: Line 26  private:
26    
27  public:  public:
28                    
29          int view;          int view; ///< view
30          int ladder;          int maxs; ///< strip number (1-3072) of cluster center
31          int maxs;          int indmax;
         int mult;  
         float sgnl;  
           
         int whichtrk;  
32    
33          Int_t         CLlength;          Int_t         CLlength; ///< number of stored strip info (signal+sigma+adc+bad)
34          Float_t      *clsignal; //[CLlength]          Float_t      *clsignal; //[CLlength]
35          Float_t      *clsigma;  //[CLlength]          Float_t      *clsigma;  //[CLlength]
36          Int_t        *cladc;    //[CLlength]          Int_t        *cladc;    //[CLlength]
37          Bool_t       *clbad;    //[CLlength]          Bool_t       *clbad;    //[CLlength]
# Line 44  public: Line 42  public:
42    
43      void Dump();      void Dump();
44                    
45      TrkCluster* GetTrkCluster(){return this;};          Int_t   GetLadder()        { return 1+(Int_t)((maxs-1)/1024);  };  ///< ladder number
46            
47            Float_t GetSignal(Float_t);             ///< cluster signal
48            Float_t GetSignal(Int_t);               ///< cluster signal
49            Float_t GetSignalToNoise(Float_t);  ///< cluster signal/noise
50            Float_t GetSignalToNoise(Int_t);        ///< cluster signal/noise
51            Int_t   GetMultiplicity(Float_t);         ///< cluster multiplicity    
52            Float_t GetSignal()        { return GetSignal((Float_t)INC_CUT);        };
53            Float_t GetSignalToNoise() { return GetSignalToNoise((Float_t)INC_CUT); };
54            Int_t   GetMultiplicity()  { return GetMultiplicity(INC_CUT);  };
55            
56            cTrkLevel1* GetLevel1Struct();
57            
58            Float_t GetCOG(Int_t);
59            Float_t GetCOG(){ return GetCOG(0); };
60            Float_t GetETA(Int_t,float);
61            Float_t GetETA(float angle){ return GetETA(0,angle); };
62            
63            Bool_t IsBad(Int_t);                ///< bad-cluster flag
64            
65        TrkCluster* GetTrkCluster(){ return this; };
66    
67      friend class TrkLevel1;      friend class TrkLevel1;
68    
69      ClassDef(TrkCluster,1);      ClassDef(TrkCluster,2);
70    
71  };  };
72    
73  /**  /**
74   * \brief Class to describe tracker LEVEL1 data.   * \brief Class to describe tracker LEVEL1 data.
75   *   *
76     * A Level1 tracker event is defined as a collection of clusters ( TrkCluster objects ).
77     * The result of common-noise computation for each viking is also stored ( cnev[24][12] ).
78     * A general flag summarize the event status (missing sections, crc failures, decoding errors ans so on...).
79   */   */
80  class TrkLevel1 : public TObject {  class TrkLevel1 : public TObject {
81    
# Line 62  class TrkLevel1 : public TObject { Line 83  class TrkLevel1 : public TObject {
83    
84   public:   public:
85    
86          Int_t         good1;          Int_t         good[12];       ///< event status
87            Float_t       cnev[24][12];   ///< CN
88            Int_t         cnnev[24][12];  ///< number of strips for CN computation
89    //      Int_t         fshower[12];
90    //      Int_t         good1;
91  //      Int_t         crc[12];  //      Int_t         crc[12];
92                    
93      TClonesArray *Cluster;        ///< clusters      TClonesArray *Cluster;        ///< clusters
94                                    
         Float_t       cnev[24][12];  
         Int_t         cnnev[24][12];  
         Int_t         fshower[12];  
95                    
96      TrkLevel1();      TrkLevel1();
97            ~TrkLevel1(){Delete();};
98    
99          int nclstr() {return Cluster->GetEntries();}    ///< number of stored clusters          int nclstr() {return Cluster->GetEntries();}    ///< number of stored clusters
100    
101      void Dump();      void Dump();
102      void SetFromLevel1Struct(cTrkLevel1 *);      void SetFromLevel1Struct(cTrkLevel1 *);
103          void GetLevel1Struct(cTrkLevel1 *) const;  //      void GetLevel1Struct(cTrkLevel1 *) const;
104      void Clear();          cTrkLevel1* GetLevel1Struct();
105            void Clear();
106            void Delete();
107    
108      TrkCluster*   GetCluster(int);      TrkCluster*   GetCluster(int);
109            
110      TrkLevel1*    GetTrkLevel1(){return this;}      TrkLevel1*    GetTrkLevel1(){return this;}
111      TClonesArray* GetClusters(){return Cluster;};///< returns pointer to the cluster array      TClonesArray* GetClusters(){return Cluster;};   ///< returns pointer to the cluster array
112            
113      ClassDef(TrkLevel1,1);          int           LoadPfaParam(TString);
114            
115            ClassDef(TrkLevel1,2);
116    
117  };  };
118    
 /**  
  * \brief Classes to relate LEVEL1 data to LEVEL2.  
  *  
  */  
 // class TrkTrackRef : public TObject {  
 //      public:  
 //              TRef clx[6];  
 //              TRef cly[6];  
 //                
 //              TrkTrackRef();  
 //              TrkTrackRef(const TrkTrackRef&);  
 //              void Clear();  
 //                
 //              ClassDef(TrkTrackRef,1);  
 // };  
 // class TrkLevel2Ref : public TObject {  
 //  
 //      public:  
 //  
 //              TClonesArray *Track;        ///< fitted tracks  
 //              TClonesArray *SingletX;     ///< x singlets  
 //              TClonesArray *SingletY;     ///< y singlets  
 //                
 //              TrkLevel2Ref();  
 //              void TrkLevel2Ref::SetFromLevel2Struct(cTrkLevel2 *l2);  
 //              void Clear();  
 //                
 //              ClassDef(TrkLevel2Ref,1);  
 // };  
   
119    
120  #endif  #endif

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23