add AliAODPWG4JetEventBackground class to store event by event background information...
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Jul 2009 11:49:12 +0000 (11:49 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Jul 2009 11:49:12 +0000 (11:49 +0000)
STEER/AODLinkDef.h
STEER/AliAODPWG4JetEventBackground.cxx [new file with mode: 0644]
STEER/AliAODPWG4JetEventBackground.h [new file with mode: 0644]
STEER/CMake_libAOD.txt
STEER/libAOD.pkg

index da3ba04..9c1cba1 100644 (file)
@@ -24,6 +24,7 @@
 #pragma link C++ class AliAODPmdCluster+;
 #pragma link C++ class AliAODFmdCluster+;
 #pragma link C++ class AliAODJet+;
+#pragma link C++ class AliAODPWG4JetEventBackground+;
 #pragma link C++ class AliAODPhoton+;
 #pragma link C++ class AliAODRedCov<3>+;
 #pragma link C++ class AliAODRedCov<4>+;
diff --git a/STEER/AliAODPWG4JetEventBackground.cxx b/STEER/AliAODPWG4JetEventBackground.cxx
new file mode 100644 (file)
index 0000000..04929ef
--- /dev/null
@@ -0,0 +1,89 @@
+/**************************************************************************
+ * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+//-------------------------------------------------------------------------
+//     AOD class for PWG4 jet backgrounds
+//     Author: Christian Klein-Boesing IKP Muenster
+//-------------------------------------------------------------------------
+
+
+#include "AliAODPWG4JetEventBackground.h"
+
+using namespace std;
+
+ClassImp(AliAODPWG4JetEventBackground)
+
+TString AliAODPWG4JetEventBackground::fgkStdBranchName("jeteventbackground");
+
+
+
+//______________________________________________________________________________
+AliAODPWG4JetEventBackground::AliAODPWG4JetEventBackground() :
+    TObject()
+{
+  for(int i = 0;i < kMaxBackground;++i){
+    fBackground[i] = 0;
+  } 
+}
+
+//______________________________________________________________________________
+AliAODPWG4JetEventBackground::~AliAODPWG4JetEventBackground() 
+{
+  //
+  // destructor
+  //
+}
+
+//______________________________________________________________________________
+AliAODPWG4JetEventBackground::AliAODPWG4JetEventBackground(const AliAODPWG4JetEventBackground& back) :
+    TObject(back)
+{
+  //
+  // Copy constructor
+  //
+  for(int i = 0;i < kMaxBackground;++i){
+    fBackground[i] = back.fBackground[i];
+  } 
+  
+}
+
+//______________________________________________________________________________
+AliAODPWG4JetEventBackground& AliAODPWG4JetEventBackground::operator=(const AliAODPWG4JetEventBackground& back)
+{
+  //
+  // Assignment operator
+  //
+
+  if(this!=&back) {
+    TObject::operator=(back);
+    for(int i = 0;i < kMaxBackground;++i){
+      fBackground[i] = back.fBackground[i];
+    } 
+  }
+
+  return *this;
+}
+
+void AliAODPWG4JetEventBackground::Print(Option_t* /*option*/) const 
+{
+  //
+  // Print information of all data members
+  //
+
+  printf("Jet EventBackground :\n");
+  for(int i = 0;i < kMaxBackground;++i){
+    printf("%d: %3.E GeV \n",i,fBackground[i]);
+  } 
+}
diff --git a/STEER/AliAODPWG4JetEventBackground.h b/STEER/AliAODPWG4JetEventBackground.h
new file mode 100644 (file)
index 0000000..dcc5fac
--- /dev/null
@@ -0,0 +1,51 @@
+#ifndef AliPWG4AODJETBACKGROUND_H
+#define AliPWG4AODJETBACKGROUND_H
+/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+//-------------------------------------------------------------------------
+//     AOD jet background class
+//     Stores Different background calculations on an event by event level
+//     Author: Christian Klein-Boesing, IKP Muenster
+//-------------------------------------------------------------------------
+
+#include "TObject.h"
+#include "TString.h";
+
+
+class AliAODPWG4JetEventBackground : public TObject {
+
+ public:
+    AliAODPWG4JetEventBackground();
+    virtual ~AliAODPWG4JetEventBackground();
+    AliAODPWG4JetEventBackground(const AliAODPWG4JetEventBackground& jet); 
+    AliAODPWG4JetEventBackground& operator=(const AliAODPWG4JetEventBackground& jet);
+
+
+    virtual void SetBackground(Int_t i,Double_t back){
+      fBackground[i] = back;
+    }
+
+    virtual Double_t GetBackground(Int_t i){
+      if(i>=0&&i<kMaxBackground)return fBackground[i];
+      return 0;
+    }
+
+    static const char* StdBranchName(){return fgkStdBranchName.Data();}
+    virtual void       Print(Option_t* /*option*/) const;
+
+    enum { kSmallR = 0,
+          kOnlyCharged,
+          kOutOfCone,
+          kStatistical,
+          kMaxBackground};
+
+ private:
+    static TString fgkStdBranchName;                    // Standard branch name
+    Double32_t      fBackground[kMaxBackground];        // Background from different schemes, normalized to area
+    ClassDef(AliAODPWG4JetEventBackground,1);
+
+};
+
+
+#endif
index 831eef3..719122d 100644 (file)
@@ -4,7 +4,7 @@ set(SRCS
         AliAODEvent.cxx AliAODHeader.cxx 
        AliAODTrack.cxx AliAODPid.cxx AliAODVertex.cxx 
        AliAODCluster.cxx AliAODCaloCluster.cxx AliAODPmdCluster.cxx AliAODFmdCluster.cxx 
-       AliAODJet.cxx AliAODPhoton.cxx AliAODRedCov.cxx AliAODRecoDecay.cxx 
+       AliAODJet.cxx AliAODPWG4JetEventBackground.cxx AliAODPhoton.cxx AliAODRedCov.cxx AliAODRecoDecay.cxx 
        AliAODHandler.cxx AliAODTracklets.cxx AliAODTagCreator.cxx 
        AliAODv0.cxx AliAODcascade.cxx AliAODCaloCells.cxx AliAODInputHandler.cxx 
        AliMultiAODInputHandler.cxx AliAODDiJet.cxx AliAODMCParticle.cxx AliAODMCHeader.cxx 
index 8a1b1d7..37eea53 100644 (file)
@@ -3,7 +3,7 @@
 SRCS = AliAODEvent.cxx AliAODHeader.cxx \
        AliAODTrack.cxx AliAODPid.cxx AliAODVertex.cxx \
        AliAODCluster.cxx AliAODCaloCluster.cxx AliAODPmdCluster.cxx AliAODFmdCluster.cxx \
-       AliAODJet.cxx AliAODPhoton.cxx AliAODRedCov.cxx AliAODRecoDecay.cxx \
+       AliAODJet.cxx AliAODPWG4JetEventBackground.cxx AliAODPhoton.cxx AliAODRedCov.cxx AliAODRecoDecay.cxx \
        AliAODHandler.cxx AliAODTracklets.cxx AliAODTagCreator.cxx \
        AliAODv0.cxx AliAODcascade.cxx AliAODCaloCells.cxx AliAODInputHandler.cxx \
        AliMultiAODInputHandler.cxx AliAODDiJet.cxx AliAODMCParticle.cxx AliAODMCHeader.cxx