/[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.16 by pam-fi, Sat Mar 22 08:32:48 2008 UTC revision 1.21 by mocchiut, Thu Jul 3 10:37:58 2014 UTC
# Line 40  public: Line 40  public:
40      Bool_t       *clbad;    //[CLlength]      Bool_t       *clbad;    //[CLlength]
41            
42      TrkCluster();      TrkCluster();
43      ~TrkCluster(){Clear();};      ~TrkCluster(){Clear();}
44      TrkCluster(const TrkCluster&);      TrkCluster(const TrkCluster&);
45    
46      void Dump();      void Dump();
47      void Clear();      void Clear();
48      void Clear(Option_t *option){Clear();};      void Clear(Option_t *option){Clear();}
49      void Delete(){Clear();};      void Delete(){Clear();}
50                    
51      Float_t GetSignal(Int_t, Float_t, Bool_t);    ///< cluster signal      Float_t GetSignal(Int_t, Float_t, Bool_t);    ///< cluster signal
52      Float_t GetSignal(Float_t cut)                { return GetSignal( 0, cut, false); };      Float_t GetSignal(Float_t cut)                { return GetSignal( 0, cut, false); }
53      Float_t GetSignal(Int_t nstrip, Bool_t force) { return GetSignal( nstrip, -1000., force ); };      Float_t GetSignal(Int_t nstrip, Bool_t force) { return GetSignal( nstrip, -1000., force ); }
54      Float_t GetSignal(Int_t nstrip)               { return GetSignal( nstrip, -1000., false ); };      Float_t GetSignal(Int_t nstrip)               { return GetSignal( nstrip, -1000., false ); }
55      Float_t GetSignal()                           { return GetSignal( 0,(Float_t)INC_CUT, false); };          Float_t GetSignal()                           { return GetSignal( 0,(Float_t)INC_CUT, false); }    
56            
57      Float_t GetSignalToNoise(Int_t,Float_t);  ///< cluster signal/noise      Float_t GetSignalToNoise(Int_t,Float_t);  ///< cluster signal/noise
58      Float_t GetSignalToNoise(Float_t cut)  { return GetSignalToNoise( 0, cut); };      Float_t GetSignalToNoise(Float_t cut)  { return GetSignalToNoise( 0, cut); }
59      Float_t GetSignalToNoise(Int_t nstrip) { return GetSignalToNoise( nstrip,-1000. ); };      Float_t GetSignalToNoise(Int_t nstrip) { return GetSignalToNoise( nstrip,-1000. ); }
60      Float_t GetSignalToNoise()             { return GetSignalToNoise( 0, (Float_t)INC_CUT); };      Float_t GetSignalToNoise()             { return GetSignalToNoise( 0, (Float_t)INC_CUT); }
61    
62    
63      Int_t   GetMultiplicity(Float_t);         ///< cluster multiplicity      Int_t   GetMultiplicity(Float_t);         ///< cluster multiplicity
64      Int_t   GetMultiplicity()  { return GetMultiplicity(INC_CUT);  };      Int_t   GetMultiplicity()  { return GetMultiplicity(INC_CUT);  }
65            
66      void GetLevel1Struct(cTrkLevel1* l1);      void GetLevel1Struct(cTrkLevel1* l1);
67      void GetLevel1Struct(){GetLevel1Struct(&level1event_);};      void GetLevel1Struct(){GetLevel1Struct(&level1event_);}
68            
69      Float_t GetCOG(Int_t);      Float_t GetCOG(Int_t);
70      Float_t GetCOG(Float_t angle);      Float_t GetCOG(Float_t angle);
71      Float_t GetCOG(){ return GetCOG(0); };      Float_t GetCOG(){ return GetCOG(0); }
72      Float_t GetETA(Int_t,float,bool);      Float_t GetETA(Int_t,float,bool);
73  //    Float_t GetETA(float angle){ return GetETA(0,angle); };  //    Float_t GetETA(float angle){ return GetETA(0,angle); }
74        Float_t GetDigSat();
75      Float_t GetPositionPU(float);      Float_t GetPositionPU(float);
76      Int_t   GetPFAstrips(float angle);      Int_t   GetPFAstrips(float angle);
77    
# Line 78  public: Line 79  public:
79      Bool_t IsBad(Int_t);                ///< bad-cluster flag      Bool_t IsBad(Int_t);                ///< bad-cluster flag
80      Bool_t IsSaturated(Int_t);          ///< saturated-cluster flag      Bool_t IsSaturated(Int_t);          ///< saturated-cluster flag
81    
82      Int_t GetPlane() { return (Int_t)((view+1)/2);};         ///< plane number (1-6)      Int_t GetPlane() { return (Int_t)((view+1)/2);}         ///< plane number (1-6)
83      Int_t GetLadder(){ return 1+(Int_t)((maxs-1)/1024);  };  ///< ladder number (1-3)      Int_t GetLadder(){ return 1+(Int_t)((maxs-1)/1024);  }  ///< ladder number (1-3)
84      Bool_t IsY(){ return (Bool_t)view%2; };      Bool_t IsY(){ return (Bool_t)(view%2); }
85      Bool_t IsX(){ return !((Bool_t)view%2); };      Bool_t IsX(){ return !((Bool_t)(view%2)); }
86                    
87      TrkCluster* GetTrkCluster(){ return this; };      TrkCluster* GetTrkCluster(){ return this; }
88    
89      friend class TrkLevel1;      friend class TrkLevel1;
90    
# Line 113  class TrkLevel1 : public TObject { Line 114  class TrkLevel1 : public TObject {
114      TClonesArray *Cluster;        ///< clusters      TClonesArray *Cluster;        ///< clusters
115                    
116      TrkLevel1();      TrkLevel1();
117      ~TrkLevel1(){Delete();};      ~TrkLevel1(){Delete();}
118            // EM crash when DSP status: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
119      int nclstr() {return Cluster->GetEntries();}    ///< number of stored clusters      int nclstr() {if (Cluster) return Cluster->GetEntries(); return 0;}    ///< number of stored clusters
120            
121      void Dump();      void Dump();
122  //    void SetFromLevel1Struct(cTrkLevel1 *, Bool_t);  //    void SetFromLevel1Struct(cTrkLevel1 *, Bool_t);
123  //      void GetLevel1Struct(cTrkLevel1 *) const;  //      void GetLevel1Struct(cTrkLevel1 *) const;
124      void GetLevel1Struct(cTrkLevel1 *l1);      void GetLevel1Struct(cTrkLevel1 *l1);
125      void SetFromLevel1Struct(cTrkLevel1 *l1, Bool_t full);          void SetFromLevel1Struct(cTrkLevel1 *l1, Bool_t full);    
126      void GetLevel1Struct(){GetLevel1Struct(&level1event_);};      void GetLevel1Struct(){GetLevel1Struct(&level1event_);}
127      void SetFromLevel1Struct(Bool_t full){SetFromLevel1Struct(&level1event_,full);};      void SetFromLevel1Struct(Bool_t full){SetFromLevel1Struct(&level1event_,full);}
128      void SetFromLevel1Struct(){SetFromLevel1Struct(true);};      void SetFromLevel1Struct(){SetFromLevel1Struct(true);}
129    
130      void Clear();      void Clear();
131      void Delete();      void Delete();
132      void Set();      void Set();
133        void Set(TrkLevel1 *trkl1, float mipCut=5., float fcut=0.2);
134            
135      TrkCluster*   GetCluster(int);      TrkCluster*   GetCluster(int);
136            
137      TrkLevel1*    GetTrkLevel1(){return this;}      TrkLevel1*    GetTrkLevel1(){return this;}
138      TClonesArray* GetClusters(){return Cluster;};   ///< returns pointer to the cluster array      TClonesArray* GetClusters(){return Cluster;}   ///< returns pointer to the cluster array
139            
140  /*     int LoadPfaParam(TString); */  /*     int LoadPfaParam(TString); */
141  /*     int LoadFieldParam(TString); */  /*     int LoadFieldParam(TString); */
# Line 141  class TrkLevel1 : public TObject { Line 143  class TrkLevel1 : public TObject {
143  /*     int LoadAlignmentParam(TString); */  /*     int LoadAlignmentParam(TString); */
144  /*     int LoadMipParam(TString); */  /*     int LoadMipParam(TString); */
145  /*     int LoadVKMaskParam(TString); */  /*     int LoadVKMaskParam(TString); */
146  /*     int LoadPfaParam(){return LoadPfaParam("");}; */  /*     int LoadPfaParam(){return LoadPfaParam("");} */
147  /*     int LoadFieldParam(){return LoadFieldParam("");}; */  /*     int LoadFieldParam(){return LoadFieldParam("");} */
148  /*     int LoadChargeParam(){return LoadChargeParam("");}; */  /*     int LoadChargeParam(){return LoadChargeParam("");} */
149  /*     int LoadAlignmentParam(){return LoadAlignmentParam("");}; */  /*     int LoadAlignmentParam(){return LoadAlignmentParam("");} */
150  /*     int LoadMipParam(){return LoadMipParam("");}; */  /*     int LoadMipParam(){return LoadMipParam("");} */
151  /*     int LoadVKMaskParam(){return LoadVKMaskParam("");}; */  /*     int LoadVKMaskParam(){return LoadVKMaskParam("");} */
152  /*     int LoadParams(); */  /*     int LoadParams(); */
153    
154  //    int ProcessEvent(int);  //    int ProcessEvent(int);
155  //    int ProcessEvent(){return ProcessEvent();};  //    int ProcessEvent(){return ProcessEvent();}
156      int ProcessEvent();      int ProcessEvent();
157    
158  // spostati in TrkParams  // spostati in TrkParams
159  /*     int GetPfaNbinsAngle(); */  /*     int GetPfaNbinsAngle(); */
160  /*     int GetPfaNbinsETA(); */  /*     int GetPfaNbinsETA(); */
161  /*     int GetPfaNbinsCharge(){return 0;}; */  /*     int GetPfaNbinsCharge(){return 0;} */
162  /*     float* GetPfaCoord(TString pfa, int nview, int nladder, int nang); */  /*     float* GetPfaCoord(TString pfa, int nview, int nladder, int nang); */
163  /*     float* GetPfaAbs(TString pfa, int nang); */  /*     float* GetPfaAbs(TString pfa, int nang); */
164    
# Line 164  class TrkLevel1 : public TObject { Line 166  class TrkLevel1 : public TObject {
166      Bool_t StatusCheck(int view, int flagmask);      Bool_t StatusCheck(int view, int flagmask);
167    
168            
169      void SetPFA(int pfaid){ sw_.pfaid = pfaid; };      void SetPFA(int pfaid){ sw_.pfaid = pfaid; }
170      int  GetPFA(){ return sw_.pfaid; };      int  GetPFA(){ return sw_.pfaid; }
171            
172    
173      ClassDef(TrkLevel1,2);      ClassDef(TrkLevel1,3);
174    
175  };  };
176    

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.23