AliFMDInput Class Reference
[Utility classes.]

#include <AliFMDInput.h>

Inheritance diagram for AliFMDInput:

Inheritance graph
[legend]
Collaboration diagram for AliFMDInput:

Collaboration graph
[legend]
List of all members.

Detailed Description

Base class for reading in various FMD data. The class loops over all found events. For each event the specified data is read in. The class then loops over all elements of the read data, and process these with user defined code.

    struct DigitInput : public AliFMDInput 
    { 
      DigitInput() 
      { 
         // Load digits 
         AddLoad(kDigits);
         // Make a histogram 
         fHist = new TH1F("adc", "ADC spectra", 1024, -.5, 1023.5);
      }
      // Process one digit. 
      Bool_t ProcessDigit(AliFMDDigit* d)
      { 
         fHist->Fill(d->Counts());
         return kTRUE;
      }
      // After processing all events, display spectrum
      Bool_t Finish()
      {
        fHist->Draw();
      }
      TH1F* fHist;
    };

    void AdcSpectrum()
    { 
       DigitInput di;
       di.Run();
    }
This class allows for writing small scripts, that can be compiled with AcLIC, to do all sorts of tests, quick prototyping, and so on. It has proven to be quiet useful. One can load more than one type of data in one derived class, to for example to make comparisons between hits and reconstructed points. See also the various scripts in FMD/scripts.

Definition at line 85 of file AliFMDInput.h.

Public Types

enum  ETrees {
  kHits = 1, kKinematics, kDigits, kSDigits,
  kHeader, kRecPoints, kESD, kRaw,
  kGeometry
}

Public Member Functions

 AliFMDInput ()
 AliFMDInput (const char *gAliceFile)
virtual ~AliFMDInput ()
virtual void AddLoad (ETrees tree)
virtual void RemoveLoad (ETrees tree)
virtual Int_t NEvents () const
virtual Bool_t Init ()
virtual Bool_t Begin (Int_t event)
virtual Bool_t Event ()
virtual Bool_t End ()
virtual Bool_t Finish ()
virtual Bool_t Run ()
virtual Bool_t ProcessHits ()
virtual Bool_t ProcessDigits ()
virtual Bool_t ProcessSDigits ()
virtual Bool_t ProcessRawDigits ()
virtual Bool_t ProcessRecPoints ()
virtual Bool_t ProcessHit (AliFMDHit *, TParticle *)
virtual Bool_t ProcessDigit (AliFMDDigit *)
virtual Bool_t ProcessSDigit (AliFMDSDigit *)
virtual Bool_t ProcessRawDigit (AliFMDDigit *)
virtual Bool_t ProcessRecPoint (AliFMDRecPoint *)
virtual Bool_t ProcessESD (AliESDFMD *)

Protected Attributes

TString fGAliceFile
AliRunLoader * fLoader
AliRun * fRun
AliStack * fStack
AliLoader * fFMDLoader
AliRawReader * fReader
AliFMDfFMD
AliESD * fMainESD
AliESDFMD * fESD
TTree * fTreeE
TTree * fTreeH
TTree * fTreeD
TTree * fTreeS
TTree * fTreeR
TTree * fTreeA
TChain * fChainE
TClonesArray * fArrayE
TClonesArray * fArrayH
TClonesArray * fArrayD
TClonesArray * fArrayS
TClonesArray * fArrayR
TClonesArray * fArrayA
TGeoManager * fGeoManager
Int_t fTreeMask
Bool_t fIsInit


Member Enumeration Documentation

enum AliFMDInput::ETrees
 

The kinds of data that can be read in.

Enumerator:
kHits 
kKinematics 
kDigits 
kSDigits 
kHeader 
kRecPoints 
kESD 
kRaw 
kGeometry 

Definition at line 89 of file AliFMDInput.h.


Constructor & Destructor Documentation

AliFMDInput::AliFMDInput  ) 
 

CTOR

AliFMDInput::AliFMDInput const char *  gAliceFile  ) 
 

CTOR

Parameters:
gAliceFile galice file

