]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding TPC specific information about events
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Jun 2008 11:59:52 +0000 (11:59 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Jun 2008 11:59:52 +0000 (11:59 +0000)
1. To be filled with information form RCU trailer(s)
2. Some of the variables to be used in reconstruction
(Marian, Magnus)

TPC/AliTPCeventInfo.cxx [new file with mode: 0644]
TPC/AliTPCeventInfo.h [new file with mode: 0644]
TPC/TPCbaseLinkDef.h
TPC/libTPCbase.pkg

diff --git a/TPC/AliTPCeventInfo.cxx b/TPC/AliTPCeventInfo.cxx
new file mode 100644 (file)
index 0000000..0c0f4f8
--- /dev/null
@@ -0,0 +1,51 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, 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.                  *
+ **************************************************************************/
+
+#include "AliTPCeventInfo.h"
+
+/*
+   Placeholder for the TPC event specific information
+   
+
+*/
+
+ClassImp(AliTPCeventInfo)
+
+AliTPCeventInfo::AliTPCeventInfo()
+  :fNSamples(0),
+   fSamplingRate(0),
+   fSamplingPhase(0),
+   fBC(kFALSE),
+   fBCMode1(0),
+   fBCMode2(0),
+   fBCPre(0),
+   fBCPost(0),
+   fNPreTrigger(0),
+   fTC(kFALSE),
+   fZS(kFALSE),
+   fZSGlitchFilter(0),
+   fZSPre(0),
+   fZSPost(0),
+   fZSOffset(0) {
+  //
+  // Constructor
+  //
+}
+
+AliTPCeventInfo::~AliTPCeventInfo() {
+  //
+  // destructor
+  //
+}
diff --git a/TPC/AliTPCeventInfo.h b/TPC/AliTPCeventInfo.h
new file mode 100644 (file)
index 0000000..18b254a
--- /dev/null
@@ -0,0 +1,70 @@
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+#ifndef ALITPCEVENTINFO_H
+#define ALITPCEVENTINFO_H
+
+#include <TObject.h>
+
+class AliTPCeventInfo:public TObject {
+public:
+  AliTPCeventInfo();
+  virtual ~AliTPCeventInfo();
+
+  Int_t GetNSamples() const {return fNSamples;}
+  void SetNSamples(Int_t NSamples) {fNSamples=NSamples;};
+  Int_t GetSamplingRate() const {return fSamplingRate;}
+  void SetSamplingRate(Int_t SamplingRate) {fSamplingRate=SamplingRate;}
+  Int_t GetSamplingPhase() const {return fSamplingPhase;}
+  void SetSamplingPhase(Int_t SamplingPhase) {fSamplingPhase=SamplingPhase;}
+
+  Bool_t GetBC() const {return fBC;}
+  void SetBC(Bool_t BC) {fBC=BC;}
+  Int_t GetBCMode1() const {return fBCMode1;}
+  void SetBCMode1(Int_t BCMode1) {fBCMode1=BCMode1;}
+  Int_t GetBCMode2() const {return fBCMode2;}
+  void SetBCMode2(Int_t BCMode2) {fBCMode2=BCMode2;}
+  Int_t GetBCPre() const {return fBCPre;}
+  void SetBCPre(Int_t BCPre) {fBCPre=BCPre;}
+  Int_t GetBCPost() const {return fBCPost;}
+  void SetBCPost(Int_t BCPost) {fBCPost=BCPost;}
+
+  Int_t GetNPreTrigger() const {return fNPreTrigger;}
+  void SetNPreTrigger(Int_t NPreTrigger) {fNPreTrigger=NPreTrigger;}
+  Bool_t GetTC() const {return fTC;}
+  void SetTC(Bool_t TC) {fTC=TC;}
+
+  Bool_t GetZS() const {return fZS;}
+  void SetZS(Bool_t ZS) {fZS=ZS;}
+  Int_t GetZSGlitchFilter() const {return fZSGlitchFilter;}
+  void SetZSGlitchFilter(Int_t ZSGlitchFilter) {fZSGlitchFilter=ZSGlitchFilter;}
+  Int_t GetZSPre() const {return fZSPre;}
+  void SetZSPre(Int_t ZSPre) {fZSPre=ZSPre;}
+  Int_t GetZSPost() const {return fZSPost;}
+  void SetZSPost(Int_t ZSPost) {fZSPost=ZSPost;}
+  Int_t GetZSOffset() const {return fZSOffset;}
+  void SetZSOffset(Int_t ZSOffset) {fZSOffset=ZSOffset;}
+
+private:
+  Int_t fNSamples; // Number of samples per channel
+  Int_t fSamplingRate; // ?
+  Int_t fSamplingPhase; // ?
+
+  Bool_t fBC; // Baseline correction enabled?
+  Int_t fBCMode1; // 1st baseline correction mode
+  Int_t fBCMode2; // 2nd baseline correction mode
+  Int_t fBCPre; // Number of presamples excluded from 2nd baseline correction
+  Int_t fBCPost; // Number of postsamples excluded from 2nd baseline correction
+  Int_t fNPreTrigger; // Number of pre-trigger samples
+  Bool_t fTC; // Tail cancelation filter?
+
+  Bool_t fZS; // Zero suppresion enabled?
+  Int_t fZSGlitchFilter; // Glitch filter configuration for zero suppression
+  Int_t fZSPre; // Number of presamples excluded from zero suppression
+  Int_t fZSPost; // Number of postsamples excluded from zero suppression
+  Int_t fZSOffset; // Zero suppression offset
+
+  ClassDef(AliTPCeventInfo,1)
+};
+
+#endif
index 185a1e2af25976451539f586eb114703d48f6c4e..c2b2f6c559286a8582b4092065c069956bf161cb 100644 (file)
@@ -45,6 +45,8 @@
 #pragma link C++ class AliTPCAltroMapping+;
 #pragma link C++ class AliTPCRawStream+;
 #pragma link C++ class AliTPCRawStreamFast+;
+#pragma link C++ class AliTPCeventInfo+;
+
 #pragma link C++ class AliTPCCalibPedestal+;
 #pragma link C++ class AliTPCCalibPulser+;
 #pragma link C++ class AliTPCCalibCE+;
index 03d617ef1e6fb0ae44968a801ea77902858ad9b6..f032f215b09b4c738419ad4f95363c3e48e99d22 100644 (file)
@@ -17,7 +17,7 @@ SRCS:=  AliSegmentID.cxx  AliSegmentArray.cxx AliDigits.cxx AliH2F.cxx \
         AliTPCGenDBTemp.cxx AliTPCGenDBConf.cxx \
        AliTPCExB.cxx  AliTPCExBExact.cxx AliTPCExBFirst.cxx \
         AliTPCTempMap.cxx AliTPCCalibVdrift.cxx \
-       AliTPCCalibTCF.cxx AliTPCAltroEmulator.cxx \
+       AliTPCCalibTCF.cxx AliTPCAltroEmulator.cxx  AliTPCeventInfo.cxx \
         AliTransform.cxx AliTPCTransform.cxx AliTPCAlign.cxx AliTPCGoofieValues.cxx \
        AliTPCdataQA.cxx AliTPCQAChecker.cxx