]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONDigitizerv2.h
Addes script to compare Naiive, Poisson to Hits, Primaries
[u/mrichter/AliRoot.git] / MUON / AliMUONDigitizerv2.h
CommitLineData
d1775029 1#ifndef ALIMUONDIGITIZERV2_H
2#define ALIMUONDIGITIZERV2_H
3/* Copyright(c) 1998-2001, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
30178c30 6/* $Id$ */
7// Revision of includes 07/05/2004
8
692de412 9/// \ingroup sim
10/// \class AliMUONDigitizerv2
11/// \brief Class produces Digits from SDigits.
12///
13/// Do the Digitization (Digit) from summable Digits (SDigit)
14/// Allow the merging of signal file with background file(s).
15
38169520 16#include "AliMUONDigitizer.h"
30178c30 17#include "AliMUONDigit.h"
18
19class AliMUONLoader;
d1775029 20
38169520 21class AliMUONDigitizerv2 : public AliMUONDigitizer
cf286af7 22{
8789635b 23 public:
cf286af7 24 AliMUONDigitizerv2();
8789635b 25 virtual ~AliMUONDigitizerv2();
cf286af7 26
27 // Preferred constructor which assigns the manager object.
28 AliMUONDigitizerv2(AliRunDigitizer * manager);
d1775029 29
cf286af7 30 // Makes a transient digit from the specified s-digit from the specified chamber.
31 void MakeTransientDigitFromSDigit(Int_t iChamber, AliMUONDigit* sDigit);
d1775029 32
cf286af7 33 // The following methods are inherited from AliMUONDigitizerv1 and overridden.
38169520 34 void GenerateTransientDigits();
35 void AddDigit(Int_t chamber, Int_t tracks[kMAXTRACKS], Int_t charges[kMAXTRACKS], Int_t digits[7]);
36 Bool_t InitInputData(AliMUONLoader* muonloader);
37 void CleanupInputData(AliMUONLoader* muonloader);
38
39 // methods from old AliMUONDigitizerv1
40 Int_t GetSignalFrom(AliMUONTransientDigit* td);
41 Bool_t InitOutputData(AliMUONLoader* muonloader);
42 void CleanupOutputData(AliMUONLoader* muonloader);
43 void FillOutputData();
44
45 // for trigger purpose
46 virtual void CreateTrigger();
47 virtual void CleanupTriggerArrays();
2be06f1e 48 virtual void AddDigitTrigger(
49 Int_t chamber, Int_t tracks[kMAXTRACKS],
50 Int_t charges[kMAXTRACKS], Int_t digits[7],
b812d393 51 Int_t digitindex
2be06f1e 52 );
38169520 53 virtual void FillTriggerOutput();
d1775029 54
cf286af7 55 ClassDef(AliMUONDigitizerv2, 0)
d1775029 56};
57#endif
58