virtual AliFMDInput::~AliFMDInput  )  [inline, virtual]
 

DTOR

Definition at line 106 of file AliFMDInput.h.


Member Function Documentation

virtual void AliFMDInput::AddLoad ETrees  tree  )  [inline, virtual]
 

Add a data type to load

Parameters:
tree Data to load

Definition at line 110 of file AliFMDInput.h.

virtual Bool_t AliFMDInput::Begin Int_t  event  )  [virtual]
 

Callled at the beginning of each event. If a user class overloads this member function, then this must be explicitly called.

Parameters:
event Event number
Returns:
false on error

Reimplemented in AliFMDDisplay, DrawDigitsRecs, DrawHitsDigits, DrawHitsRecs, GetMedia, and Poisson.

virtual Bool_t AliFMDInput::End  )  [virtual]
 

Called at the end of each event.

Returns:
false on error

Reimplemented in AliFMDDisplay, and Poisson.

virtual Bool_t AliFMDInput::Event  )  [virtual]
 

Process one event. This loops over all the loaded data. Users can overload this member function, but then it's strongly recommended to explicitly call this classes version.

Returns:
false on error

virtual Bool_t AliFMDInput::Finish  )  [inline, virtual]
 

Called at the end of the run.

Returns:
false on error

Reimplemented in CheckAlign, DrawDigitsRecs, DrawHits, DrawHitsDigits, DrawHitsRecs, GetMedia, and Poisson.

Definition at line 137 of file AliFMDInput.h.

virtual Bool_t AliFMDInput::Init  )  [virtual]
 

Initialize the class. If a user class overloads this member function, then this must be explicitly called

Returns:
false on error

Reimplemented in AliFMDDisplay, CheckAlign, CheckRaw, GetMedia, and Poisson.

virtual Int_t AliFMDInput::NEvents  )  const [virtual]
 

Returns:
# of available events

virtual Bool_t AliFMDInput::ProcessDigit AliFMDDigit  )  [inline, virtual]
 

Process one digit. Users should over this to process each digit.

Returns:
false on error

Reimplemented in AliFMDDisplay, CheckAlign, CheckRaw, DrawDigitsRecs, and DrawHitsDigits.

Definition at line 168 of file AliFMDInput.h.

virtual Bool_t AliFMDInput::ProcessDigits  )  [virtual]
 

Loop over all digits, and call ProcessDigit for each digit.

Returns:
false on error

virtual Bool_t AliFMDInput::ProcessESD AliESDFMD *   )  [inline, virtual]
 

Process ESD data for the FMD. Users should overload this to deal with ESD data.

Returns:
false on error

Definition at line 184 of file AliFMDInput.h.

virtual Bool_t AliFMDInput::ProcessHit AliFMDHit ,
TParticle * 
[inline, virtual]
 

Process one hit, and optionally it's corresponding kinematics track. Users should over this to process each hit.

Returns:
false on error

Reimplemented in AliFMDDisplay, CheckAlign, DrawHits, DrawHitsDigits, DrawHitsRecs, and GetMedia.

Definition at line 165 of file AliFMDInput.h.

virtual Bool_t AliFMDInput::ProcessHits  )  [virtual]
 

Loop over all hits, and call ProcessHit with that hit, and optionally the corresponding kinematics track.

Returns:
false on error

virtual Bool_t AliFMDInput::ProcessRawDigit AliFMDDigit  )  [inline, virtual]
 

Process one digit from raw data files. Users should over this to process each raw digit.

Returns:
false on error

Reimplemented in CheckRaw.

Definition at line 176 of file AliFMDInput.h.

virtual Bool_t AliFMDInput::ProcessRawDigits  )  [virtual]
 

Loop over all digits read from raw data files, and call ProcessRawDigit for each digit.

Returns:
false on error

virtual Bool_t AliFMDInput::ProcessRecPoint AliFMDRecPoint  )  [inline, virtual]
 

Process one reconstructed point. Users should over this to process each reconstructed point.

Returns:
false on error

Reimplemented in AliFMDDisplay, DrawDigitsRecs, and DrawHitsRecs.

