/*
$Log$
+Revision 1.3 2001/01/26 21:26:58 morsch
+All data members private. Access functions provided.
+
Revision 1.2 2000/06/15 07:58:48 morsch
Code from MUON-dev joined
fPhysics = digits[4];
fHit = digits[5];
- for(Int_t i=0; i<10; i++) {
+ for(Int_t i=0; i<MAXTRACKS; i++) {
fTcharges[i] = charges[i];
fTracks[i] = tracks[i];
}
#include <TObject.h>
+#define MAXTRACKS 10
+
class AliMUONDigit : public TObject {
public:
Int_t fCathode; // Cathode number
Int_t fSignal; // Signal amplitude
- Int_t fTcharges[10]; // charge per track making this digit (up to 10)
- Int_t fTracks[10]; // primary tracks making this digit (up to 10)
+ Int_t fTcharges[MAXTRACKS]; // charge per track making this digit (up to 10)
+ Int_t fTracks[MAXTRACKS]; // primary tracks making this digit (up to 10)
Int_t fPhysics; // physics contribution to signal
Int_t fHit; // hit number - temporary solution
/*
$Log$
+Revision 1.3 2001/10/04 20:01:54 jchudoba
+changes for TTask implementation, some other small editing
+
Revision 1.2 2001/07/28 10:46:04 hristov
AliRunDigitizer.h included; typos corrected
merging/digitization classes
*/
-
#include <TTree.h>
#include <TVector.h>
#include <TObjArray.h>
} // end file loop
if (GetDebug()>2) cerr<<"END OF FILE LOOP"<<endl;
- Int_t tracks[10];
- Int_t charges[10];
+ Int_t tracks[MAXTRACKS];
+ Int_t charges[MAXTRACKS];
Int_t nentries = fTDList->GetEntriesFast();
for (Int_t nent = 0; nent < nentries; nent++) {
// this was changed to accomodate the real number of tracks
- if (nptracks > 10 && GetDebug() >0) {
- cerr<<"Attention - nptracks > 10 "<<nptracks<<endl;
- nptracks = 10;
+ if (nptracks > MAXTRACKS) {
+ if (GetDebug() >0) {
+ cerr<<"AliMUONDigitizer: nptracks > 10 "<<nptracks;
+ cerr<<"reset to max value "<<MAXTRACKS<<endl;
+ }
+ nptracks = MAXTRACKS;
}
if (nptracks > 2 && GetDebug() >2) {
- cerr<<"Attention - nptracks > 2 "<<nptracks<<endl;
+ cerr<<"AliMUONDigitizer: nptracks > 2 "<<nptracks<<endl;
printf("cat,ich,ix,iy,q %d %d %d %d %d \n",icat,ich,fDigits[0],fDigits[1],q);
}
for (Int_t tr = 0; tr < nptracks; tr++) {
if (nptracks > 1) {
SortTracks(tracks,charges,nptracks);
}
- if (nptracks < 10 ) {
- for (Int_t i = nptracks; i < 10; i++) {
+ if (nptracks < MAXTRACKS ) {
+ for (Int_t i = nptracks; i < MAXTRACKS; i++) {
tracks[i] = 0;
charges[i] = 0;
}