AliTriggerClass::AliTriggerClass():
TNamed(),
fClassMask(0),
+ fIndex(0),
fDescriptor(NULL),
fCluster(NULL),
fPFProtection(NULL),
AliTriggerPFProtection *pfp, AliTriggerBCMask *mask,
UInt_t prescaler, Bool_t allrare) :
TNamed( name, name ),
- fClassMask( 1 << (index-1)),
+ fClassMask( 1ull << ULong64_t(index-1)),
+ fIndex(index),
fDescriptor( desc ),
fCluster( clus ),
fPFProtection( pfp ),
TString &pfp, TString &mask,
UInt_t prescaler, Bool_t allrare) :
TNamed( name, name ),
- fClassMask( 1 << (index-1)),
+ fClassMask( 1ull << ULong64_t(index-1)),
+ fIndex(index),
fDescriptor( NULL ),
fCluster( NULL ),
fPFProtection( NULL ),
AliTriggerClass::AliTriggerClass( const AliTriggerClass& trclass ):
TNamed( trclass ),
fClassMask(trclass.fClassMask),
+ fIndex(trclass.fIndex),
fDescriptor(trclass.fDescriptor),
fCluster(trclass.fCluster),
fPFProtection(trclass.fPFProtection),
if (this != &trclass) {
TNamed::operator=(trclass);
fClassMask = trclass.fClassMask;
+ fIndex=trclass.fIndex;
fDescriptor = trclass.fDescriptor;
fCluster = trclass.fCluster;
fPFProtection = trclass.fPFProtection;
return kFALSE;
}
+ // check comsistency of index and mask
+
if (!config->GetDescriptors().FindObject(fDescriptor)) {
AliError(Form("The class (%s) contains invalid descriptor !",GetName()));
return kFALSE;
// Print
cout << "Trigger Class:" << endl;
cout << " Name: " << GetName() << endl;
- cout << " Index: " << (Int_t)TMath::Log2(fClassMask) + 1 << endl;
+ cout << " ClassBit: 0x" << hex << fClassMask << dec << endl;
+ cout << " Index: " << (UInt_t)fIndex << endl;
cout << " Descriptor: " << fDescriptor->GetName() << endl;
cout << " Cluster: " << fCluster->GetName() << endl;
cout << " PF Protection:" << fPFProtection->GetName() << endl;