Definition at line 180 of file AliFMDInput.h.

virtual Bool_t AliFMDInput::ProcessRecPoints  )  [virtual]
 

Loop over all reconstructed points, and call ProcessRecPoint for each reconstructed point.

Returns:
false on error

virtual Bool_t AliFMDInput::ProcessSDigit AliFMDSDigit  )  [inline, virtual]
 

Process one summable digit. Users should over this to process each summable digit.

Returns:
false on error

Definition at line 172 of file AliFMDInput.h.

virtual Bool_t AliFMDInput::ProcessSDigits  )  [virtual]
 

Loop over all summable digits, and call ProcessSDigit for each digit.

Returns:
false on error

virtual void AliFMDInput::RemoveLoad ETrees  tree  )  [inline, virtual]
 

Remove a data type to load

Parameters:
tree Data to not load

Definition at line 113 of file AliFMDInput.h.

virtual Bool_t AliFMDInput::Run  )  [virtual]
 

Run a full job.

Returns:
false on error


Member Data Documentation

TClonesArray* AliFMDInput::fArrayA [protected]
 

Definition at line 208 of file AliFMDInput.h.

TClonesArray* AliFMDInput::fArrayD [protected]
 

Definition at line 205 of file AliFMDInput.h.

TClonesArray* AliFMDInput::fArrayE [protected]
 

Definition at line 203 of file AliFMDInput.h.

TClonesArray* AliFMDInput::fArrayH [protected]
 

Definition at line 204 of file AliFMDInput.h.

TClonesArray* AliFMDInput::fArrayR [protected]
 

Definition at line 207 of file AliFMDInput.h.

TClonesArray* AliFMDInput::fArrayS [protected]
 

Definition at line 206 of file AliFMDInput.h.

TChain* AliFMDInput::fChainE [protected]
 

Definition at line 202 of file AliFMDInput.h.

AliESDFMD* AliFMDInput::fESD [protected]
 

Definition at line 195 of file AliFMDInput.h.

AliFMD* AliFMDInput::fFMD [protected]
 

Definition at line 193 of file AliFMDInput.h.

AliLoader* AliFMDInput::fFMDLoader [protected]
 

Definition at line 191 of file AliFMDInput.h.

TString AliFMDInput::fGAliceFile [protected]
 

Definition at line 187 of file AliFMDInput.h.

TGeoManager* AliFMDInput::fGeoManager [protected]
 

Definition at line 209 of file AliFMDInput.h.

Bool_t AliFMDInput::fIsInit [protected]
 

Definition at line 211 of file AliFMDInput.h.

AliRunLoader* AliFMDInput::fLoader [protected]
 

Definition at line 188 of file AliFMDInput.h.

AliESD* AliFMDInput::fMainESD [protected]
 

Definition at line 194 of file AliFMDInput.h.

AliRawReader* AliFMDInput::fReader [protected]
 

Definition at line 192 of file AliFMDInput.h.

AliRun* AliFMDInput::fRun [protected]
 

Definition at line 189 of file AliFMDInput.h.

AliStack* AliFMDInput::fStack [protected]
 

Definition at line 190 of file AliFMDInput.h.

TTree* AliFMDInput::fTreeA [protected]
 

Definition at line 201 of file AliFMDInput.h.

TTree* AliFMDInput::fTreeD [protected]
 

Definition at line 198 of file AliFMDInput.h.

TTree* AliFMDInput::fTreeE [protected]
 

Definition at line 196 of file AliFMDInput.h.

TTree* AliFMDInput::fTreeH [protected]
 

Definition at line 197 of file AliFMDInput.h.

Int_t AliFMDInput::fTreeMask [protected]
 

Definition at line 210 of file AliFMDInput.h.

TTree* AliFMDInput::fTreeR [protected]
 

Definition at line 200 of file AliFMDInput.h.

TTree* AliFMDInput::fTreeS [protected]
 

Definition at line 199 of file AliFMDInput.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 24 17:11:22 2006 for ALICE FMD Off-line by  doxygen 1.4.6