]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- New parameters to fill ESD MUON clusters with additional informations (including...
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Dec 2007 11:36:16 +0000 (11:36 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Dec 2007 11:36:16 +0000 (11:36 +0000)
- You can use the method  SaveFullClusterInESD(kTRUE, xx ) to save these info for xx% of events (default is 10%)
(Philippe P.)

MUON/AliMUONRecoParam.cxx
MUON/AliMUONRecoParam.h

index 25b28d3912c58266360edaf580a055d30cf71f9a..a567ad90c59511085b48f9e85c355921395b8ad0 100644 (file)
@@ -48,13 +48,15 @@ AliMUONRecoParam::AliMUONRecoParam()
   fSigmaCutForImprovement(0.),
   fSigmaCutForTrigger(0.),
   fMaxNormChi2MatchTrigger(0.),
+  fPercentOfFullClusterInESD(10.),
   fCombinedClusterTrackReco(kFALSE),
   fTrackAllTracks(kFALSE),
   fRecoverTracks(kFALSE),
   fMakeTrackCandidatesFast(kFALSE),
   fComplementTracks(kFALSE),
   fImproveTracks(kFALSE),
-  fUseSmoother(kFALSE)
+  fUseSmoother(kFALSE),
+  fSaveFullClusterInESD(kTRUE)
 {
   /// Constructor
   SetNameTitle("MUON","MUON");
@@ -154,6 +156,9 @@ void AliMUONRecoParam::Print(Option_t *option) const
   if (fCombinedClusterTrackReco) cout<<"Combined cluster/track reconstruction: ON"<<endl;
   else cout<<"Combined cluster/track reconstruction: OFF"<<endl;
   
+  if (fSaveFullClusterInESD) cout<<Form("Save all cluster info in ESD for %5.2f %% of events",fPercentOfFullClusterInESD)<<endl;
+  else cout<<"Save partial cluster info in ESD"<<endl;
+  
   cout<<Form("Bending momentum range = [%5.2f,%5.2f]",fMinBendingMomentum,fMaxBendingMomentum)<<endl;
   
   if (strstr(fTrackingMode,"ORIGINAL"))
index 0c618346ba0f6d20366bb646db46ea02cd1520ff..f38496171d1ed979da17fc2682ced2d17f2b60b4 100644 (file)
@@ -36,6 +36,14 @@ class AliMUONRecoParam : public AliDetectorRecoParam
   /// return kTRUE/kFALSE if the combined cluster/track reconstruction is on/off
   Bool_t    CombineClusterTrackReco() const {return fCombinedClusterTrackReco;}
   
+  /// save all cluster info (including pads) in ESD, for the given percentage of events
+  void      SaveFullClusterInESD(Bool_t flag, Double_t percentOfEvent = 100.) {fSaveFullClusterInESD = flag;
+                                 fPercentOfFullClusterInESD = (fSaveFullClusterInESD) ? percentOfEvent : 0.;}
+  /// return kTRUE/kFALSE depending on whether we save all cluster info in ESD or not
+  Bool_t    SaveFullClusterInESD() const {return fSaveFullClusterInESD;}
+  /// return the percentage of events for which all cluster info are stored in ESD
+  Double_t  GetPercentOfFullClusterInESD() const {return fPercentOfFullClusterInESD;}
+  
   /// set the minimum value (GeV/c) of momentum in bending plane
   void     SetMinBendingMomentum(Double_t val) {fMinBendingMomentum = val;}
   /// return the minimum value (GeV/c) of momentum in bending plane
@@ -141,6 +149,8 @@ class AliMUONRecoParam : public AliDetectorRecoParam
   
   Double32_t fMaxNormChi2MatchTrigger; ///< maximum normalized chi2 of tracking/trigger track matching
   
+  Double32_t fPercentOfFullClusterInESD; ///< percentage of events for which all cluster info are stored in ESD
+  
   Bool_t     fCombinedClusterTrackReco; ///< switch on/off the combined cluster/track reconstruction
   
   Bool_t     fTrackAllTracks; ///< kTRUE to track all the possible candidates; kFALSE to track only the best ones
@@ -155,6 +165,7 @@ class AliMUONRecoParam : public AliDetectorRecoParam
   
   Bool_t     fUseSmoother; ///< kTRUE to use the smoother to compute track parameters/covariances and local chi2 at each cluster (used for Kalman tracking only)
   
+  Bool_t     fSaveFullClusterInESD; ///< kTRUE to save all cluster info (including pads) in ESD
   
   // functions
   void SetLowFluxParam();